SPARQL Querying Transitive
问题 I am a beginner to SPARQL and was wondering if there was a query which could help me return transitive relations. For example the n3 file below I would want a query that would return "a is the sameas c" or something along those lines. Thanks @prefix : <http://websitename.com/links/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . :a owl:sameas :b. :b owl:sameas :c. 回答1: You can use property paths if you are using a suitably enabled SPARQL 1.1 engine, you've tagged your question Jena so I