Skip to content

Commit

Permalink
Merge pull request #51 from yngwi/master
Browse files Browse the repository at this point in the history
Switch to the OWL Micro reasoner
  • Loading branch information
yngwi authored Oct 29, 2021
2 parents ea95cf9 + d8ec5b6 commit 83cdf3d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ A number of command line parameters are available to configure the application.
| REDIS_PORT | | 6379 | | The port on which the Redis instance is available |
| REDIS_URL | \* | | http://example.com/redis | The url under which the Redis instance is available |

### Custom ontologies

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:

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`
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)

## Deploying as a standalone Spring Boot application

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

Authorization Endpoint: `[Keycloak URL]/auth/realms/nampi/protocol/openid-connect/auth`
Access Token Endpoint: `[Keycloak URL]/auth/realms/nampi/protocol/openid-connect/token`

## API use

Note: Comma in Literals need to be URL Encoded to %2C: instead of `Lastname, Firstname@en`, `Lastname%2C Firstname@en` needs to be used.
2 changes: 1 addition & 1 deletion inf_cache.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ tdb2:DatasetTDB2 rdfs:subClassOf ja:RDFDataset .
:model_inf a ja:InfModel ;
ja:baseModel :graph ;
ja:reasoner [
ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>
ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLMicroFBRuleReasoner>
] .

:graph rdf:type tdb2:GraphTDB ;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<groupId>eu.nampi</groupId>
<artifactId>backend</artifactId>
<version>0.4.2</version>
<version>0.5.0</version>
<name>nampi-backend</name>
<description>The NAMPI backend</description>

Expand Down

0 comments on commit 83cdf3d

Please sign in to comment.