Hi,
On Sun, 08 Nov 2015 20:45:36 +0000 UTC, Dave Reynolds <[email protected]> wrote: > Yes, there's a problem in the namespaces. You have defined the default > namespace to be OWL rather than your http://example.com/myontology. > [...] > As you can see the you have defined a restriction on the property > http://example.com/myontology#theProperty but in your test instance you have > used the property owl:theProperty which is probably not what you meant. Thanks! The patch was indeed as simple as @@ -6,2 +6,3 @@ <!ENTITY owl "http://www.w3.org/2002/07/owl#" > + <!ENTITY ont "http://example.com/myontology#" > ]> @@ -9,7 +10,8 @@ <rdf:RDF - xmlns ="&owl;" xmlns:owl ="&owl;" - xml:base ="http://example.com/myontology" xmlns:rdf ="&rdf;" xmlns:rdfs="&rdfs;" + xmlns ="&ont;" + xml:base ="&ont;" + xmlns:ont ="&ont;" > (and the https://www.mn.uio.no/...# prefix should also be http://example.com/myontology#, but that shouldn't matter). I'm a bit confused why the name clashes (redefinitions) and, with the OWL_LITE_MEM_RULES_INF ModelSpec, cardinality values other than 0 and 1 aren't errors, though. > BTW you shouldn't see those DEBUG statements unless you have turned on DEBUG > level logging for the whole of Jena. Hmmm, strange, I didn't do that. However, I got DEBUG statements suppressed now by changing BasicConfigurator.configure(new ConsoleAppender(new SimpleLayout(), ConsoleAppender.SYSTEM_ERR)); to Logger.getRootLogger().setLevel(org.apache.log4j.Level.INFO); Logger.getRootLogger().addAppender(new ConsoleAppender(new SimpleLayout(), ConsoleAppender.SYSTEM_ERR)); Philipp
