查询龟文件时作出筛选我应该提到我在语义网络世界初学者。我的乌龟文件有以下结构:如何使用SPARQL
@prefix ns0: <http://www.cws.org/ep/01#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
#...
<file:///C:/Users/Anis/Downloads/usdl-editor-master/usdl-editor-master/index.html#OSZwMOW5JiZTlJXb7>
a ns0:GuaranteedState ;
ns0:executionParameterType [
a ns0:executionParameterType ;
dc:description "Description Inpuuut" ;
ns0:hasVariable <file:///C:/index.html#ekHCp7iFi1aEWM7QQ>
] ;
dc:title "Input" .
<file:///C:/index.html#ekHCp7iFi1aEWM7QQ>
a ns0:Variable ;
ns0:hasDefault [
a gr:QuantitativeValue ;
gr:hasValue "document.csv" ;
gr:hasUnitOfMeasurement "csv"
] ;
rdfs:label "test1" .
#...
我正在尝试过滤dc:title = "Input"
。
这是我的查询,我拿什么来补充?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ns0: <http://www.cws.org/ep/01#>
PREFIX dc: <http://purl.org/dc/terms/>
PREFIX gr: <http://purl.org/goodrelations/v1#>
SELECT *
WHERE {
?path dc:title ?x
}
My query result显示器始终是“@”。我不知道这是什么意思?
由于您问题中的示例数据不包含语言标记,因此这实际上并不回答您提问的问题。 –
尽管我的文件中没有“@sth ..”,但查询结果显示始终带有“@”。此外,就在过滤器(X =“输入” @)不工作,所以对我来说,我在文件结构中增加“@en”然后我应用的过滤器(X =“输入” @en)和它的工作原理。 –