我有这样的RDF数据:(更新,完整文件)
我得到这个RDF的来源是:http://reach.suny.edu/display/Hajagos_Janos 当你在个人资料图片下面的"回形针"按钮时,你可以下载这个文件.SPARQL端点是:http://link.informatics.stonybrook.edu/sparql/
<rdf:RDF
xmlns:geo="http://aims.fao.org/aos/geopolitical.owl#"
xmlns:c4o="http://purl.org/spar/c4o/"
xmlns:vitro-public="http://vitro.mannlib.cornell.edu/ns/vitro/public#"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:ero="http://purl.obolibrary.org/obo/"
xmlns:event="http://purl.org/NET/c4dm/event.owl#"
xmlns:pvs="http://vivoweb.org/ontology/provenance-support#"
xmlns:dcelem="http://purl.org/dc/elements/1.1/"
xmlns:j.0="http://reach.suny.edu/ns#"
xmlns:vivo="http://vivoweb.org/ontology/core#"
xmlns:vitro="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:bibo="http://purl.org/ontology/bibo/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:reach="http://reach.suny.edu/ontology/core#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:scires="http://vivoweb.org/ontology/scientific-research#"
xmlns:fabio="http://purl.org/spar/fabio/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
<rdf:Description rdf:about="http://reach.suny.edu/individual/n2406">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
<rdf:type rdf:resource="http://vivoweb.org/ontology/core#DateTimeInterval"/>
<vivo:start rdf:resource="http://reach.suny.edu/individual/n10121"/>
<vivo:end rdf:resource="http://reach.suny.edu/individual/n3729"/>
</rdf:Description>
<rdf:Description rdf:about="http://reach.suny.edu/individual/n6042">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
<rdf:type rdf:resource="http://vivoweb.org/ontology/core#Role"/>
<rdf:type rdf:resource="http://vivoweb.org/ontology/core#PresenterRole"/>
<vivo:roleRealizedIn rdf:resource="http://reach.suny.edu/individual/n3694"/>
<vivo:dateTimeInterval rdf:resource="http://reach.suny.edu/individual/n2406"/>
<vivo:presenterRoleOf rdf:resource="http://reach.suny.edu/individual/Hajagos_Janos"/>
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Speaker</rdfs:label>
</rdf:Description>
<rdf:Description rdf:about="http://reach.suny.edu/individual/n3694">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">VIVO Mini-Grant: Integrating the UMLS Ontology into VIVO for Linking Biomedical Scientists</rdfs:label>
</rdf:Description>
<rdf:Description rdf:about="http://reach.suny.edu/individual/n4507">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
<rdf:type …Run Code Online (Sandbox Code Playgroud) 我是SPARQL 1.1的初学者.我有一个N-Triples文件,如下所示.我想找到Work_RVU(最后一个属性)和相关代码(第四个属性)的最大值.
<file://PPRVU12.xlsx/69540> <http://www.w3.org/1999/02/22-rdf-syntax-ns?#type> <http://cms.gov/HCPCS> .
<file://PPRVU12.xlsx/69540> <http://www.w3.org/2000/01/rdf-schema#label> "Remove ear lesion" .
<file://PPRVU12.xlsx/69540> <file://PPRVU12.xlsx#Status_Code> "A" .
<file://PPRVU12.xlsx/69540> <file://PPRVU12.xlsx#Code> "69540" .
<file://PPRVU12.xlsx/69540> <file://PPRVU12.xlsx#Work_RVU> "1.25" .
<file://PPRVU12.xlsx/69550> <http://www.w3.org/1999/02/22-rdf-syntax-ns?#type> <http://cms.gov/HCPCS> .
<file://PPRVU12.xlsx/69550> <http://www.w3.org/2000/01/rdf-schema#label> "Remove ear lesion" .
<file://PPRVU12.xlsx/69550> <file://PPRVU12.xlsx#Status_Code> "A" .
<file://PPRVU12.xlsx/69550> <file://PPRVU12.xlsx#Code> "69550" .
<file://PPRVU12.xlsx/69550> <file://PPRVU12.xlsx#Work_RVU> "11.15" .
<file://PPRVU12.xlsx/69552> <http://www.w3.org/1999/02/22-rdf-syntax-ns?#type> <http://cms.gov/HCPCS> .
<file://PPRVU12.xlsx/69552> <http://www.w3.org/2000/01/rdf-schema#label> "Remove ear lesion" .
<file://PPRVU12.xlsx/69552> <file://PPRVU12.xlsx#Status_Code> "A" .
<file://PPRVU12.xlsx/69552> <file://PPRVU12.xlsx#Code> "69552" .
<file://PPRVU12.xlsx/69552> <file://PPRVU12.xlsx#Work_RVU> "19.81" .
Run Code Online (Sandbox Code Playgroud)
最大RVU应为19.81,代码应为"69552".我可以打印19.81但总是打印"69540",这意味着它总是选择它每次遇到的第一个代码.
我的SPARQL代码如下:
PREFIX pre: <file://PPRVU12.xlsx#>
SELECT ?code (MAX (?val) AS …Run Code Online (Sandbox Code Playgroud)