de.uulm.ecs.ai.owl.krssparser
Class KRSS2OWLParser
java.lang.Object
org.semanticweb.owl.io.AbstractOWLParser
de.uulm.ecs.ai.owl.krssparser.KRSS2OWLParser
- All Implemented Interfaces:
- OWLParser
public class KRSS2OWLParser
- extends AbstractOWLParser
The KRSS2OWLParser differs from the KRSSOWLParser
that
it supports an extended KRSS vocabulary available in many reasoning systems. For instance, CGIs can
be added with help of (implies subclass superclass), range, domain, inverse, functinal attribute can be
provided for roles.
Note that DatatypeProperties are not supported within KRSS2.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KRSS2OWLParser
public KRSS2OWLParser()
parse
public OWLOntologyFormat parse(OWLOntologyInputSource inputSource,
OWLOntology ontology)
throws OWLParserException
- Description copied from interface:
OWLParser
- Parses the ontology that has a concrete representation which is pointed to
by the specified input source. Implementors of this method should
load any imported ontologies with the makeImportsLoadRequest method on OWLOntologyManager.
- Parameters:
inputSource
- The input source which points the concrete representation. If
the input source can provider a Reader
then the ontology is parsed
from the Reader
. If the input source cannot provide a reader then
it is parsed from the InputStream
. If the input source cannot provide
an InputStream
then it is parsed from the physical URI.ontology
- The ontology which the representation will be parsed into
- Returns:
- An
OWLOntologyFormat
which describes the concrete representation
format which was parsed to obtain the ontology.
- Throws:
OWLParserException