You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2025/11/14 11:12:01 UTC

(jena) 06/11: Example of reasoner with schema

This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git

commit cce44b8ec149bdf15bbc16c26209c03e17f0a0e6
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Tue Nov 11 13:05:24 2025 +0000

    Example of reasoner with schema
---
 jena-fuseki2/examples/config-inference-2.ttl | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/jena-fuseki2/examples/config-inference-2.ttl b/jena-fuseki2/examples/config-inference-2.ttl
index 4abf7f95bf..d707c4b7b1 100644
--- a/jena-fuseki2/examples/config-inference-2.ttl
+++ b/jena-fuseki2/examples/config-inference-2.ttl
@@ -38,8 +38,14 @@ PREFIX tdb2:    <http://jena.apache.org/2016/tdb#>
 :model_inf a ja:InfModel ;
      ja:baseModel :tdbGraph ;
      ja:reasoner [
-         ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>
+         ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner> ;
+         ja:schema :schema_model
      ] .
+     
+:schema_model a ja:MemoryModel ;
+    ja:content [
+        ja:externalContent <file:myOntology.ttl>
+    ] .
 
 :tdbGraph rdf:type tdb2:GraphTDB2 ;
     tdb2:dataset :tdbDataset .