public class ManchesterOWLSyntaxEditorParser extends Object implements ManchesterOWLSyntaxParser
| Type | Property and Description |
|---|---|
protected OWLAnnotationProperty |
parseAnnotation |
protected OWLDataProperty |
parseData |
| Modifier and Type | Class and Description |
|---|---|
protected class |
ManchesterOWLSyntaxEditorParser.ExceptionBuilder |
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
annotationPropertyNames |
protected Set<String> |
classNames |
protected OWLDataFactory |
dataFactory |
protected Set<String> |
dataPropertyNames |
protected Set<String> |
dataTypeNames |
protected Set<String> |
individualNames |
protected Set<String> |
objectPropertyNames |
protected DefaultPrefixManager |
pm |
protected Set<ManchesterOWLSyntax> |
potentialKeywords |
| Constructor and Description |
|---|
ManchesterOWLSyntaxEditorParser(OWLDataFactory dataFactory,
String s) |
ManchesterOWLSyntaxEditorParser(OWLOntologyLoaderConfiguration configuration,
OWLDataFactory dataFactory,
String s) |
protected OWLDataProperty parseDataProperty
protected OWLAnnotationProperty parseAnnotationProperty
protected OWLDataFactory dataFactory
protected DefaultPrefixManager pm
protected Set<ManchesterOWLSyntax> potentialKeywords
public ManchesterOWLSyntaxEditorParser(OWLDataFactory dataFactory, String s)
dataFactory - dataFactorys - spublic ManchesterOWLSyntaxEditorParser(OWLOntologyLoaderConfiguration configuration, OWLDataFactory dataFactory, String s)
configuration - configurationdataFactory - dataFactorys - sprotected ManchesterOWLSyntaxTokenizer getTokenizer(String s)
public void setOWLEntityChecker(OWLEntityChecker owlEntityChecker)
setOWLEntityChecker in interface ManchesterOWLSyntaxParserowlEntityChecker - owlEntityCheckerpublic void setOWLOntologyChecker(OWLOntologyChecker owlOntologyChecker)
setOWLOntologyChecker in interface ManchesterOWLSyntaxParserowlOntologyChecker - owlOntologyCheckerprotected ManchesterOWLSyntaxTokenizer.Token getLastToken()
public OWLClassExpression parseClassExpression() throws ParserException
ManchesterOWLSyntaxParserparseClassExpression in interface ManchesterOWLSyntaxParserParserException - If a class expression could not be parsed.protected OWLClassExpression parseIntersection()
protected OWLClassExpression parseUnion()
protected OWLObjectPropertyExpression parseObjectPropertyExpression(boolean allowUndeclared)
public OWLDataRange parseDataRange()
parseDataRange in interface ManchesterOWLSyntaxParser@Deprecated public OWLLiteral parseConstant()
parseConstant in interface ManchesterOWLSyntaxParserpublic OWLLiteral parseLiteral(OWLDatatype datatype)
parseLiteral in interface ManchesterOWLSyntaxParserdatatype - datatype to use, if one exists in the context. If null, the
datatype will be decided by the literal itself.public Set<OntologyAxiomPair> parseFrames() throws ParserException
ParserException - parsing errorprotected OWLAnnotation parseAnnotation()
public Set<OntologyAxiomPair> parseClassFrameEOF() throws ParserException
parseClassFrameEOF in interface ManchesterOWLSyntaxParserParserException - parsing errorpublic void setDefaultOntology(OWLOntology defaultOntology)
defaultOntology - defaultOntologyprotected OWLPropertyAssertionAxiom<?,?> parseFact(OWLIndividual ind)
public List<OntologyAxiomPair> parseRuleFrame()
parseRuleFrame in interface ManchesterOWLSyntaxParserpublic IRI parseVariable() throws ParserException
parseVariable in interface ManchesterOWLSyntaxParserParserException - if a parser exception is raisedprotected OWLObjectPropertyCharacteristicAxiom parseObjectPropertyCharacteristic(OWLObjectPropertyExpression prop)
protected OWLDataPropertyCharacteristicAxiom parseDataPropertyCharacteristic(OWLDataPropertyExpression prop)
public Set<OWLClassExpression> parseClassExpressionList(boolean ignored)
parseClassExpressionList in interface ManchesterOWLSyntaxParserignored - this parameter is ignoredpublic Set<OWLClassExpression> parseClassExpressionList()
parseClassExpressionList in interface ManchesterOWLSyntaxParserpublic Set<OWLPropertyExpression<?,?>> parsePropertyList()
parsePropertyList in interface ManchesterOWLSyntaxParserpublic Set<OWLObjectPropertyExpression> parseObjectPropertyList() throws ParserException
parseObjectPropertyList in interface ManchesterOWLSyntaxParserParserException - if a parser exception is raisedprotected Set<OWLIndividual> parseIndividualList()
public List<OWLObjectPropertyExpression> parseObjectPropertyChain()
parseObjectPropertyChain in interface ManchesterOWLSyntaxParserprotected OWLIndividual parseIndividual()
protected OWLDataProperty parseDataProperty()
protected OWLAnnotationProperty parseAnnotationProperty()
protected IRI parseIRI()
public ManchesterOWLSyntaxOntologyFormat parseOntology(OWLOntology ont) throws ParserException, UnloadableImportException
parseOntology in interface ManchesterOWLSyntaxParseront - ontParserException - parsing errorUnloadableImportException - import errorpublic OWLClassAxiom parseClassAxiom() throws ParserException
parseClassAxiom in interface ManchesterOWLSyntaxParserParserException - if a parser exception is raisedpublic OWLAxiom parseAxiom() throws ParserException
ManchesterOWLSyntaxParserparseAxiom in interface ManchesterOWLSyntaxParserParserException - parsing errorCopyright © 2014 The University of Manchester. All Rights Reserved.