-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from WSE-research/358_explanation_annotationOf…
…QuestionLanguage 358 explanation annotation of question language
- Loading branch information
Showing
144 changed files
with
1,654 additions
and
16 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
1 change: 1 addition & 0 deletions
1
src/main/resources/explanations/annotation_of_question_language/de_list_item
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 @@ | ||
am ${createdAt} für die Frage mit der URI '${hasTarget}' die Sprache '${body}' |
1 change: 1 addition & 0 deletions
1
src/main/resources/explanations/annotation_of_question_language/de_prefix
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 @@ | ||
und hat für die folgende(n) Frage(n) die Sprachen bestimmt |
1 change: 1 addition & 0 deletions
1
src/main/resources/explanations/annotation_of_question_language/en_list_item
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 @@ | ||
at ${createdAt} for the question with the URI '${hasTarget}' the language '${body}' |
1 change: 1 addition & 0 deletions
1
src/main/resources/explanations/annotation_of_question_language/en_prefix
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 @@ | ||
and has found the languages for the following question(s) |
13 changes: 13 additions & 0 deletions
13
.../resources/queries/queries_for_annotation_types/annotations_of_question_language_query.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 questionID: <http://195.90.200.248:8090/question/stored-question__text_> | ||
|
||
SELECT * | ||
FROM ?graphURI | ||
WHERE { | ||
?annotationId a qa:AnnotationOfQuestionLanguage . | ||
?annotationId oa:hasTarget ?hasTarget ; | ||
oa:hasBody ?body ; | ||
oa:annotatedBy ?createdBy ; | ||
oa:annotatedAt ?createdAt . | ||
} |
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
1 change: 1 addition & 0 deletions
1
src/test/resources/expected_list_explanations/annotationofquestionlanguage/de_list_item
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 @@ | ||
am 2023-09-13T06:38:13.114944Z für die Frage mit der URI 'questionID:981554csdf314kl2' die Sprache 'http://dbpedia.org/resource/example' |
1 change: 1 addition & 0 deletions
1
src/test/resources/expected_list_explanations/annotationofquestionlanguage/en_list_item
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 @@ | ||
at 2023-09-13T06:38:13.114944Z for the question with the URI 'questionID:981554csdf314kl2' the language 'http://dbpedia.org/resource/example' |
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,8 @@ | ||
spring.application.name=Qanary explanation service | ||
server.port=4000 | ||
sparqlEndpoint=http://195.90.200.248:8090/sparql | ||
# swagger-ui custom path | ||
springdoc.swagger-ui.path=/swagger-ui.html | ||
# api-docs custom path | ||
springdoc.api-docs.path=/api-docs | ||
springdoc.version=2.1.0 |
Binary file added
BIN
+2.25 KB
target/classes/com/wse/qanaryexplanationservice/QanaryExplanationServiceApplication.class
Binary file not shown.
Binary file added
BIN
+2.94 KB
target/classes/com/wse/qanaryexplanationservice/controller/AnnotationController.class
Binary file not shown.
Binary file added
BIN
+3.39 KB
target/classes/com/wse/qanaryexplanationservice/controller/ExplanationController.class
Binary file not shown.
Binary file added
BIN
+883 Bytes
target/classes/com/wse/qanaryexplanationservice/pojos/ComponentPojo.class
Binary file not shown.
Binary file added
BIN
+6.07 KB
target/classes/com/wse/qanaryexplanationservice/pojos/ExplanationObject.class
Binary file not shown.
Binary file added
BIN
+1.98 KB
target/classes/com/wse/qanaryexplanationservice/pojos/ExplanationPojo.class
Binary file not shown.
Binary file added
BIN
+3.3 KB
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObject.class
Binary file not shown.
Binary file added
BIN
+445 Bytes
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/AnnotationId.class
Binary file not shown.
Binary file added
BIN
+421 Bytes
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/Body.class
Binary file not shown.
Binary file added
BIN
+716 Bytes
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/Component.class
Binary file not shown.
Binary file added
BIN
+1.68 KB
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/CreatedAt.class
Binary file not shown.
Binary file added
BIN
+436 Bytes
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/CreatedBy.class
Binary file not shown.
Binary file added
BIN
+1.02 KB
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/End.class
Binary file not shown.
Binary file added
BIN
+1.45 KB
...om/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/ExplanationPojosDtosAbstract.class
Binary file not shown.
Binary file added
BIN
+1.03 KB
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/Score.class
Binary file not shown.
Binary file added
BIN
+427 Bytes
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/Source.class
Binary file not shown.
Binary file added
BIN
+1.03 KB
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/Start.class
Binary file not shown.
Binary file added
BIN
+427 Bytes
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/Target.class
Binary file not shown.
Binary file added
BIN
+421 Bytes
target/classes/com/wse/qanaryexplanationservice/pojos/ResultObjectDTOs/Type.class
Binary file not shown.
Binary file added
BIN
+5.58 KB
target/classes/com/wse/qanaryexplanationservice/repositories/AbstractRepository.class
Binary file not shown.
Binary file added
BIN
+1.1 KB
...et/classes/com/wse/qanaryexplanationservice/repositories/AnnotationSparqlRepository.class
Binary file not shown.
Binary file added
BIN
+1.11 KB
...t/classes/com/wse/qanaryexplanationservice/repositories/ExplanationSparqlRepository.class
Binary file not shown.
Binary file added
BIN
+435 Bytes
target/classes/com/wse/qanaryexplanationservice/repositories/SparqlRepositoryIF.class
Binary file not shown.
Binary file added
BIN
+4.57 KB
target/classes/com/wse/qanaryexplanationservice/services/AnnotationsService.class
Binary file not shown.
Binary file added
BIN
+813 Bytes
target/classes/com/wse/qanaryexplanationservice/services/ExplanationService$1.class
Binary file not shown.
Binary file added
BIN
+1.36 KB
target/classes/com/wse/qanaryexplanationservice/services/ExplanationService$2.class
Binary file not shown.
Binary file added
BIN
+1.17 KB
target/classes/com/wse/qanaryexplanationservice/services/ExplanationService$3.class
Binary file not shown.
Binary file added
BIN
+28 KB
target/classes/com/wse/qanaryexplanationservice/services/ExplanationService.class
Binary file not shown.
Binary file added
BIN
+418 Bytes
target/classes/com/wse/qanaryexplanationservice/services/ExplanationServiceIF.class
Binary file not shown.
Binary file added
BIN
+1.9 KB
target/classes/com/wse/qanaryexplanationservice/services/ParameterStringBuilder.class
Binary file not shown.
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_answer_json/de_list_item
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 @@ | ||
am ${createdAt} eine SPARQL-query ausgeführt und folgende JSON zurückgegeben ' ${answerJson} ' &{mit einer Konfidenz von ${score}}& |
Empty file.
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_answer_json/en_list_item
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 @@ | ||
on ${createdAt} a SPARQL-query was executed and returned the following JSON ' ${answerJson} ' &{with a confidence of ${score}}& |
Empty file.
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_answer_sparql/de_list_item
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 @@ | ||
am ${createdAt} mit einer Konfidenz von ${score} die SPARQL-query ' ${body} ' |
Empty file.
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_answer_sparql/en_list_item
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 @@ | ||
on ${createdAt} with a confidence of ${score} the SPARQL-query ' ${body} ' |
Empty file.
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_instance/de_list_item
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 @@ | ||
am ${createdAt} &{mit einer Konfidenz von ${score}}& die Resource ${body} |
Empty file.
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_instance/en_list_item
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 @@ | ||
on ${createdAt} &{with a confidence of ${score}}& and the resource ${body} |
Empty file.
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_question_language/de_list_item
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 @@ | ||
am ${createdAt} für die Frage mit der URI '${hasTarget}' die Sprache '${body}' |
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_question_language/de_prefix
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 @@ | ||
und hat für die folgende(n) Frage(n) die Sprachen bestimmt |
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_question_language/en_list_item
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 @@ | ||
at ${createdAt} for the question with the URI '${hasTarget}' the language '${body}' |
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_question_language/en_prefix
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 @@ | ||
and has found the languages for the following question(s) |
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_relation/de_list_item
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 @@ | ||
' ${body} ' am ${createdAt} &{beginnend bei ${start} und endend bei ${end}}& &{mit einer Konfidenz von ${score}}& |
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 @@ | ||
und dabei wurden folgende Relationen aus der Ursprungsfrage gefunden |
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_relation/en_list_item
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 @@ | ||
' ${body} ' at ${createdAt} &{starting at ${start} and ending at ${end}}& &{with a confidence of ${score}}& |
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 @@ | ||
and the following relations were found withing the origin question |
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_spot_instance/de_list_item
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 @@ | ||
am ${createdAt} beginnend bei ${start} und endend an Position ${end} |
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_spot_instance/de_prefix
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 @@ | ||
und dabei wurden folgende Entitäten aus der Ursprungsfrage gefunden |
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_spot_instance/en_list_item
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 @@ | ||
at ${createdAt} starting from position ${start} and ending at position ${end} |
1 change: 1 addition & 0 deletions
1
target/classes/explanations/annotation_of_spot_instance/en_prefix
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 @@ | ||
and each annotation from type AnnotationOfSpotInstance found the following entities from the origin question |
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,15 @@ | ||
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 ?graphURI | ||
WHERE { | ||
?annotationId rdf:type ?type. | ||
?annotationId oa:hasBody ?body. | ||
?annotationId oa:hasTarget ?target. | ||
?annotationId oa:annotatedBy $createdBy . | ||
?annotationId oa:annotatedAt $createdAt . | ||
OPTIONAL { | ||
?annotationId qa:score ?score . | ||
} | ||
} |
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,8 @@ | ||
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 DISTINCT ?component | ||
FROM ?graphURI | ||
WHERE { | ||
?s oa:annotatedBy ?component . | ||
} |
22 changes: 22 additions & 0 deletions
22
target/classes/queries/queries_for_annotation_types/annotations_of_answer_json_query.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,22 @@ | ||
PREFIX dbr: <http://dbpedia.org/resource/> | ||
PREFIX oa: <http://www.w3.org/ns/openannotation/core/> | ||
PREFIX qa: <http://www.wdaqua.eu/qa#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
SELECT * | ||
FROM ?graphURI | ||
WHERE { | ||
?annotationId | ||
a qa:AnnotationOfAnswerJson ; | ||
oa:hasTarget ?question ; | ||
oa:hasBody ?answer ; | ||
oa:annotatedBy ?componentURI ; | ||
oa:annotatedAt ?createdAt . | ||
OPTIONAL { | ||
?annotationId qa:score ?score . | ||
} | ||
?answer | ||
a qa:AnswerJson ; | ||
rdf:value ?answerJson . | ||
} |
18 changes: 18 additions & 0 deletions
18
target/classes/queries/queries_for_annotation_types/annotations_of_answer_sparql_query.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,18 @@ | ||
PREFIX dbr: <http://dbpedia.org/resource/> | ||
PREFIX oa: <http://www.w3.org/ns/openannotation/core/> | ||
PREFIX qa: <http://www.wdaqua.eu/qa#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
SELECT * | ||
FROM ?graphURI | ||
WHERE { | ||
?newAnnotation rdf:type qa:AnnotationOfAnswerSPARQL . | ||
?newAnnotation oa:hasTarget ?targetQuestion . | ||
?newAnnotation oa:hasBody ?body . | ||
OPTIONAL { | ||
?newAnnotation qa:score ?score . | ||
} | ||
?newAnnotation oa:annotatedAt ?createdAt . | ||
?newAnnotation oa:annotatedBy ?componentURI . | ||
} |
24 changes: 24 additions & 0 deletions
24
target/classes/queries/queries_for_annotation_types/annotations_of_instance_query.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 ?graphURI | ||
WHERE { | ||
?annotationId rdf:type qa:AnnotationOfInstance . | ||
?annotationId oa:hasTarget [ | ||
a oa:SpecificResource; | ||
oa:hasSource ?source; | ||
oa:hasSelector [ | ||
a oa:TextPositionSelector; | ||
oa:start ?start; | ||
oa:end ?end; | ||
] | ||
]. | ||
?annotationId oa:hasBody ?body ; | ||
oa:annotatedBy ?componentURI ; | ||
oa:annotatedAt ?createdAt . | ||
OPTIONAL { | ||
?annotationId qa:score ?score . | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...et/classes/queries/queries_for_annotation_types/annotations_of_question_language_query.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 questionID: <http://195.90.200.248:8090/question/stored-question__text_> | ||
|
||
SELECT * | ||
FROM ?graphURI | ||
WHERE { | ||
?annotationId a qa:AnnotationOfQuestionLanguage . | ||
?annotationId oa:hasTarget ?hasTarget ; | ||
oa:hasBody ?body ; | ||
oa:annotatedBy ?createdBy ; | ||
oa:annotatedAt ?createdAt . | ||
} |
27 changes: 27 additions & 0 deletions
27
target/classes/queries/queries_for_annotation_types/annotations_of_relation_query.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,27 @@ | ||
PREFIX qa: <http://www.wdaqua.eu/qa#> | ||
PREFIX oa: <http://www.w3.org/ns/openannotation/core/> | ||
|
||
SELECT * | ||
FROM ?graphURI | ||
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 ?body ; | ||
oa:annotatedBy ?createdBy ; | ||
oa:annotatedAt ?createdAt . | ||
} |
21 changes: 21 additions & 0 deletions
21
target/classes/queries/queries_for_annotation_types/annotations_of_spot_intance_query.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,21 @@ | ||
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 ?graphURI | ||
WHERE { | ||
?annotationId rdf:type qa:AnnotationOfSpotInstance. | ||
?annotationId oa:hasTarget [ | ||
a oa:SpecificResource; | ||
oa:hasSource ?source; | ||
oa:hasSelector [ | ||
a oa:TextPositionSelector; | ||
oa:start ?start; | ||
oa:end ?end; | ||
] | ||
]. | ||
?annotationId oa:annotatedAt ?createdAt ; | ||
oa:annotatedBy ?componentURI . | ||
} | ||
|
Oops, something went wrong.