SPARQL 1.1是否STRAFTER
可以在 Virtuoso(2012 年 6 月版本 6.04 版本)中工作?
试
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX iodp: <http://data.oceandrilling.org/core/1/>
PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>
SELECT ?p (strafter(str(?p), "http://data.oceandrilling.org/janus/") AS ?pshort)
FROM <http://data.oceandrilling.org/janus/>
WHERE {
<http://data.oceandrilling.org/janus/ngr_section201_1226> qb:observation ?observation .
?observation ?p ?o .
FILTER (regex(?p, "janus")) .
FILTER (!regex(?p, "leg")) .
FILTER (!regex(?p, "site")) .
FILTER (datatype(?o) = <http://www.w3.org/2001/XMLSchema#decimal>) .
}
在http://data.oceandrilling.org/sparql会引发 SPARQL 编译错误。