Hi team, I was checking the capabilities of java s...
# getting-started
b
Hi team, I was checking the capabilities of java sdk for metadata ingestion. I saw various examples on python sdk but couldnt find much on java. I tried out the sdk and was able to write metadata. But I could not find how to read various aspects? For example,I didnt find way to find the current tags of a dataset or the list of datasets present? I could use the the graphql API. But Is it possible at java sdk end to get these info? I could not find the datahub graph query that is implemented in python at java sdk. Am I missing anything or the java sdk is limited to write scenarios?
🩺 1
d
Hi Sachin, we don’t have a lot of examples on java SDK since it’s not our top priority at the moment. 😞 As far as i know, we don’t support executing graphql queries via java SDK - @gray-shoe-75895 could you confirm if this is true?
a
That’s correct, but also the python execute_graphql method is fairly small and can probably ported to java https://github.com/datahub-project/datahub/blob/3e47b3d2284a03b35632adb7e01bf77bf3[…]208d54/metadata-ingestion/src/datahub/ingestion/graph/client.py. It should be a http request to the /api/graphql endpoint with the appropriate params
b
@gray-shoe-75895 @delightful-ram-75848 Just to confirm, There are no methods or functionalities in java sdk to read aspects in datahub. (Datasets,tags of datasets,schema) Am I right?