Improved article delete query

This commit is contained in:
Georgy Litvinov 2021-03-03 14:28:07 +01:00
parent 0dbe7232de
commit 3f36a7858c

View file

@ -14,7 +14,7 @@
""" . """ .
<https://litvinovg.pro/text_structures#elenphArticle> display:hasDeleteQuery """ <https://litvinovg.pro/text_structures#elenphArticle> display:hasDeleteQuery """
PREFIX ts: <https://litvinovg.pro/text_structures#> PREFIX ts: <https://litvinovg.pro/text_structures#>
DESCRIBE ?individualURI ?tocElement ?tocItem ?toc ?excerpt DESCRIBE ?individualURI ?tocElement ?tocItem ?toc ?excerpt ?author ?organization
WHERE { WHERE {
OPTIONAL { OPTIONAL {
?individualURI ts:hasTOC ?toc . ?individualURI ts:hasTOC ?toc .
@ -23,7 +23,13 @@
?tocElement ts:hasTOCItem ?tocItem . ?tocElement ts:hasTOCItem ?tocItem .
} }
OPTIONAL { OPTIONAL {
?tocElement ts_:hasText ?excerpt . ?tocElement ts:hasText ?excerpt .
OPTIONAL {
?excerpt ts:hasAuthor ?author .
OPTIONAL {
?author ts:affiliatedWith ?organization .
}
}
} }
} }
} }