-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve docs for databus model and api`s #172
Comments
please rewrite and update the docs especiall this chapter https://dbpedia.gitbook.io/databus/model and this https://dbpedia.gitbook.io/databus/usage/api, it is out of date not well structured not well interlinked and sometimes really hard to read even for claus and simon and me it is not really helpful and we need to reverse-engineer the model from data on the databus. some suggestions for the rewrite
spotify details
just an example here. what they do is pretty cool https://developer.spotify.com/documentation/web-api/reference/get-an-episode: they list api calls in an object oriented view in collapsible categories on the left for one api call they
what they do bad: An example developers odyssee with current documentationi think it helps to switch perspective when writing the technical docu. think of a developer who wants to quickly lookup the model (as reference during implementation) not a tutorial! we have 2.5/3 kinds of apis all they share is the rdf data model so that should be documented and interlinked in a very good way. assume i know a litte sparql and rdf and http/rest want to use some form of api, to get files of the latest version of 2 groups. ok coming back to my task files for 2 groups. i look at the api calls on swagger and get confused. group does not give me any information about the artifacts it contains, the artifact does not say which versions it contains, and then there is dataid (version) what the hack, where do i get files? ok damn - first that is getting many calls to get the data, but the second how the hell do i get the artifacts of a group and the versions of an artifact? i google for a potential sparql endpoint or found the sparql button on the dev databus. yes there we go (dbpedia DAU could confuse databus sparql with dbpedia sparql when using google) ok i decide to do sparql queries instead. what do I do next. I need to write query patterns and need to know what is connected with what. (thats not easy since even if i already figured i can not go in a natural way from artifact to files (which are parts) or versions of it) i need to find the entrypoint version which is called dataid in the api?? just try to navigate through group->artifact->version->(distribution)->file (you could find out in an ER diagramm that is well drawn pretty easy) but if you look at the version docu and you must find out/know that version connects with distribution and artifact and group, and that hasVersion has nothing todo with datbus:version. and then then you need to learn that the distribution is actually the file resource description but is of type Part and has a file attribute which equals the id of the resource (what?) |
For json-ld it could be jsonschema docs instead... then people can generate their own client very easily. Most of languaguages have json schema libs which allow to generate code and models based on the schema
https://json-schema.org/learn/getting-started-step-by-step#create
The text was updated successfully, but these errors were encountered: