Skip to content

Commit

Permalink
KG2KG-TranslateAnnotationsOfInstance v0.1.4: docu
Browse files Browse the repository at this point in the history
* increased component description
* added documentation to SPARQL queries
  • Loading branch information
anbo-de committed Jan 5, 2024
1 parent cb3ed9d commit 432928a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
10 changes: 5 additions & 5 deletions qanary-component-KG2KG-TranslateAnnotationsOfInstance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>eu.wdaqua.qanary.component</groupId>
<artifactId>qanary-component-KG2KG-TranslateAnnotationsOfInstance</artifactId>
<version>0.1.3</version>
<version>0.1.4</version>
<name>Qanary component KG2KG Translation of AnnotationOfInstance</name>
<parent>
<groupId>org.springframework.boot</groupId>
Expand All @@ -19,9 +19,9 @@
<docker.image.prefix>qanary</docker.image.prefix>
<docker.image.name>qanary-component-kg2kg-translateannotationsofinstance</docker.image.name>
<dockerfile-maven-version>1.4.13</dockerfile-maven-version>
<spingdoc.version>1.7.0</spingdoc.version>
<qanary.component.version>[3.7.6,4.0.0)</qanary.component.version>
<qanary.commons.version>[3.8.0,4.0.0)</qanary.commons.version>
<springdoc.version>1.7.0</springdoc.version>
<qanary.component.version>[3.9.2,4.0.0)</qanary.component.version>
<qanary.commons.version>[3.11.0,4.0.0)</qanary.commons.version>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -53,7 +53,7 @@
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>${spingdoc.version}</version>
<version>${springdoc.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Update the port number
server.port=40444
spring.application.name=KG2KGTranslateAnnotationsOfInstance
spring.application.description=${spring.application.name} is a Qanary component that finds the equivalent DBpedia or Wikidata resource
spring.application.name=KG2KG-TranslateAnnotationsOfInstanceToDBpediaOrWikidata
spring.application.description=${spring.application.name} is a Qanary component that finds the equivalent DBpedia or Wikidata resource in an AnnotationOfInstance. Thereafter, the analog annotation is then created using the resource found.
# the URL of the Qanary pipeline server
spring.boot.admin.url=http://localhost:8080
spring.boot.admin.client.url=${spring.boot.admin.url}
Expand Down Expand Up @@ -36,7 +36,7 @@ springdoc.api-docs.path=/api-docs
# the path to the key store that contains the SSL certificate, e.g., classpath:keystore.p12
server.ssl.key-store=
# Spring Docs
spingdoc.version=1.7.0
springdoc.version=
# the password used to access the key store
server.ssl.key-store-password=
# the type of the key store (JKS or PKCS12)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# retrieve an annotation typed AnnotationOfInstance from the Qanary triplestore
PREFIX qa: <http://www.wdaqua.eu/qa#>
PREFIX oa: <http://www.w3.org/ns/openannotation/core/>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# find the URI of the resource in the Wikidata knowledge graph
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?resource
WHERE {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# insert annotation typed as AnnotationOfInstance
PREFIX qa: <http://www.wdaqua.eu/qa#>
PREFIX oa: <http://www.w3.org/ns/openannotation/core/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
Expand All @@ -21,6 +22,6 @@ GRAPH ?graph {
qa:score ?score .
}}
WHERE {
BIND (IRI(str(RAND())) AS ?a) .
BIND (IRI(CONCAT("urn:qanary:annotation:instance:", STR(RAND()))) AS ?a) .
BIND (now() as ?time)
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# find the URI of the resource in the DBpedia knowledge graph
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?resource
WHERE {
Expand Down

0 comments on commit 432928a

Please sign in to comment.