On 21/03/12 10:23, 锐光刘 wrote:
My Problems are that I want to create ontology model OntModel with the
given namespace and then check it whit pellet reasoner , it show the error
message below:
WARN [main] (BaseXMLWriter.java:96) - Namespace prefix 'j.2' is reserved
by Jena.
Don't use prefixes for the form "j.NUMBER" -- Jena needs to be able to
generate it's own sometimes in such a way that they will not clash even
with data it has not seen yet. So it reserves names pace like j.1, j.2, etc
but that is just a warning and not the problem because ...
Exception in thread "main" java.lang.NullPointerException
at org.mindswap.pellet.Individual.getRNeighborEdges(Individual.java:680)
there is a null pointer exception, which is unrelated to writing
at
org.mindswap.pellet.tableau.completion.rule.SomeValuesRule.applySomeValuesRule(SomeValuesRule.java:120)
at
org.mindswap.pellet.tableau.completion.rule.SomeValuesRule.apply(SomeValuesRule.java:64)
at
org.mindswap.pellet.tableau.completion.rule.AbstractTableauRule.apply(AbstractTableauRule.java:64)
at
org.mindswap.pellet.tableau.completion.SROIQStrategy.complete(SROIQStrategy.java:157)
at org.mindswap.pellet.ABox.isConsistent(ABox.java:1416)
at org.mindswap.pellet.ABox.isConsistent(ABox.java:1253)
at org.mindswap.pellet.KnowledgeBase.consistency(KnowledgeBase.java:1989)
at org.mindswap.pellet.KnowledgeBase.isConsistent(KnowledgeBase.java:2063)
at org.mindswap.pellet.jena.PelletInfGraph.prepare(PelletInfGraph.java:263)
at org.mindswap.pellet.jena.PelletInfGraph.prepare(PelletInfGraph.java:246)
at
org.mindswap.pellet.jena.PelletInfGraph.isConsistent(PelletInfGraph.java:274)
and another creatation with other information under the same process
routine show the error message below :
Exception in thread "main" com.hp.hpl.jena.shared.BadURIException: Only
well-formed absolute URIrefs can be included in RDF/XML output:<biological
process unknown@en> Code: 57/REQUIRED_COMPONENT_MISSING in SCHEME: A
component that is required by the scheme is missing.
at
This:
<biological process unknown@en>
is a bad URI (looks like it should be a literal to me)
Could someone tell me what's the problems , thanks !
Andy