-
Notifications
You must be signed in to change notification settings - Fork 8
(SPARQL) Querying a SPARQL endpoint
Jose Emilio Labra Gayo edited this page Sep 27, 2024
·
2 revisions
The query
command can be used to run SPARQL queries on RDF data.
rudof query -q examples/user.sparql examples/user.ttl
?person ?name ?status
:b "Bob" :Waiting
:a "Alice" :Active
It is also possible to run a SPARQL query that obtains its data from a SPARQL endpoint. For example, the following command:
$ rudof query -q examples/wikidata.sparql -e wikidata
?person ?birth_place ?label ?birth_place_name
wd:Q448941 wd:Q16 "Lucy Walker"@en "Canada"@en
wd:Q450015 wd:Q16 "Makyla Smith"@en "Canada"@en
wd:Q495818 wd:Q16 "Andreas Apergis"@en "Canada"@en
wd:Q517764 wd:Q16 "Rob Pike"@en "Canada"@en
wd:Q2926838 wd:Q16 "Bruno Hébert"@en "Canada"@en
wd:Q2938960 wd:Q16 "Carl Marotte"@en "Canada"@en
wd:Q2978165 wd:Q16 "Claude Soucie"@en "Canada"@en
wd:Q3014451 wd:Q16 "Daniel Meurois"@en "Canada"@en
wd:Q3015785 wd:Q16 "Dany Gelinas"@en "Canada"@en
wd:Q3018685 wd:Q16 "David Rigby"@en "Canada"@en
- (RDF) Information about a node in RDF file
- (RDF) Merge several RDF data files
- (RDF/SPARQL) Information about a node in Wikidata
- (ShEx) Show info about a schema
- (ShEx) Validate a specific node with a shape
- (SHACL) Show info about a SHACL schema
- (SHACL) Read a SHACL Shapes graph and convert to some format
- (SHACL) Validating RDF data using SHACL
- (SPARQL) Running SPARQL queries
- (Python) Invoking this library from Python
- (SHACL → ShEx) Convert SHACL shapes graph to ShEx schema
- (ShEx → SVG/PNG/...) Convert a ShEx schema to an UML-like visualization in SVG, PNG, ...
- (ShEx → HTML) Convert ShEx schemas to HTML views
- (ShEx → SPARQL) Convert a simple ShEx schema to SPARQL
- (DCTap → ShEx) Convert a CSV file in DCTap to a ShEx schema
- (DCTap → SVG/PNG/...) Convert a CSV file in DCTap to an UML-like visualization in SVG, PNG, ...