Modifications for fixed ontology
This commit is contained in:
parent
69edaf1f8d
commit
f41f50fad3
9 changed files with 58 additions and 49 deletions
|
@ -8,12 +8,13 @@
|
|||
:hasTargetField "ALLTEXT" ;
|
||||
:hasSelectQuery """
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
SELECT DISTINCT ?elenphExcerpt ?property ?value
|
||||
WHERE {
|
||||
?uri rdf:type ts_:elenphArticle .
|
||||
?uri (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?uri ts_:hasTOC ?toc .
|
||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?elenphExcerpt ?property ?value .
|
||||
}
|
||||
""" .
|
||||
|
@ -25,7 +26,7 @@
|
|||
:hasTargetField "semantic_marks" ;
|
||||
:hasSelectQuery """
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX pr: <https://iph.ras.ru/relationships#>
|
||||
SELECT DISTINCT ?rubric
|
||||
|
@ -58,13 +59,14 @@
|
|||
:hasTargetField "keywords" ;
|
||||
:hasSelectQuery """
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
SELECT DISTINCT ?keywords
|
||||
WHERE {
|
||||
{
|
||||
?uri rdf:type ts_:elenphArticle .
|
||||
?uri (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?uri ts_:hasTOC ?toc .
|
||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?elenphExcerpt ts_:keywords ?keywords .
|
||||
}
|
||||
UNION
|
||||
|
@ -82,13 +84,14 @@
|
|||
:hasTargetField "bibliography" ;
|
||||
:hasSelectQuery """
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
SELECT DISTINCT ?bibliography
|
||||
WHERE {
|
||||
{
|
||||
?uri rdf:type ts_:elenphArticle .
|
||||
?uri (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?uri ts_:hasTOC ?toc .
|
||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?elenphExcerpt ts_:bibliography ?bibliography .
|
||||
}
|
||||
UNION
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix ts_: <https://iph.ras.ru/text_structures#> .
|
||||
@prefix ts_: <https://litvinovg.pro/text_structures#> .
|
||||
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
|
||||
|
||||
|
||||
<https://iph.ras.ru/text_structures#elenphArticle> display:hasDataGetter display:getArticleExcerptsContentDataGetter .
|
||||
<https://litvinovg.pro/text_structures#elenphArticle> display:hasDataGetter display:getArticleExcerptsContentDataGetter .
|
||||
|
||||
<https://iph.ras.ru/text_structures#elenphArticle> display:hasDataGetter display:getArticleExcerptPathsDataGetter .
|
||||
<https://litvinovg.pro/text_structures#elenphArticle> display:hasDataGetter display:getArticleExcerptPathsDataGetter .
|
||||
|
||||
<https://iph.ras.ru/text_structures#elenphArticle> display:hasDataGetter display:getArticleWorksDataGetter .
|
||||
<https://litvinovg.pro/text_structures#elenphArticle> display:hasDataGetter display:getArticleWorksDataGetter .
|
||||
|
||||
<https://iph.ras.ru/text_structures#elenphArticle> display:hasDataGetter display:getArticleBibliographyDataGetter .
|
||||
<https://litvinovg.pro/text_structures#elenphArticle> display:hasDataGetter display:getArticleBibliographyDataGetter .
|
||||
|
||||
<https://iph.ras.ru/text_structures#elenphArticle> display:hasDataGetter display:getArticleAuthorsDataGetter .
|
||||
<https://litvinovg.pro/text_structures#elenphArticle> display:hasDataGetter display:getArticleAuthorsDataGetter .
|
||||
|
||||
display:getArticleExcerptsContentDataGetter
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
|
||||
|
@ -23,10 +23,11 @@ display:getArticleExcerptsContentDataGetter
|
|||
display:query
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
SELECT ?elenphExcerpt ?property ?value
|
||||
WHERE {
|
||||
?individualURI (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?individualURI ts_:hasTOC ?toc .
|
||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?elenphExcerpt ?property ?value .
|
||||
} ORDER BY ?elenphExcerpt
|
||||
""" .
|
||||
|
@ -38,10 +39,11 @@ display:getArticleExcerptPathsDataGetter
|
|||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
SELECT (GROUP_CONCAT(substr(concat("000",str(?outline)),strlen(str(?outline))); SEPARATOR = ".") AS ?path ) ?tocElement ?elenphExcerpt
|
||||
WHERE {
|
||||
?individualURI ts_:hasTOCItem/(ts_:pointsTo/ts_:hasTOCItem)* ?tmpTOCItem .
|
||||
?individualURI ts_:hasTOC ?toc .
|
||||
?toc ts_:hasTOCItem/(ts_:pointsTo/ts_:hasTOCItem)* ?tmpTOCItem .
|
||||
?tmpTOCItem rdf:type ts_:TOCItem .
|
||||
?tmpTOCItem ts_:pointsTo/(ts_:hasTOCItem/ts_:pointsTo)* ?tocElement .
|
||||
?tmpTOCItem ts_:itemNumber ?outline .
|
||||
|
@ -51,8 +53,9 @@ display:getArticleExcerptPathsDataGetter
|
|||
{
|
||||
SELECT ?elenphArticle ?tocElement
|
||||
WHERE {
|
||||
?individualURI (ts_:hasTOCItem/ts_:pointsTo)+ ?tocElement .
|
||||
?tocElement rdf:type ts_:TOCElement .
|
||||
?individualURI ts_:hasTOC ?toc .
|
||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+ ?tocElement .
|
||||
?tocElement rdf:type ts_:TOCLevel .
|
||||
?individualURI rdf:type ts_:elenphArticle .
|
||||
}
|
||||
}
|
||||
|
@ -65,11 +68,12 @@ display:getArticleBibliographyDataGetter
|
|||
display:query
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
SELECT DISTINCT ?bibliography
|
||||
WHERE {
|
||||
?individualURI (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?individualURI ts_:hasTOC ?toc .
|
||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?elenphExcerpt ts_:bibliography ?bibliography .
|
||||
} ORDER BY ?bibliography
|
||||
""" .
|
||||
|
@ -80,11 +84,12 @@ display:getArticleWorksDataGetter
|
|||
display:query
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
SELECT DISTINCT ?works
|
||||
WHERE {
|
||||
?individualURI (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?individualURI ts_:hasTOC ?toc .
|
||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?elenphExcerpt ts_:works ?works .
|
||||
} ORDER BY ?works
|
||||
""" .
|
||||
|
@ -95,11 +100,12 @@ display:getArticleAuthorsDataGetter
|
|||
display:query
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
SELECT DISTINCT ?author
|
||||
WHERE {
|
||||
?individualURI (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?individualURI ts_:hasTOC ?toc .
|
||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
||||
?elenphExcerpt ts_:author ?author .
|
||||
} ORDER BY ?author
|
||||
""" .
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix ts_: <https://iph.ras.ru/text_structures#> .
|
||||
@prefix ts_: <https://litvinovg.pro/text_structures#> .
|
||||
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
|
||||
|
||||
|
||||
<https://iph.ras.ru/text_structures#elenphExcerpt> display:hasDataGetter display:getExcerptAssignedArticlesDataGetter .
|
||||
<https://litvinovg.pro/text_structures#elenphExcerpt> display:hasDataGetter display:getExcerptAssignedArticlesDataGetter .
|
||||
|
||||
|
||||
display:getExcerptAssignedArticlesDataGetter
|
||||
|
@ -16,7 +16,7 @@ display:getExcerptAssignedArticlesDataGetter
|
|||
display:query
|
||||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
SELECT DISTINCT ?articleName ?articleUri
|
||||
WHERE {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix ts_: <https://iph.ras.ru/text_structures#> .
|
||||
@prefix ts_: <https://litvinovg.pro/text_structures#> .
|
||||
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
|
||||
|
||||
|
||||
|
@ -24,7 +24,7 @@ display:getArticlesWithChildRubricDataGetter
|
|||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX pr: <https://iph.ras.ru/relationships#>
|
||||
SELECT DISTINCT ?childArticleID ?childArticleName
|
||||
WHERE {
|
||||
|
@ -45,7 +45,7 @@ display:getArticlesWithRubricDataGetter
|
|||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX pr: <https://iph.ras.ru/relationships#>
|
||||
SELECT DISTINCT ?articleID ?articleName
|
||||
WHERE {
|
||||
|
@ -64,7 +64,7 @@ display:getChildRubricsDataGetter
|
|||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX pr: <https://iph.ras.ru/relationships#>
|
||||
SELECT DISTINCT ?rubricID ?rubricName
|
||||
WHERE {
|
||||
|
@ -82,7 +82,7 @@ display:getExcerptsWithRubricsChildsDataGetter
|
|||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX pr: <https://iph.ras.ru/relationships#>
|
||||
SELECT DISTINCT ?childExcerptID ?childExcerptName
|
||||
WHERE {
|
||||
|
@ -100,7 +100,7 @@ display:getExcerptsWithRubricDataGetter
|
|||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX ts_: <https://iph.ras.ru/text_structures#>
|
||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
||||
PREFIX pr: <https://iph.ras.ru/relationships#>
|
||||
SELECT DISTINCT ?excerptID ?excerptName
|
||||
WHERE {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@prefix vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix ts_: <https://iph.ras.ru/text_structures#> .
|
||||
@prefix ts_: <https://litvinovg.pro/text_structures#> .
|
||||
|
||||
ts_:elenphArticle vitro:customDisplayViewAnnot "elenphAritcle.ftl"^^xsd:string .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@prefix vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix ts_: <https://iph.ras.ru/text_structures#> .
|
||||
@prefix ts_: <https://litvinovg.pro/text_structures#> .
|
||||
|
||||
ts_:elenphExcerpt vitro:customDisplayViewAnnot "elenphExcerpt.ftl"^^xsd:string .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue