Sparql request for rdf: id

I want to write a sparql query to get rdf data based on their id. I am trying with

SELECT ?ID ?NAME WHERE {?ID = "something" } 

      

but does not return expected results. Does anyone know what is my mistake?

+3


source to share


2 answers


In fact, rdf: id is the resource URI itself. You can use the SPARQL FILTER clause to filter your result, or you can directly insert the URI into the WHERE clause of your query, for example



<myURI> ex:name ?name .

      

+3


source


To get an accurate answer, you should share a small chunk of your RDF data (possibly in human-friendly Turtle format).



+2


source







All Articles