-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into snyk-upgrade-eeaf18052c6af32ced9fa5a85d26205c
# Conflicts: # qanary_pipeline-template/pom.xml
- Loading branch information
Showing
24 changed files
with
480 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
qanary_commons/src/main/resources/queries/select_all_AnnotationOfClass.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
PREFIX qa: <http://www.wdaqua.eu/qa#> | ||
PREFIX oa: <http://www.w3.org/ns/openannotation/core/> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
SELECT * | ||
FROM ?graph | ||
WHERE { | ||
?annotationId a qa:AnnotationOfClass . | ||
?annotationId oa:hasTarget [ | ||
a oa:SpecificClass ; | ||
oa:hasSource ?hasSource ; | ||
] . | ||
?annotationId oa:hasBody ?hasBody ; | ||
oa:annotatedBy ?annotatedBy ; | ||
oa:annotatedAt ?annotatedAt . | ||
} |
24 changes: 24 additions & 0 deletions
24
qanary_commons/src/main/resources/queries/select_all_AnnotationOfInstance.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX oa: <http://www.w3.org/ns/openannotation/core/> | ||
PREFIX qa: <http://www.wdaqua.eu/qa#> | ||
|
||
SELECT * | ||
FROM ?graph | ||
WHERE { | ||
?annotationId rdf:type qa:AnnotationOfInstance . | ||
?annotationId oa:hasTarget [ | ||
a oa:SpecificResource; | ||
oa:hasSource ?hasSource; | ||
oa:hasSelector [ | ||
a oa:TextPositionSelector; | ||
oa:start ?start; | ||
oa:end ?end | ||
] | ||
]. | ||
?annotationId oa:hasBody ?hasBody ; | ||
oa:annotatedBy ?annotatedBy ; | ||
oa:annotatedAt ?annotatedAt . | ||
OPTIONAL { | ||
?annotationId qa:score ?score . | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
qanary_commons/src/main/resources/queries/select_all_AnnotationOfQuestionLanguage.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
PREFIX qa: <http://www.wdaqua.eu/qa#> | ||
PREFIX oa: <http://www.w3.org/ns/openannotation/core/> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
SELECT * | ||
FROM ?graph | ||
WHERE { | ||
?annotationId a qa:AnnotationOfQuestionLanguage . | ||
?annotationId oa:hasTarget ?hasTarget ; | ||
oa:hasBody ?hasBody ; | ||
oa:annotatedBy ?annotatedBy ; | ||
oa:annotatedAt ?annotatedAt . | ||
} |
13 changes: 8 additions & 5 deletions
13
qanary_commons/src/main/resources/queries/select_all_AnnotationOfQuestionTranslation.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
PREFIX qa: <http://www.wdaqua.eu/qa#> | ||
PREFIX oa: <http://www.w3.org/ns/openannotation/core/> | ||
|
||
SELECT ?a ?translation ?time | ||
SELECT * | ||
FROM ?graph | ||
WHERE { | ||
?a a qa:AnnotationOfQuestionTranslation . | ||
?a oa:hasTarget ?targetQuestion . | ||
?a oa:hasBody ?translation . | ||
FILTER (lang(?translation) = ?language). | ||
?annotationId a qa:AnnotationOfQuestionTranslation . | ||
?annotationId oa:hasTarget ?hasTarget ; | ||
oa:hasBody ?hasBody ; | ||
oa:annotatedBy ?annotatedBy ; | ||
oa:annotatedAt ?annotatedAt . | ||
FILTER (lang(?hasBody) = ?language). | ||
} | ||
|
29 changes: 29 additions & 0 deletions
29
qanary_commons/src/main/resources/queries/select_all_AnnotationOfRelation.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
|
||
PREFIX qa: <http://www.wdaqua.eu/qa#> | ||
PREFIX oa: <http://www.w3.org/ns/openannotation/core/> | ||
|
||
SELECT * | ||
FROM ?graph | ||
WHERE { | ||
?annotationId a qa:AnnotationOfRelation . | ||
?annotationId oa:hasTarget [ | ||
a oa:SpecificResource; | ||
oa:hasSource ?hasSource | ||
] . | ||
OPTIONAL { | ||
?annotationId oa:hasTarget [ | ||
oa:hasSelector [ | ||
a oa:TextPositionSelector ; | ||
oa:start ?start ; | ||
oa:end ?end | ||
] | ||
] . | ||
} | ||
OPTIONAL { | ||
?annotationId qa:score ?score . | ||
} | ||
?annotationId oa:hasBody ?hasBody ; | ||
oa:annotatedBy ?annotatedBy ; | ||
oa:annotatedAt ?annotatedAt . | ||
} |
20 changes: 20 additions & 0 deletions
20
qanary_commons/src/main/resources/queries/select_all_AnnotationOfSpotInstance.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX oa: <http://www.w3.org/ns/openannotation/core/> | ||
PREFIX qa: <http://www.wdaqua.eu/qa#> | ||
|
||
SELECT * | ||
FROM ?graph | ||
WHERE { | ||
?annotationId rdf:type qa:AnnotationOfSpotInstance. | ||
?annotationId oa:hasTarget [ | ||
a oa:SpecificResource; | ||
oa:hasSource ?hasSource; | ||
oa:hasSelector [ | ||
a oa:TextPositionSelector; | ||
oa:start ?start; | ||
oa:end ?end . | ||
] | ||
]. | ||
?annotationId oa:annotatedAt ?annotatedAt ; | ||
oa:annotatedBy ?annotatedBy . | ||
} |
19 changes: 19 additions & 0 deletions
19
qanary_commons/src/main/resources/queries/select_all_AnnotationOfTextAnswerJson.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
PREFIX qa: <http://www.wdaqua.eu/qa#> | ||
PREFIX oa: <http://www.w3.org/ns/openannotation/core/> | ||
PREFIX dbr: <http://dbpedia.org/resource/> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
|
||
SELECT * | ||
FROM ?graph | ||
WHERE { | ||
?annotationId rdf:type qa:AnnotationOfTextAnswerJson . | ||
?annotationId oa:hasTarget ?hasTarget | ||
?annotationId oa:hasBody ?hasBody . | ||
?annotationId oa:annotatedAt ?annotatedAt . | ||
?annotationId oa:annotatedBy ?annotatedBy . | ||
?hasBody rdf:type qa:AnswerJson . | ||
?hasBody rdf:value ?value . | ||
qa:AnswerJson rdfs:subClassOf qa:Answer . | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.