VIVO-669: remove ARQ functions substring and now
Still need to find replacement for localname and namespace
This commit is contained in:
parent
46695e9ba2
commit
517d97ba91
28 changed files with 18 additions and 44 deletions
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
||||||
SELECT DISTINCT ?awardedDegree
|
SELECT DISTINCT ?awardedDegree
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
|
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
|
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
SELECT ?value
|
SELECT ?value
|
||||||
WHERE {
|
WHERE {
|
||||||
?subject ?property ?value
|
?subject ?property ?value
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
|
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
|
||||||
|
@ -41,7 +40,7 @@
|
||||||
}
|
}
|
||||||
# Get current positions only: end date is either null or not in the past
|
# Get current positions only: end date is either null or not in the past
|
||||||
FILTER ( !bound(?dateTimeEnd) ||
|
FILTER ( !bound(?dateTimeEnd) ||
|
||||||
afn:substring(str(?dateTimeEnd), 0, 4) >= afn:substring(str(afn:now()), 0, 4) )
|
substr(str(?dateTimeEnd), 1, 4) >= substr(str(now()), 1, 4) )
|
||||||
<critical-data-required>
|
<critical-data-required>
|
||||||
FILTER ( bound(?person) )
|
FILTER ( bound(?person) )
|
||||||
</critical-data-required>
|
</critical-data-required>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||||
@prefix core: <http://vivoweb.org/ontology/core#> .
|
@prefix core: <http://vivoweb.org/ontology/core#> .
|
||||||
@prefix vivoweb: <http://vivoweb.org/ontology#> .
|
@prefix vivoweb: <http://vivoweb.org/ontology#> .
|
||||||
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
|
|
||||||
|
|
||||||
|
|
||||||
#### n3 for research areas ####
|
#### n3 for research areas ####
|
||||||
|
@ -25,7 +24,6 @@ display:getDepartmentDataGetter
|
||||||
"""
|
"""
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
SELECT DISTINCT (str(?departmentLabel) AS ?deptLabel) ?dept
|
SELECT DISTINCT (str(?departmentLabel) AS ?deptLabel) ?dept
|
||||||
WHERE {
|
WHERE {
|
||||||
|
@ -41,7 +39,7 @@ display:getDepartmentDataGetter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FILTER ( !bound(?endDate) ||
|
FILTER ( !bound(?endDate) ||
|
||||||
afn:substring(str(?endDate), 0, 4) >= afn:substring(str(afn:now()), 0, 4) )
|
substr(str(?endDate), 1, 4) >= substr(str(now()), 1, 4) )
|
||||||
}
|
}
|
||||||
ORDER BY ?deptLabel
|
ORDER BY ?deptLabel
|
||||||
""" .
|
""" .
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||||
@prefix core: <http://vivoweb.org/ontology/core#> .
|
@prefix core: <http://vivoweb.org/ontology/core#> .
|
||||||
@prefix vivoweb: <http://vivoweb.org/ontology#> .
|
@prefix vivoweb: <http://vivoweb.org/ontology#> .
|
||||||
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
|
|
||||||
|
|
||||||
|
|
||||||
#### n3 for research areas ####
|
#### n3 for research areas ####
|
||||||
|
@ -31,7 +30,6 @@ display:getResearchAreaDataGetter
|
||||||
"""
|
"""
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
SELECT DISTINCT (str(?researchAreaLabel) AS ?raLabel) ?ra
|
SELECT DISTINCT (str(?researchAreaLabel) AS ?raLabel) ?ra
|
||||||
WHERE {
|
WHERE {
|
||||||
|
@ -47,7 +45,7 @@ display:getResearchAreaDataGetter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FILTER ( !bound(?endDate) ||
|
FILTER ( !bound(?endDate) ||
|
||||||
afn:substring(str(?endDate), 0, 4) >= afn:substring(str(afn:now()), 0, 4) )
|
substr(str(?endDate), 1, 4) >= substr(str(now()), 1, 4) )
|
||||||
}
|
}
|
||||||
ORDER BY ?raLabel
|
ORDER BY ?raLabel
|
||||||
""" .
|
""" .
|
||||||
|
@ -144,7 +142,6 @@ display:getGrantsDataGetter
|
||||||
"""
|
"""
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
SELECT DISTINCT ?grant
|
SELECT DISTINCT ?grant
|
||||||
WHERE {
|
WHERE {
|
||||||
|
@ -159,7 +156,7 @@ display:getGrantsDataGetter
|
||||||
?grant vivo:dateTimeInterval ?dti .
|
?grant vivo:dateTimeInterval ?dti .
|
||||||
?dti vivo:end ?end.
|
?dti vivo:end ?end.
|
||||||
?end vivo:dateTime ?dt
|
?end vivo:dateTime ?dt
|
||||||
FILTER (?dt > afn:now())
|
FILTER (?dt > now())
|
||||||
}
|
}
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
""" .
|
""" .
|
||||||
|
@ -179,7 +176,6 @@ display:getGrantsDataGetter
|
||||||
"""
|
"""
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
||||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
SELECT DISTINCT (str (?gLabel) AS ?grantLabel) ?dt (str(?departmentLabel) AS ?deptLabel) ?grant
|
SELECT DISTINCT (str (?gLabel) AS ?grantLabel) ?dt (str(?departmentLabel) AS ?deptLabel) ?grant
|
||||||
WHERE {
|
WHERE {
|
||||||
|
@ -196,7 +192,7 @@ display:getGrantsDataGetter
|
||||||
?grant vivo:dateTimeInterval ?dti .
|
?grant vivo:dateTimeInterval ?dti .
|
||||||
?dti vivo:end ?end.
|
?dti vivo:end ?end.
|
||||||
?end vivo:dateTime ?dt
|
?end vivo:dateTime ?dt
|
||||||
FILTER (?dt > afn:now())
|
FILTER (?dt > now())
|
||||||
}
|
}
|
||||||
ORDER BY ?gLabel
|
ORDER BY ?gLabel
|
||||||
""" ;
|
""" ;
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class OrganizationToGrantsForSubOrganizationsModelConstructor implements
|
||||||
+ " ?Grant rdf:type core:Grant . "
|
+ " ?Grant rdf:type core:Grant . "
|
||||||
+ " ?Grant rdfs:label ?grantLabel . "
|
+ " ?Grant rdfs:label ?grantLabel . "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
|
|
||||||
String justDateTimeOnGrantsQuery = ""
|
String justDateTimeOnGrantsQuery = ""
|
||||||
|
@ -103,7 +103,7 @@ public class OrganizationToGrantsForSubOrganizationsModelConstructor implements
|
||||||
// + " ?endDateForGrant core:dateTime ?endDateTimeValueForGrant "
|
// + " ?endDateForGrant core:dateTime ?endDateTimeValueForGrant "
|
||||||
// + " } "
|
// + " } "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
|
|
||||||
String justDateTimeOnRolesQuery = ""
|
String justDateTimeOnRolesQuery = ""
|
||||||
|
@ -138,7 +138,7 @@ public class OrganizationToGrantsForSubOrganizationsModelConstructor implements
|
||||||
// + " ?endDate core:dateTime ?endDateTimeValue . "
|
// + " ?endDate core:dateTime ?endDateTimeValue . "
|
||||||
// + " } "
|
// + " } "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
|
|
||||||
differentPerspectiveQueries.add(justGrantsQuery);
|
differentPerspectiveQueries.add(justGrantsQuery);
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class OrganizationToPublicationsForSubOrganizationsModelConstructor imple
|
||||||
+ " ?journal rdfs:label ?journalLabel . "
|
+ " ?journal rdfs:label ?journalLabel . "
|
||||||
+ " } "
|
+ " } "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
+ " ?Grant rdf:type core:Grant . "
|
+ " ?Grant rdf:type core:Grant . "
|
||||||
+ " ?Grant rdfs:label ?grantLabel . "
|
+ " ?Grant rdfs:label ?grantLabel . "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
|
|
||||||
String justDateTimeOnGrantsQuery = ""
|
String justDateTimeOnGrantsQuery = ""
|
||||||
|
@ -83,7 +83,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
// + " ?endDateForGrant core:dateTime ?endDateTimeValueForGrant "
|
// + " ?endDateForGrant core:dateTime ?endDateTimeValueForGrant "
|
||||||
// + " } "
|
// + " } "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
|
|
||||||
String justDateTimeOnRolesQuery = ""
|
String justDateTimeOnRolesQuery = ""
|
||||||
|
@ -109,7 +109,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
// + " ?endDate core:dateTime ?endDateTimeValue . "
|
// + " ?endDate core:dateTime ?endDateTimeValue . "
|
||||||
// + " } "
|
// + " } "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
|
|
||||||
differentPerspectiveQueries.add(justGrantsQuery);
|
differentPerspectiveQueries.add(justGrantsQuery);
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class PeopleToPublicationsModelConstructor implements ModelConstructor {
|
||||||
+ " ?journal rdfs:label ?journalLabel . "
|
+ " ?journal rdfs:label ?journalLabel . "
|
||||||
+ " } "
|
+ " } "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
+ " ?Grant rdf:type core:Grant . "
|
+ " ?Grant rdf:type core:Grant . "
|
||||||
+ " ?Grant rdfs:label ?grantLabel . "
|
+ " ?Grant rdfs:label ?grantLabel . "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
|
|
||||||
String justDateTimeOnGrantsQuery = ""
|
String justDateTimeOnGrantsQuery = ""
|
||||||
|
@ -86,7 +86,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
// + " ?endDateForGrant core:dateTime ?endDateTimeValueForGrant "
|
// + " ?endDateForGrant core:dateTime ?endDateTimeValueForGrant "
|
||||||
// + " } "
|
// + " } "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
|
|
||||||
String justDateTimeOnRolesQuery = ""
|
String justDateTimeOnRolesQuery = ""
|
||||||
|
@ -112,7 +112,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
// + " ?endDate core:dateTime ?endDateTimeValue . "
|
// + " ?endDate core:dateTime ?endDateTimeValue . "
|
||||||
// + " } "
|
// + " } "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
|
|
||||||
differentPerspectiveQueries.add(justGrantsQuery);
|
differentPerspectiveQueries.add(justGrantsQuery);
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class PersonToPublicationsModelConstructor implements ModelConstructor {
|
||||||
+ " ?journal rdfs:label ?journalLabel . "
|
+ " ?journal rdfs:label ?journalLabel . "
|
||||||
+ " } "
|
+ " } "
|
||||||
+ " "
|
+ " "
|
||||||
+ " LET(?now := afn:now()) "
|
+ " LET(?now := now()) "
|
||||||
+ " } ";
|
+ " } ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue