first list view with CONSTRUCTs
This commit is contained in:
parent
58e38f6898
commit
0cf5f7cef6
1 changed files with 76 additions and 12 deletions
|
@ -12,11 +12,11 @@
|
||||||
SELECT DISTINCT ?authorship (afn:localname(?authorship) AS ?authorshipName)
|
SELECT DISTINCT ?authorship (afn:localname(?authorship) AS ?authorshipName)
|
||||||
?infoResource ?infoResourceName
|
?infoResource ?infoResourceName
|
||||||
?dateTime WHERE {
|
?dateTime WHERE {
|
||||||
GRAPH ?g1 { ?subject ?property ?authorship }
|
?subject ?property ?authorship
|
||||||
OPTIONAL { GRAPH ?g2 { ?authorship core:linkedInformationResource ?infoResource }
|
OPTIONAL { ?authorship core:linkedInformationResource ?infoResource .
|
||||||
GRAPH ?g3 { ?infoResource rdfs:label ?infoResourceName }
|
?infoResource rdfs:label ?infoResourceName
|
||||||
OPTIONAL { GRAPH ?g4 { ?infoResource core:dateTimeValue ?dateTimeValue }
|
OPTIONAL { ?infoResource core:dateTimeValue ?dateTimeValue .
|
||||||
GRAPH ?g5 { ?dateTimeValue core:dateTime ?dateTime }
|
?dateTimeValue core:dateTime ?dateTime
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ORDER BY DESC(?dateTime) ?infoResourceName
|
} ORDER BY DESC(?dateTime) ?infoResourceName
|
||||||
|
@ -31,18 +31,82 @@
|
||||||
?authorship (afn:localname(?authorship) AS ?authorshipName)
|
?authorship (afn:localname(?authorship) AS ?authorshipName)
|
||||||
?infoResource ?infoResourceName
|
?infoResource ?infoResourceName
|
||||||
?dateTime WHERE {
|
?dateTime WHERE {
|
||||||
GRAPH ?g1 { ?subject ?property ?authorship }
|
?subject ?property ?authorship
|
||||||
OPTIONAL { GRAPH ?g2 { ?authorship core:linkedInformationResource ?infoResource }
|
OPTIONAL { ?authorship core:linkedInformationResource ?infoResource .
|
||||||
GRAPH ?g3 { ?infoResource rdfs:label ?infoResourceName }
|
?infoResource rdfs:label ?infoResourceName
|
||||||
OPTIONAL { GRAPH ?g4 { ?subclass rdfs:subClassOf core:InformationResource }
|
OPTIONAL { ?subclass rdfs:subClassOf core:InformationResource .
|
||||||
GRAPH ?g5 { ?infoResource a ?subclass }
|
?infoResource a ?subclass
|
||||||
}
|
}
|
||||||
OPTIONAL { GRAPH ?g6 { ?infoResource core:dateTimeValue ?dateTimeValue }
|
OPTIONAL { ?infoResource core:dateTimeValue ?dateTimeValue .
|
||||||
GRAPH ?g7 { ?dateTimeValue core:dateTime ?dateTime }
|
?dateTimeValue core:dateTime ?dateTime
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ORDER BY ?subclass DESC(?dateTime) ?infoResourceName
|
} ORDER BY ?subclass DESC(?dateTime) ?infoResourceName
|
||||||
</query-collated>
|
</query-collated>
|
||||||
|
|
||||||
|
<query-construct>
|
||||||
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
CONSTRUCT {
|
||||||
|
?subclass rdfs:subClassOf core:InformationResource
|
||||||
|
} WHERE {
|
||||||
|
?subclass rdfs:subClassOf core:InformationResource
|
||||||
|
}
|
||||||
|
</query-construct>
|
||||||
|
|
||||||
|
<query-construct>
|
||||||
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
CONSTRUCT {
|
||||||
|
?subject ?property ?authorship .
|
||||||
|
?authorship ?authorshipProperty ?authorshipValue .
|
||||||
|
?authorship core:linkedInformationResource ?infoResource .
|
||||||
|
?infoResource rdfs:label ?infoResourceName
|
||||||
|
} WHERE {
|
||||||
|
{
|
||||||
|
?subject ?property ?authorship
|
||||||
|
}
|
||||||
|
UNION {
|
||||||
|
?subject ?property ?authorship .
|
||||||
|
?authorship ?authorshipProperty ?authorshipValue .
|
||||||
|
} UNION {
|
||||||
|
?subject ?property ?authorship .
|
||||||
|
?authorship core:linkedInformationResource ?infoResource .
|
||||||
|
?infoResource rdfs:label ?infoResourceName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</query-construct>
|
||||||
|
|
||||||
|
<query-construct>
|
||||||
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
CONSTRUCT {
|
||||||
|
?subject ?property ?authorship .
|
||||||
|
?authorship core:linkedInformationResource ?infoResource .
|
||||||
|
?infoResource a ?subclass
|
||||||
|
} WHERE {
|
||||||
|
?subject ?property ?authorship .
|
||||||
|
?authorship core:linkedInformationResource ?infoResource .
|
||||||
|
?subclass rdfs:subClassOf core:InformationResource .
|
||||||
|
?infoResource a ?subclass
|
||||||
|
}
|
||||||
|
</query-construct>
|
||||||
|
|
||||||
|
<query-construct>
|
||||||
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
CONSTRUCT {
|
||||||
|
?subject ?property ?authorship .
|
||||||
|
?authorship core:linkedInformationResource ?infoResource .
|
||||||
|
?infoResource core:dateTimeValue ?dateTimeValue .
|
||||||
|
?dateTimeValue core:dateTime ?dateTime
|
||||||
|
} WHERE {
|
||||||
|
?subject ?property ?authorship .
|
||||||
|
?authorship core:linkedInformationResource ?infoResource .
|
||||||
|
?infoResource core:dateTimeValue ?dateTimeValue .
|
||||||
|
?dateTimeValue core:dateTime ?dateTime
|
||||||
|
}
|
||||||
|
</query-construct>
|
||||||
|
|
||||||
<template>propStatement-authorInAuthorship.ftl</template>
|
<template>propStatement-authorInAuthorship.ftl</template>
|
||||||
</list-view-config>
|
</list-view-config>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue