简体   繁体   中英

sparql query 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 the expecting results. Does anyone knows which is my mistake?

Actually rdf:id is the resource URI itself. You can utilise a SPARQL FILTER clause for filtering your result, or you can directly insert the URI in the WHERE clause of your query, eg

<myURI> ex:name ?name .

为了获得精确答案,您应该共享一小部分RDF数据(可能是Turtle格式,人性化)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM