updates for NIHVIVO-3271 and NIHVIVO-3207

This commit is contained in:
stellamit 2011-11-02 21:22:15 +00:00
parent 1e9e1b493a
commit 6d78bcce7d
13 changed files with 2631 additions and 2567 deletions

View file

@ -14,10 +14,10 @@ PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX vivo: <http://vivoweb.org/ontology/core#>
Construct {
?something vivo:hasAssociatedConcept _:concept .
_:concept vivo:conceptAssociatedWith ?something .
_:concept rdf:type skos:Concept .
_:concept rdfs:label ?label
?something vivo:hasAssociatedConcept ?concept .
?concept vivo:conceptAssociatedWith ?something .
?concept rdf:type skos:Concept .
?concept rdfs:label ?label
} where {
?something vivo:hasSubjectArea ?concept .
?concept rdf:type vivo:SubjectArea .

View file

@ -14,15 +14,14 @@ PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX vivo: <http://vivoweb.org/ontology/core#>
Construct {
?person vivo:hasResearchArea _:concept .
_:concept vivo:researchAreaOf ?person .
_:concept rdf:type skos:Concept .
_:concept rdfs:label ?label
?something vivo:hasSubjectArea ?concept .
?concept ?property ?object .
?subject ?property2 ?concept .
} where {
?person vivo:hasResearchArea ?concept .
?something vivo:hasSubjectArea ?concept .
?concept rdf:type vivo:SubjectArea .
optional {?concept rdfs:label ?label}
optional {?concept vivo:sourceVocabularyReference ?urllink}
filter (!bound(?urllink))
?concept vivo:sourceVocabularyReference ?urllink .
?urllink vivo:linkURI ?uri .
?concept ?property ?object .
?subject ?property2 ?concept
}

View file

@ -15,8 +15,13 @@ PREFIX vivo: <http://vivoweb.org/ontology/core#>
Construct {
?person vivo:hasResearchArea ?concept .
?concept vivo:researchAreaOf ?person
?concept ?property ?object .
?subject ?property2 ?concept .
} where {
?person vivo:hasResearchArea ?concept .
?concept rdf:type vivo:SubjectArea .
?concept vivo:sourceVocabularyReference ?urllink .
?urllink vivo:linkURI ?uri .
?concept ?property ?object .
?subject ?property2 ?concept .
}

View file

@ -0,0 +1,31 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX swrl: <http://www.w3.org/2003/11/swrl#>
PREFIX swrlb: <http://www.w3.org/2003/11/swrlb#>
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
PREFIX vivo: <http://vivo.library.cornell.edu/ns/0.1#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX event: <http://purl.org/NET/c4dm/event.owl#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX vivo: <http://vivoweb.org/ontology/core#>
Construct {
?role vivo:roleIn ?something .
?something vivo:relatedRole ?role
} where {
{?role vivo:roleIn ?something}
union
{?something vivo:relatedRole ?role}
{?something rdf:type vivo:Service}
union
{?something rdf:type foaf:Agent}
union
{?something rdf:type vivo:Agreement}
union
{?something rdf:type vivo:InformationResource}
}

View file

@ -0,0 +1,29 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX swrl: <http://www.w3.org/2003/11/swrl#>
PREFIX swrlb: <http://www.w3.org/2003/11/swrlb#>
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
PREFIX vivo: <http://vivo.library.cornell.edu/ns/0.1#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX event: <http://purl.org/NET/c4dm/event.owl#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX vivo: <http://vivoweb.org/ontology/core#>
Construct {
?role vivo:roleIn ?something .
?something vivo:relatedRole ?role
} where {
{?role vivo:roleIn ?something}
union
{?something vivo:relatedRole ?role}
{?something rdf:type vivo:Project}
union
{?something rdf:type event:Event}
union
{?something rdf:type vivo:EventSeries}
}