select ?x
where {?x ?v """
This means: find a (URN) citation for the line containing this text.
The result is:
<urn:cts:croALa:croalaget003.croalaget001.izdleipzig:165>
This was a working query. Now, here is a meaningful query:
select ?s ?p ?o
where { <urn:cts:croALa:croalaget003.croalaget001.izdleipzig:10.249> ?p ?o .}
Meaning, more or less: return RDF predicate and object where the RDF subject contains value as named. This would be book 10, line 249 of the Osmanides.
A useful introduction to SPARQL can also be found under Beginner's guide to RDF: 6. Querying with SPARQL. For example, on using queries (here, with CTS namespace):
PREFIX cts: <http://www.homermultitext.org/cts/rdf/>
select ?s ?p ?o
where { <urn:cts:croALa:croalaget003.croalaget001.izdleipzig:10.250> cts:hasTextContent ?o .}
No comments:
Post a Comment