X-Git-Url: http://git.indexdata.com/?p=mp-sparql-moved-to-github.git;a=blobdiff_plain;f=doc%2Fsparql.xml;h=9daac588298ac4f40d8b2a749692f8b9ea6d4536;hp=8889cc5da759749d8465b0b6a1bebecac43a948c;hb=4367170dcca7904746ffe537fccf102341eca6c9;hpb=4806318a87fddc1e5887bc835b91bc20f1c0e1c7 diff --git a/doc/sparql.xml b/doc/sparql.xml index 8889cc5..9daac58 100644 --- a/doc/sparql.xml +++ b/doc/sparql.xml @@ -47,7 +47,7 @@ <form/> - SPARQL Query formulation selection. SHould start with one of the + SPARQL Query formulation selection. Should start with one of the query forms: SELECT or CONSTRUCT. @@ -70,13 +70,24 @@ Section used to declare RPN use attribute strings (indexes) and map them to BIBFRAME graph patterns. Items in this section are expanded during RPN query processing and - placeholders (%s, %d) are substituted with query terms. + placeholders (%s, %d, + %t) are substituted with query terms. To map a given CQL index (e.g the default keyword index) into multiple entity properties, SPARQL constructs like `OPTIONAL` or `UNION` could be used. + <present type="attribute"/> + + + Section used to declare retrieval for a given element-set + (SRU schema). The CDATA is SPARQL where %u holds + the URI of the record. This can be used to construct the resulting + record. + + + <modifier/> @@ -107,7 +118,6 @@ - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/
SELECT ?work ?wtitle
?work a bf:Work @@ -129,7 +139,6 @@ the same filter section as the "Default" db above. - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/
SELECT ?work @@ -186,7 +195,6 @@ Configuration for database "works". This uses CONSTRUCT to produce rdf. - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ CONSTRUCT { ?work bf:title ?wtitle . @@ -219,7 +227,6 @@ two formats, we get four rows. The DISTINCT in the SELECT - rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns bf: http://bibframe.org/vocab/ SELECT DISTINCT ?instance ?title ?format ?instance a bf:Instance