Skip to content

Commit 83cdf3d

Browse files
authored
Merge pull request #51 from yngwi/master
Switch to the OWL Micro reasoner
2 parents ea95cf9 + d8ec5b6 commit 83cdf3d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ A number of command line parameters are available to configure the application.
5555
| REDIS_PORT | | 6379 | | The port on which the Redis instance is available |
5656
| REDIS_URL | \* | | http://example.com/redis | The url under which the Redis instance is available |
5757

58+
### Custom ontologies
59+
60+
Using the `OTHER_OWL_URLS` environment parameter, custom ontologies can be added to the inference of the database. For performance and data integrity reasons they need to conform to the following rules:
61+
62+
1. Build on the [NAMPI core ontology](http://purl.org/nampi/owl/core) with regards to the core entities like `person`, `event`, `act` or `aspect`
63+
2. Only use rules compatible with the OWL Micro reasoner as described in the [Apache Jena inference documentation](https://jena.apache.org/documentation/inference/#OWLcoverage)
64+
5865
## Deploying as a standalone Spring Boot application
5966

6067
The application can be run from the command line using Maven, the environment parameters can be appended to the command.
@@ -139,7 +146,3 @@ Access Token Endpoint: `[Keycloak URL]/realms/nampi/protocol/openid-connect/toke
139146

140147
Authorization Endpoint: `[Keycloak URL]/auth/realms/nampi/protocol/openid-connect/auth`
141148
Access Token Endpoint: `[Keycloak URL]/auth/realms/nampi/protocol/openid-connect/token`
142-
143-
## API use
144-
145-
Note: Comma in Literals need to be URL Encoded to %2C: instead of `Lastname, Firstname@en`, `Lastname%2C Firstname@en` needs to be used.

inf_cache.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ tdb2:DatasetTDB2 rdfs:subClassOf ja:RDFDataset .
5555
:model_inf a ja:InfModel ;
5656
ja:baseModel :graph ;
5757
ja:reasoner [
58-
ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>
58+
ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLMicroFBRuleReasoner>
5959
] .
6060

6161
:graph rdf:type tdb2:GraphTDB ;

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010
<groupId>eu.nampi</groupId>
1111
<artifactId>backend</artifactId>
12-
<version>0.4.2</version>
12+
<version>0.5.0</version>
1313
<name>nampi-backend</name>
1414
<description>The NAMPI backend</description>
1515

0 commit comments

Comments
 (0)