Rename prefix
This commit is contained in:
parent
be8ee67e1b
commit
6e0eb8cb01
1 changed files with 31 additions and 31 deletions
|
@ -10,14 +10,14 @@
|
||||||
:hasTargetField "ALLTEXT" ;
|
:hasTargetField "ALLTEXT" ;
|
||||||
:hasSelectQuery """
|
:hasSelectQuery """
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
PREFIX ts: <https://litvinovg.pro/text_structures#>
|
||||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
SELECT DISTINCT ?value
|
SELECT DISTINCT ?value
|
||||||
WHERE {
|
WHERE {
|
||||||
?uri rdf:type ts_:elenphArticle .
|
?uri rdf:type ts:elenphArticle .
|
||||||
?uri ts_:hasTOC ?toc .
|
?uri ts:hasTOC ?toc .
|
||||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?elenphExcerpt .
|
||||||
VALUES ?property { ts_:works ts_:bibliography ts_:htmlExcerpt ts_:keywords }
|
VALUES ?property { ts:works ts:bibliography ts:htmlExcerpt ts:keywords }
|
||||||
?elenphExcerpt ?property ?value .
|
?elenphExcerpt ?property ?value .
|
||||||
}
|
}
|
||||||
""" .
|
""" .
|
||||||
|
@ -43,20 +43,20 @@
|
||||||
:hasTargetField "text" ;
|
:hasTargetField "text" ;
|
||||||
:hasSelectQuery """
|
:hasSelectQuery """
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
PREFIX ts: <https://litvinovg.pro/text_structures#>
|
||||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
SELECT DISTINCT ?htmlExcerpt
|
SELECT DISTINCT ?htmlExcerpt
|
||||||
WHERE {
|
WHERE {
|
||||||
{
|
{
|
||||||
?uri rdf:type ts_:textExcerpt .
|
?uri rdf:type ts:textExcerpt .
|
||||||
?uri ts_:htmlExcerpt ?htmlExcerpt .
|
?uri ts:htmlExcerpt ?htmlExcerpt .
|
||||||
}
|
}
|
||||||
UNION
|
UNION
|
||||||
{
|
{
|
||||||
?uri rdf:type ts_:publication .
|
?uri rdf:type ts:publication .
|
||||||
?uri ts_:hasTOC ?toc .
|
?uri ts:hasTOC ?toc .
|
||||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?artExcerpt .
|
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?artExcerpt .
|
||||||
?artExcerpt ts_:htmlExcerpt ?htmlExcerpt .
|
?artExcerpt ts:htmlExcerpt ?htmlExcerpt .
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
""" .
|
""" .
|
||||||
|
@ -68,21 +68,21 @@
|
||||||
:hasTargetField "rubrics" ;
|
:hasTargetField "rubrics" ;
|
||||||
:hasSelectQuery """
|
:hasSelectQuery """
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
PREFIX ts: <https://litvinovg.pro/text_structures#>
|
||||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
PREFIX pr: <https://iph.ras.ru/relationships#>
|
PREFIX pr: <https://iph.ras.ru/relationships#>
|
||||||
SELECT DISTINCT ?rubric
|
SELECT DISTINCT ?rubric
|
||||||
WHERE {
|
WHERE {
|
||||||
{
|
{
|
||||||
?uri rdf:type ts_:elenphExcerpt .
|
?uri rdf:type ts:elenphExcerpt .
|
||||||
?uri pr:belongsTo ?assignedRubric .
|
?uri pr:belongsTo ?assignedRubric .
|
||||||
?assignedRubric (pr:hasParent)* ?rubric .
|
?assignedRubric (pr:hasParent)* ?rubric .
|
||||||
}
|
}
|
||||||
UNION
|
UNION
|
||||||
{
|
{
|
||||||
?uri rdf:type ts_:elenphArticle .
|
?uri rdf:type ts:elenphArticle .
|
||||||
?uri ts_:hasTOC ?toc .
|
?uri ts:hasTOC ?toc .
|
||||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?artExcerpt .
|
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?artExcerpt .
|
||||||
?artExcerpt pr:belongsTo ?assignedRubric .
|
?artExcerpt pr:belongsTo ?assignedRubric .
|
||||||
?assignedRubric (pr:hasParent)* ?rubric .
|
?assignedRubric (pr:hasParent)* ?rubric .
|
||||||
}
|
}
|
||||||
|
@ -111,20 +111,20 @@
|
||||||
:hasTargetField "keywords" ;
|
:hasTargetField "keywords" ;
|
||||||
:hasSelectQuery """
|
:hasSelectQuery """
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
PREFIX ts: <https://litvinovg.pro/text_structures#>
|
||||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
SELECT DISTINCT ?keywords
|
SELECT DISTINCT ?keywords
|
||||||
WHERE {
|
WHERE {
|
||||||
{
|
{
|
||||||
?uri rdf:type ts_:elenphArticle .
|
?uri rdf:type ts:elenphArticle .
|
||||||
?uri ts_:hasTOC ?toc .
|
?uri ts:hasTOC ?toc .
|
||||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?elenphExcerpt .
|
||||||
?elenphExcerpt ts_:keywords ?keywords .
|
?elenphExcerpt ts:keywords ?keywords .
|
||||||
}
|
}
|
||||||
UNION
|
UNION
|
||||||
{
|
{
|
||||||
?uri rdf:type ts_:elenphExcerpt .
|
?uri rdf:type ts:elenphExcerpt .
|
||||||
?uri ts_:keywords ?keywords .
|
?uri ts:keywords ?keywords .
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
""" .
|
""" .
|
||||||
|
@ -136,20 +136,20 @@
|
||||||
:hasTargetField "bibliography" ;
|
:hasTargetField "bibliography" ;
|
||||||
:hasSelectQuery """
|
:hasSelectQuery """
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX ts_: <https://litvinovg.pro/text_structures#>
|
PREFIX ts: <https://litvinovg.pro/text_structures#>
|
||||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
SELECT DISTINCT ?bibliography
|
SELECT DISTINCT ?bibliography
|
||||||
WHERE {
|
WHERE {
|
||||||
{
|
{
|
||||||
?uri rdf:type ts_:elenphArticle .
|
?uri rdf:type ts:elenphArticle .
|
||||||
?uri ts_:hasTOC ?toc .
|
?uri ts:hasTOC ?toc .
|
||||||
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt .
|
?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?elenphExcerpt .
|
||||||
?elenphExcerpt ts_:bibliography ?bibliography .
|
?elenphExcerpt ts:bibliography ?bibliography .
|
||||||
}
|
}
|
||||||
UNION
|
UNION
|
||||||
{
|
{
|
||||||
?uri rdf:type ts_:elenphExcerpt .
|
?uri rdf:type ts:elenphExcerpt .
|
||||||
?uri ts_:bibliography ?bibliography .
|
?uri ts:bibliography ?bibliography .
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
""" .
|
""" .
|
||||||
|
|
Loading…
Add table
Reference in a new issue