diff --git a/home/src/main/resources/rdf/display/everytime/article_custom_fields.n3 b/home/src/main/resources/rdf/display/everytime/article_custom_fields.n3 index d92cdbc04..ff645e4dc 100644 --- a/home/src/main/resources/rdf/display/everytime/article_custom_fields.n3 +++ b/home/src/main/resources/rdf/display/everytime/article_custom_fields.n3 @@ -1,7 +1,7 @@ @prefix : . @prefix rdfs: . -:vivodocumentModifier_openAccess +:vivodocumentModifier_excerptsInArticles a , ; rdfs:label "Elenph article excerpts" ; @@ -17,3 +17,85 @@ ?elenphExcerpt ?property ?value . } """ . + +:vivodocumentModifier_rubricsOfExcerpt + a , + ; + rdfs:label "Add rubrics in semantic_marks excerpt field" ; + :hasTargetField "semantic_marks" ; + :hasSelectQuery """ + PREFIX rdfs: + PREFIX ts_: + PREFIX rdf: + PREFIX pr: + SELECT DISTINCT ?rubric + WHERE { + ?uri rdf:type ts_:elenphExcerpt . + ?uri pr:belongsTo ?assignedRubric . + ?assignedRubric (pr:hasParent)* ?rubric . + } + """ . + +:vivodocumentModifier_titles + a , + ; + rdfs:label "Add titles to special field" ; + :hasTargetField "titles" ; + :hasSelectQuery """ + PREFIX rdfs: + PREFIX rdf: + SELECT DISTINCT ?title + WHERE { + ?uri rdfs:label ?title . + } + """ . + + +:vivodocumentModifier_keywordsElenph + a , + ; + rdfs:label "Keywords for articles and excerpts" ; + :hasTargetField "keywords" ; + :hasSelectQuery """ + PREFIX rdfs: + PREFIX ts_: + PREFIX rdf: + SELECT DISTINCT ?keywords + WHERE { + { + ?uri rdf:type ts_:elenphArticle . + ?uri (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt . + ?elenphExcerpt ts_:keywords ?keywords . + } + UNION + { + ?uri rdf:type ts_:elenphExcerpt . + ?uri ts_:keywords ?keywords . + } + } + """ . + +:vivodocumentModifier_bibliographyElenph + a , + ; + rdfs:label "Bibliography for articles and excerpts" ; + :hasTargetField "bibliography" ; + :hasSelectQuery """ + PREFIX rdfs: + PREFIX ts_: + PREFIX rdf: + SELECT DISTINCT ?bibliography + WHERE { + { + ?uri rdf:type ts_:elenphArticle . + ?uri (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt . + ?elenphExcerpt ts_:bibliography ?bibliography . + } + UNION + { + ?uri rdf:type ts_:elenphExcerpt . + ?elenphExcerpt ts_:bibliography ?bibliography . + } + } + """ . +