private OWLDataProperty getOWLDataProperty(String name) { OWLDataProperty prop = checker.getOWLDataProperty(name); if (prop == null && dataPropertyNames.contains(name)) { prop = df.getOWLDataProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withData().build(); } return prop; }
private OWLDataProperty getOWLDataProperty(String name) { OWLDataProperty prop = checker.getOWLDataProperty(name); if (prop == null && dataPropertyNames.contains(name)) { prop = df.getOWLDataProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withData().build(); } return prop; }
private OWLDataProperty getOWLDataProperty(String name) { OWLDataProperty prop = checker.getOWLDataProperty(name); if (prop == null && dataPropertyNames.contains(name)) { prop = df.getOWLDataProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withData().build(); } return prop; }
private OWLPropertyExpression parsePropertyExpression() { String tok = peekToken(); if (isObjectPropertyName(tok)) { return parseObjectPropertyExpression(false); } else if (INVERSE.matches(tok)) { return parseObjectPropertyExpression(false); } else if (isDataPropertyName(tok)) { return parseDataProperty(); } else { consumeToken(); throw new ExceptionBuilder().withObject().withData().build(); } }
private OWLPropertyExpression parsePropertyExpression() { String tok = peekToken(); if (isObjectPropertyName(tok)) { return parseObjectPropertyExpression(false); } else if (INVERSE.matches(tok)) { return parseObjectPropertyExpression(false); } else if (isDataPropertyName(tok)) { return parseDataProperty(); } else { consumeToken(); throw new ExceptionBuilder().withObject().withData().build(); } }
private OWLPropertyExpression parsePropertyExpression() { String tok = peekToken(); if (isObjectPropertyName(tok)) { return parseObjectPropertyExpression(false); } else if (INVERSE.matches(tok)) { return parseObjectPropertyExpression(false); } else if (isDataPropertyName(tok)) { return parseDataProperty(); } else { consumeToken(); throw new ExceptionBuilder().withObject().withData().build(); } }
private OWLPropertyExpression parsePropertyExpression() { String tok = peekToken(); if (isObjectPropertyName(tok)) { return parseObjectPropertyExpression(false); } else if (INVERSE.matches(tok)) { return parseObjectPropertyExpression(false); } else if (isDataPropertyName(tok)) { return parseDataProperty(); } else { consumeToken(); throw new ExceptionBuilder().withObject().withData().build(); } }
protected OWLDataProperty parseDataProperty() { String name = consumeToken(); if (!isDataPropertyName(name)) { throw new ExceptionBuilder().withData().build(); } return getOWLDataProperty(name); }
private OWLDataPropertyExpression parseDataPropertyExpression() { String tok = consumeToken(); if (!isDataPropertyName(tok)) { throw new ExceptionBuilder().withData().build(); } return getOWLDataProperty(tok); }
private OWLDataPropertyExpression parseDataPropertyExpression() { String tok = consumeToken(); if (!isDataPropertyName(tok)) { throw new ExceptionBuilder().withData().build(); } return getOWLDataProperty(tok); }
private OWLDataProperty getOWLDataProperty(String name) { OWLDataProperty prop = checker.getOWLDataProperty(name); if (prop == null && dataPropertyNames.contains(name)) { prop = df.getOWLDataProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withData().build(); } return prop; }
private SWRLAtom parseDataPropertyAtom() { String predicate = consumeToken(); if (!isDataPropertyName(predicate)) { throw new ExceptionBuilder().withData().build(); } consumeToken(OPEN.keyword()); SWRLIArgument obj1 = parseIObject(); consumeToken(COMMA.keyword()); SWRLDArgument obj2 = parseDObject(); consumeToken(CLOSE.keyword()); return df.getSWRLDataPropertyAtom(getOWLDataProperty(predicate), obj1, obj2); }
protected OWLDataProperty parseDataProperty() { String name = consumeToken(); if (!isDataPropertyName(name)) { throw new ExceptionBuilder().withData().build(); } return getOWLDataProperty(name); }
private SWRLAtom parseDataPropertyAtom() { String predicate = consumeToken(); if (!isDataPropertyName(predicate)) { throw new ExceptionBuilder().withData().build(); } consumeToken(OPEN.keyword()); SWRLIArgument obj1 = parseIObject(); consumeToken(COMMA.keyword()); SWRLDArgument obj2 = parseDObject(); consumeToken(CLOSE.keyword()); return df.getSWRLDataPropertyAtom(getOWLDataProperty(predicate), obj1, obj2); }
private OWLDataPropertyExpression parseDataPropertyExpression() { String tok = consumeToken(); if (!isDataPropertyName(tok)) { throw new ExceptionBuilder().withData().build(); } return getOWLDataProperty(tok); }
protected OWLDataProperty parseDataProperty() { String name = consumeToken(); if (!isDataPropertyName(name)) { throw new ExceptionBuilder().withData().build(); } return getOWLDataProperty(name); }
private OWLDataPropertyExpression parseDataPropertyExpression() { String tok = consumeToken(); if (!isDataPropertyName(tok)) { throw new ExceptionBuilder().withData().build(); } return getOWLDataProperty(tok); }
protected OWLDataProperty parseDataProperty() { String name = consumeToken(); if (!isDataPropertyName(name)) { throw new ExceptionBuilder().withData().build(); } return getOWLDataProperty(name); }
private SWRLAtom parseDataPropertyAtom() { String predicate = consumeToken(); if (!isDataPropertyName(predicate)) { throw new ExceptionBuilder().withData().build(); } consumeToken(OPEN.keyword()); SWRLIArgument obj1 = parseIObject(); consumeToken(COMMA.keyword()); SWRLDArgument obj2 = parseDObject(); consumeToken(CLOSE.keyword()); return df.getSWRLDataPropertyAtom(getOWLDataProperty(predicate), obj1, obj2); }
private SWRLAtom parseDataPropertyAtom() { String predicate = consumeToken(); if (!isDataPropertyName(predicate)) { throw new ExceptionBuilder().withData().build(); } consumeToken(OPEN.keyword()); SWRLIArgument obj1 = parseIObject(); consumeToken(COMMA.keyword()); SWRLDArgument obj2 = parseDObject(); consumeToken(CLOSE.keyword()); return df.getSWRLDataPropertyAtom(getOWLDataProperty(predicate), obj1, obj2); }