Codota Logo
OWLDataFactory.getSWRLDataPropertyAtom
Code IndexAdd Codota to your IDE (free)

How to use
getSWRLDataPropertyAtom
method
in
org.semanticweb.owlapi.model.OWLDataFactory

Best Java code snippets using org.semanticweb.owlapi.model.OWLDataFactory.getSWRLDataPropertyAtom (Showing top 20 results out of 315)

  • Common ways to obtain OWLDataFactory
private void myMethod () {
OWLDataFactory o =
  • Codota IconOWLOntologyManager manager;manager.getOWLDataFactory()
  • Codota IconOWLOntology ontology;ontology.getOWLOntologyManager().getOWLDataFactory()
  • Codota IconOWLManager.getOWLDataFactory()
  • Smart code suggestions by Codota
}
origin: net.sourceforge.owlapi/owlapi

  public void endElement() throws OWLParserException, UnloadableImportException {
    setAtom(getOWLDataFactory().getSWRLDataPropertyAtom(prop, arg0, arg1));
    getParentHandler().handleChild(this);
  }
}
origin: edu.stanford.protege/org.protege.owl.server

@Override
public Object read(OWLInputStream in) throws IOException {
  OWLDataPropertyExpression property = (OWLDataPropertyExpression) in.read();
  SWRLIArgument arg1 = (SWRLIArgument) in.read();
  SWRLDArgument arg2 = (SWRLDArgument) in.read();
  return in.getOWLDataFactory().getSWRLDataPropertyAtom(property, arg1, arg2);
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  public void endElement() throws OWLParserException, UnloadableImportException {
    setAtom(getOWLDataFactory().getSWRLDataPropertyAtom(prop, arg0, arg1));
    getParentHandler().handleChild(this);
  }
}
origin: owlcs/owlapi

@Override
public void visit(SWRLDataPropertyAtom node) {
  obj = df.getSWRLDataPropertyAtom(dup(node.getPredicate()), dup(node.getFirstArgument()),
    dup(node
      .getSecondArgument()));
}
origin: owlcs/owlapi

@Override
public SWRLDataPropertyAtom visit(SWRLDataPropertyAtom node) {
  return df.getSWRLDataPropertyAtom(t(node.getPredicate()), t(node.getFirstArgument()),
          t(node.getSecondArgument()));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public SWRLDataPropertyAtom visit(SWRLDataPropertyAtom node) {
  return df.getSWRLDataPropertyAtom(t(node.getPredicate()), t(node.getFirstArgument()),
          t(node.getSecondArgument()));
}
origin: com.github.ansell.owlapi/owlapi-parsers

final public SWRLDataPropertyAtom DataPropertyAtom() throws ParseException {
  OWLDataProperty prop;
  SWRLIArgument arg0;
  SWRLDArgument arg1;
  jj_consume_token(DATAPROPERTYATOM);
  jj_consume_token(OPENPAR);
  prop = DataPropertyIRI();
  arg0 = IArg();
  arg1 = DArg();
  jj_consume_token(CLOSEPAR);
  return dataFactory.getSWRLDataPropertyAtom(prop, arg0, arg1);
}
origin: net.sourceforge.owlapi/owlapi-distribution

 final public SWRLDataPropertyAtom DataPropertyAtom() throws ParseException {OWLDataProperty prop;
  SWRLIArgument arg0;
  SWRLDArgument arg1;
  jj_consume_token(DATAPROPERTYATOM);
  jj_consume_token(OPENPAR);
  prop = DataPropertyIRI();
  arg0 = IArg();
  arg1 = DArg();
  jj_consume_token(CLOSEPAR);
return df.getSWRLDataPropertyAtom(prop, arg0, arg1);
}

origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public SWRLDataPropertyAtom visit(SWRLDataPropertyAtom node) {
  return df.getSWRLDataPropertyAtom(get(node.getPredicate()), get(node.getFirstArgument()),
    get(node
      .getSecondArgument()));
}
origin: owlcs/owlapi

 final public SWRLDataPropertyAtom DataPropertyAtom() throws ParseException {OWLDataProperty prop;
  SWRLIArgument arg0;
  SWRLDArgument arg1;
  jj_consume_token(DATAPROPERTYATOM);
  jj_consume_token(OPENPAR);
  prop = DataPropertyIRI();
  arg0 = IArg();
  arg1 = DArg();
  jj_consume_token(CLOSEPAR);
return df.getSWRLDataPropertyAtom(prop, arg0, arg1);
}

origin: owlcs/owlapi

@Override
public SWRLDataPropertyAtom visit(SWRLDataPropertyAtom node) {
  return df.getSWRLDataPropertyAtom(get(node.getPredicate()), get(node.getFirstArgument()),
    get(node
      .getSecondArgument()));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public SWRLDataPropertyAtom visit(SWRLDataPropertyAtom node) {
  return df.getSWRLDataPropertyAtom(t(node.getPredicate()), t(node.getFirstArgument()),
          t(node.getSecondArgument()));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

 final public SWRLDataPropertyAtom DataPropertyAtom() throws ParseException {OWLDataProperty prop;
  SWRLIArgument arg0;
  SWRLDArgument arg1;
  jj_consume_token(DATAPROPERTYATOM);
  jj_consume_token(OPENPAR);
  prop = DataPropertyIRI();
  arg0 = IArg();
  arg1 = DArg();
  jj_consume_token(CLOSEPAR);
return df.getSWRLDataPropertyAtom(prop, arg0, arg1);
}

origin: net.sourceforge.owlapi/owlapi-parsers

 final public SWRLDataPropertyAtom DataPropertyAtom() throws ParseException {OWLDataProperty prop;
  SWRLIArgument arg0;
  SWRLDArgument arg1;
  jj_consume_token(DATAPROPERTYATOM);
  jj_consume_token(OPENPAR);
  prop = DataPropertyIRI();
  arg0 = IArg();
  arg1 = DArg();
  jj_consume_token(CLOSEPAR);
return df.getSWRLDataPropertyAtom(prop, arg0, arg1);
}

origin: owlcs/owlapi

@Override
public Object visit(SWRLDataPropertyAtom node) {
  return visit(node, () -> df
    .getSWRLDataPropertyAtom(t(node.getPredicate()), t(node.getFirstArgument()), t(
      node.getSecondArgument())));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Object visit(SWRLDataPropertyAtom node) {
  return visit(node, () -> df
    .getSWRLDataPropertyAtom(t(node.getPredicate()), t(node.getFirstArgument()), t(
      node.getSecondArgument())));
}
origin: net.sourceforge.owlapi/owlapi

public SWRLAtom parseDataPropertyAtom() throws ParserException {
  String predicate = consumeToken();
  if (!isDataPropertyName(predicate)) {
    throw createException(false, false, true, false);
  }
  consumeToken("(");
  SWRLIArgument obj1 = parseIObject();
  consumeToken(",");
  SWRLDArgument obj2 = parseDObject();
  consumeToken(")");
  return dataFactory.getSWRLDataPropertyAtom(getOWLDataProperty(predicate), obj1, obj2);
}
origin: owlcs/owlapi

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);
}
origin: net.sourceforge.owlapi/owlapi-parsers

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);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

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);
}
org.semanticweb.owlapi.modelOWLDataFactorygetSWRLDataPropertyAtom

Popular methods of OWLDataFactory

  • getOWLClass
    Gets an OWL class that has the specified IRI
  • getOWLNamedIndividual
    Gets an OWL individual that has the specified IRI
  • getOWLObjectProperty
    Gets an OWL object property that has the specified IRI
  • getOWLSubClassOfAxiom
  • getOWLClassAssertionAxiom
  • getOWLDataProperty
    Gets an OWL data property that has the specified IRI
  • getOWLThing
    Gets the built in owl:Thing class, which has a URI of
  • getOWLAnnotationProperty
    Gets an OWLAnnotationProperty that has the specified IRI
  • getOWLLiteral
    Convenience method that obtains a literal typed as a boolean.
  • getOWLDeclarationAxiom
    Gets a declaration with zero or more annotations for an entity
  • getOWLObjectIntersectionOf
  • getOWLEquivalentClassesAxiom
  • getOWLObjectIntersectionOf,
  • getOWLEquivalentClassesAxiom,
  • getOWLObjectSomeValuesFrom,
  • getOWLNothing,
  • getOWLObjectComplementOf,
  • getOWLObjectPropertyAssertionAxiom,
  • getOWLAnnotationAssertionAxiom,
  • getOWLDataPropertyAssertionAxiom,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • getSystemService (Context)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now