VIVO-870 Move VivoAgentContextNodeFields into the configuration.
Delete VivoAgentContextNodeFields and its tests and the data files for the tests.
This commit is contained in:
parent
4eeb0f5c09
commit
c85aed6943
8 changed files with 209 additions and 48915 deletions
|
@ -85,6 +85,215 @@
|
|||
}
|
||||
""" .
|
||||
|
||||
:vivodocumentModifier_AgentContextNodeFields
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SimpleSparqlQueryDocumentModifier> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
|
||||
rdfs:label "Add many fields to agents." ;
|
||||
:hasTypeRestriction "http://xmlns.com/foaf/0.1/foaf:Agent" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
SELECT (str(?ContextNodeProperty) as ?contextNodeProperty)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type core:Position .
|
||||
?c core:hrJobTitle ?ContextNodeProperty .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
SELECT (str(?ContextNodeProperty) as ?contextNodeProperty)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type core:Position .
|
||||
?c core:relates ?i .
|
||||
?i rdf:type foaf:Organization .
|
||||
?i rdfs:label ?ContextNodeProperty .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
SELECT (str(?ContextNodeProperty) as ?contextNodeProperty)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type core:Position .
|
||||
?c core:titleOrRole ?ContextNodeProperty .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
SELECT (str(?HRJobTitle) as ?hrJobTitle)
|
||||
(str(?PositionInOrganization) as ?positionInOrganization)
|
||||
(str(?TitleOrRole) as ?titleOrRole)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type core:Position .
|
||||
OPTIONAL { ?c core:hrJobTitle ?HRJobTitle . } .
|
||||
OPTIONAL { ?c core:relates ?i .
|
||||
?i rdf:type foaf:Organization .
|
||||
?i rdfs:label ?PositionInOrganization . } .
|
||||
OPTIONAL { ?c core:titleOrRole ?TitleOrRole . } .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
SELECT (str(?ContextNodeProperty) as ?contextNodeProperty)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type core:AdvisingRelationship .
|
||||
?c rdfs:label ?ContextNodeProperty .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
SELECT (str(?ContextNodeProperty) as ?contextNodeProperty)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type core:AdvisingRelationship .
|
||||
?c core:degreeCandidacy ?e .
|
||||
?e rdfs:label ?ContextNodeProperty .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
||||
SELECT (str(?label) as ?adviseeLabel)
|
||||
WHERE {
|
||||
?c rdf:type core:AdvisingRelationship .
|
||||
?c core:relates ?uri .
|
||||
?uri obo:RO_0000053 ?advisorRole .
|
||||
?advisorRole rdf:type core:AdvisorRole .
|
||||
?c core:relates ?d .
|
||||
?d rdf:type foaf:Person .
|
||||
?d obo:RO_0000053 ?adviseeRole .
|
||||
?adviseeRole rdf:type core:AdviseeRole .
|
||||
?d rdfs:label ?label .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
||||
SELECT (str(?label) as ?advisorLabel)
|
||||
WHERE {
|
||||
?c rdf:type core:AdvisingRelationship .
|
||||
?c core:relates ?uri .
|
||||
?uri obo:RO_0000053 ?adviseeRole .
|
||||
?adviseeRole rdf:type core:AdviseeRole .
|
||||
?c core:relates ?d .
|
||||
?d rdf:type foaf:Person .
|
||||
?d obo:RO_0000053 ?advisorRole .
|
||||
?advisorRole rdf:type core:AdvisorRole .
|
||||
?d rdfs:label ?ContextNodeProperty .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
||||
SELECT (str(?ContextNodeProperty) as ?contextNodeProperty)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type core:Authorship .
|
||||
?c core:relates ?f .
|
||||
?f rdf:type foaf:Person .
|
||||
?f rdfs:label ?ContextNodeProperty .
|
||||
FILTER( ?f != ?uri )
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
||||
SELECT (str(?ContextNodeProperty) as ?contextNodeProperty)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type core:Authorship .
|
||||
?c core:relates ?h .
|
||||
?h rdf:type obo:IAO_0000030 .
|
||||
?h rdfs:label ?ContextNodeProperty .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
||||
SELECT (str(?AwardLabel) as ?awardLabel)
|
||||
(str(?AwardConferredBy) as ?awardConferredBy)
|
||||
(str(?Description) as ?description)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type core:AwardReceipt .
|
||||
OPTIONAL { ?c core:relates ?e . ?e rdf:type core:Award . ?e rdfs:label ?AwardLabel . } .
|
||||
OPTIONAL { ?c core:assignedBy ?d . ?d rdf:type foaf:Organization . ?d rdfs:label ?AwardConferredBy . } .
|
||||
OPTIONAL { ?c core:description ?Description . } .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
||||
SELECT (str(?OrganizationLabel) as ?organizationLabel)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type obo:BFO_0000023 ;
|
||||
core:roleContributesTo ?Organization .
|
||||
?Organization rdf:type core:Organization .
|
||||
?Organization rdfs:label ?OrganizationLabel .
|
||||
}
|
||||
""" ;
|
||||
:hasSparqlQuery """
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
||||
SELECT (str(?AcademicDegreeLabel) as ?academicDegreeLabel)
|
||||
(str(?AcademicDegreeAbbreviation) as ?academicDegreeAbbreviation)
|
||||
(str(?MajorField) as ?majorField)
|
||||
(str(?DepartmentOrSchool) as ?departmentOrSchool)
|
||||
(str(?TrainingAtOrganizationLabel) as ?trainingAtOrganizationLabel)
|
||||
WHERE {
|
||||
?uri ?b ?c .
|
||||
?c rdf:type core:EducationalProcess .
|
||||
OPTIONAL { ?c core:relates ?d .
|
||||
?d rdf:type core:AwardedDegree .
|
||||
?d core:relates ?e .
|
||||
?e rdf:type core:AcademicDegree .
|
||||
?e rdfs:label ?AcademicDegreeLabel . } .
|
||||
OPTIONAL { ?c core:majorField ?MajorField .} .
|
||||
OPTIONAL { ?c core:departmentOrSchool ?DepartmentOrSchool . }
|
||||
OPTIONAL { ?c obo:RO_0000057 ?f .
|
||||
?f rdf:type foaf:organization .
|
||||
?f rdfs:label ?TrainingAtOrganizationLabel . } .
|
||||
}
|
||||
""" .
|
||||
|
||||
|
||||
:vivodocumentModifier_MembershipFields
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.SimpleSparqlQueryDocumentModifier> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifier> ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue