3

私はこのような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 rdf:resource="http://vivoweb.org/ontology/core#Position"/>
    <vivo:positionForPerson rdf:resource="http://reach.suny.edu/individual/Hajagos_Janos"/>
    <vivo:positionInOrganization rdf:resource="http://reach.suny.edu/individual/n4644"/>
    <vivo:rank rdf:datatype="http://www.w3.org/2001/XMLSchema#int">1</vivo:rank>
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Clinical Assistant Professor</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/n5408">
    <rdfs:label>Semantic Web</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://link.informatics.stonybrook.edu/umls/CUI/C0025088">
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Medical Informatics</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://vivoweb.org/ontology/core#yearPrecision">
    <rdfs:label xml:lang="en-US">yearPrecision</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/n4542">
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Medical Informatics</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/a21575203">
    <rdfs:label>Linked open drug data for pharmaceutical research and development.</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://link.informatics.stonybrook.edu/umls/CUI/C0010992">
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Data Analysis</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://link.informatics.stonybrook.edu/umls/CUI/C0085567">
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">UMLS</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/n10121">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
    <rdf:type rdf:resource="http://vivoweb.org/ontology/core#DateTimeValue"/>
    <vivo:dateTimePrecision rdf:resource="http://vivoweb.org/ontology/core#yearPrecision"/>
    <vivo:dateTime rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2011-01-01T00:00:00</vivo:dateTime>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/n4418">
    <rdfs:label xml:lang="en-US">Semantic Web Architecture Group</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://link.informatics.stonybrook.edu/umls/CUI/C0025071">
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Medicaid</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://link.informatics.stonybrook.edu/umls/CUI/C1882937">
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RDF</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/gHajagos_Janos_21575203">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
    <rdf:type rdf:resource="http://vivoweb.org/ontology/core#Relationship"/>
    <rdf:type rdf:resource="http://vivoweb.org/ontology/core#Authorship"/>
    <vivo:linkedAuthor rdf:resource="http://reach.suny.edu/individual/Hajagos_Janos"/>
    <vivo:linkedInformationResource rdf:resource="http://reach.suny.edu/individual/a21575203"/>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/n6907">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
    <rdf:type rdf:resource="http://vivoweb.org/ontology/core#Position"/>
    <vivo:positionForPerson rdf:resource="http://reach.suny.edu/individual/Hajagos_Janos"/>
    <vivo:positionInOrganization rdf:resource="http://reach.suny.edu/individual/n4542"/>
    <vivo:rank rdf:datatype="http://www.w3.org/2001/XMLSchema#int">2</vivo:rank>
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Senior Programmer/Data Analyst</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/n2444">
    <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#MemberRole"/>
    <vivo:memberRoleOf rdf:resource="http://reach.suny.edu/individual/Hajagos_Janos"/>
    <vivo:roleContributesTo rdf:resource="http://reach.suny.edu/individual/n4418"/>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/n3729">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
    <rdf:type rdf:resource="http://vivoweb.org/ontology/core#DateTimeValue"/>
    <vivo:dateTimePrecision rdf:resource="http://vivoweb.org/ontology/core#yearPrecision"/>
    <vivo:dateTime rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2011-01-01T00:00:00</vivo:dateTime>
  </rdf:Description>
  <rdf:Description rdf:about="http://link.informatics.stonybrook.edu/umls/CUI/C0034379">
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Health care quality</rdfs:label>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/Hajagos_Janos">
    <foaf:lastName rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Hajagos</foaf:lastName>
    <vivo:personInPosition rdf:resource="http://reach.suny.edu/individual/n4507"/>
    <vivo:educationalTraining rdf:resource="http://reach.suny.edu/individual/n20726"/>
    <vivo:authorInAuthorship rdf:resource="http://reach.suny.edu/individual/gHajagos_Janos_21575203"/>
    <vivo:hasResearchArea rdf:resource="http://link.informatics.stonybrook.edu/umls/CUI/C0010992"/>
    <vivo:hasResearchArea rdf:resource="http://link.informatics.stonybrook.edu/umls/CUI/C1882937"/>
    <vivo:personInPosition rdf:resource="http://reach.suny.edu/individual/n6907"/>
    <vivo:faxNumber>631-444-8873</vivo:faxNumber>
    <j.0:networkId>jhajagos</j.0:networkId>
    <vivo:hasMemberRole rdf:resource="http://reach.suny.edu/individual/n2444"/>
    <vivo:hasPresenterRole rdf:resource="http://reach.suny.edu/individual/n6042"/>
    <vivo:middleName>G</vivo:middleName>
    <vitro-public:mainImage rdf:resource="http://reach.suny.edu/individual/n1206"/>
    <vivo:email>risk.limits@gmail.com</vivo:email>
    <vivo:hasResearchArea rdf:resource="http://link.informatics.stonybrook.edu/umls/CUI/C0025071"/>
    <rdf:type rdf:resource="http://reach.suny.edu/ontology/core#SUNY_REACH_Investigator"/>
    <vivo:hasResearchArea rdf:resource="http://link.informatics.stonybrook.edu/umls/CUI/C0085567"/>
    <rdfs:label xml:lang="en-US">Hajagos, Janos</rdfs:label>
    <foaf:firstName rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Janos</foaf:firstName>
    <vivo:phoneNumber>631-444-1596</vivo:phoneNumber>
    <vivo:hasResearchArea rdf:resource="http://link.informatics.stonybrook.edu/umls/CUI/C0034379"/>
    <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
    <vivo:hasResearchArea rdf:resource="http://reach.suny.edu/individual/n5408"/>
    <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
    <vivo:preferredTitle>Senior Programmer/Analyst&lt;br /&gt;</vivo:preferredTitle>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
    <vivo:primaryEmail>janos.hajagos@stonybrook.edu</vivo:primaryEmail>
    <bibo:suffixName>Ph.D.</bibo:suffixName>
    <vivo:hasResearchArea rdf:resource="http://link.informatics.stonybrook.edu/umls/CUI/C0025088"/>
  </rdf:Description>
  <rdf:Description rdf:about="http://reach.suny.edu/individual/n4644">
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">BS/HS Program</rdfs:label>
  </rdf:Description>
</rdf:RDF>

姓が である人の出版物を探したいです"Hajagos"。データから、下にあることがわかります<rdfs:label> "Linked open drug data for pharmaceutical research and development"。しかし、同じ の下にも多くの値があります<rdfs:label>。どうすればこれを照会できますか。次の SPARQL を試しましたが、何も役に立ちませんでした。

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX vivo: <http://vivoweb.org/ontology/core#>

SELECT ?publication
WHERE {
  ?person foaf:lastName "Hajagos" .
  ?person rdfs:label ?publication
}

このクエリen-USでは、属性の値でもあるのみを取得できます<rdfs:label>

4

1 に答える 1