(RDF SPARQL) Information about a node in Wikidata - rudof-project/rudof GitHub Wiki
(RDF/SPARQL) Information about a node in Wikidata
It is possible to obtain information about RDF nodes that are accessible through a SPARQL endpoint.
rudof contains a list of popular SPARQL endpoints like Wikidata and supports also the Wikidata prefix declarations. So the following command can be used to obtain information about wd:Q80 which is the item that represents Tim Berners-Lee:
rudof node -e wikidata -n wd:Q80
Notice that it is also possible to declare which properties we are interested. The following command obtains the values of wdt:P31 (instance of) which is wd:Q5 (Human) at the time of this writing.
rudof node -e wikidata -n wd:Q80 -p wdt:P31
It is also possible to indicate the direction of the arcs, which can be outgoing (default option), incoming or both.