congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OWLDataFactory.getSWRLDataRangeAtom
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public SWRLDataRangeAtom buildObject() {
  return df.getSWRLDataRangeAtom(getPredicate(), getArgument());
}
origin: edu.stanford.protege/org.protege.owl.server

@Override
public Object read(OWLInputStream in) throws IOException {
  OWLDataRange predicate = (OWLDataRange) in.read();
  SWRLDArgument arg = (SWRLDArgument) in.read();
  return in.getOWLDataFactory().getSWRLDataRangeAtom(predicate, arg);
}
origin: owlcs/owlapi

@Override
public SWRLDataRangeAtom visit(SWRLDataRangeAtom node) {
  return df.getSWRLDataRangeAtom(get(node.getPredicate()), get(node.getArgument()));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public SWRLDataRangeAtom visit(SWRLDataRangeAtom node) {
  return df.getSWRLDataRangeAtom(get(node.getPredicate()), get(node.getArgument()));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Object visit(SWRLDataRangeAtom node) {
  return visit(node,
    () -> df.getSWRLDataRangeAtom(t(node.getPredicate()), t(node.getArgument())));
}
origin: owlcs/owlapi

 final public SWRLDataRangeAtom DataRangeAtom() throws ParseException {OWLDataRange rng;
  SWRLDArgument arg0;
  jj_consume_token(DATARANGEATOM);
  jj_consume_token(OPENPAR);
  rng = DataRange();
  arg0 = DArg();
  jj_consume_token(CLOSEPAR);
return df.getSWRLDataRangeAtom(rng, arg0);
}

origin: owlcs/owlapi

@Override
public Object visit(SWRLDataRangeAtom node) {
  return visit(node,
    () -> df.getSWRLDataRangeAtom(t(node.getPredicate()), t(node.getArgument())));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Object visit(SWRLDataRangeAtom node) {
  return visit(node,
    () -> df.getSWRLDataRangeAtom(t(node.getPredicate()), t(node.getArgument())));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

 final public SWRLDataRangeAtom DataRangeAtom() throws ParseException {OWLDataRange rng;
  SWRLDArgument arg0;
  jj_consume_token(DATARANGEATOM);
  jj_consume_token(OPENPAR);
  rng = DataRange();
  arg0 = DArg();
  jj_consume_token(CLOSEPAR);
return df.getSWRLDataRangeAtom(rng, arg0);
}

origin: net.sourceforge.owlapi/owlapi-parsers

 final public SWRLDataRangeAtom DataRangeAtom() throws ParseException {OWLDataRange rng;
  SWRLDArgument arg0;
  jj_consume_token(DATARANGEATOM);
  jj_consume_token(OPENPAR);
  rng = DataRange();
  arg0 = DArg();
  jj_consume_token(CLOSEPAR);
return df.getSWRLDataRangeAtom(rng, arg0);
}

origin: net.sourceforge.owlapi/owlapi

final public SWRLDataRangeAtom DataRangeAtom() throws ParseException {
 OWLDataRange rng;
 SWRLDArgument arg0;
 jj_consume_token(DATARANGEATOM);
 jj_consume_token(OPENPAR);
 rng = DataRange();
 arg0 = DArg();
 jj_consume_token(CLOSEPAR);
                                  {if (true) return dataFactory.getSWRLDataRangeAtom(rng, arg0);}
 throw new Error("Missing return statement in function");
}
origin: net.sourceforge.owlapi/owlapi-distribution

 final public SWRLDataRangeAtom DataRangeAtom() throws ParseException {OWLDataRange rng;
  SWRLDArgument arg0;
  jj_consume_token(DATARANGEATOM);
  jj_consume_token(OPENPAR);
  rng = DataRange();
  arg0 = DArg();
  jj_consume_token(CLOSEPAR);
return df.getSWRLDataRangeAtom(rng, arg0);
}

origin: owlcs/owlapi

private SWRLAtom parseDataRangeAtom() {
  OWLDataRange range = parseDataIntersectionOf(false);
  consumeToken(OPEN.keyword());
  SWRLVariable obj1 = parseDVariable();
  consumeToken(CLOSE.keyword());
  return df.getSWRLDataRangeAtom(range, obj1);
}
origin: owlcs/owlapi

protected SWRLAtom dataRangeAtom(IRI firstObject) {
  // DR(?x) or DR(val)
  IRI dataRangeIRI = consumer.getResourceObject(firstObject, DATA_RANGE.getIRI(), true);
  if (dataRangeIRI == null) {
    throw new OWLRuntimeException(
      "Don't know how to translate SWRL Atom: data range IRI is null " + firstObject);
  }
  OWLDataRange dataRange = consumer.translateDataRange(dataRangeIRI);
  SWRLDArgument dObject = translateSWRLAtomDObject(firstObject, ARGUMENT_1.getIRI());
  return dataFactory.getSWRLDataRangeAtom(dataRange, dObject);
}
origin: net.sourceforge.owlapi/owlapi-distribution

private SWRLAtom parseDataRangeAtom() {
  OWLDataRange range = parseDataIntersectionOf(false);
  consumeToken(OPEN.keyword());
  SWRLVariable obj1 = parseDVariable();
  consumeToken(CLOSE.keyword());
  return df.getSWRLDataRangeAtom(range, obj1);
}
origin: net.sourceforge.owlapi/owlapi-parsers

private SWRLAtom parseDataRangeAtom() {
  OWLDataRange range = parseDataIntersectionOf(false);
  consumeToken(OPEN.keyword());
  SWRLVariable obj1 = parseDVariable();
  consumeToken(CLOSE.keyword());
  return df.getSWRLDataRangeAtom(range, obj1);
}
origin: net.sourceforge.owlapi/owlapi-parsers

protected SWRLAtom dataRangeAtom(IRI firstObject) {
  // DR(?x) or DR(val)
  IRI dataRangeIRI = consumer.getResourceObject(firstObject, DATA_RANGE.getIRI(), true);
  if (dataRangeIRI == null) {
    throw new OWLRuntimeException(
      "Don't know how to translate SWRL Atom: data range IRI is null " + firstObject);
  }
  OWLDataRange dataRange = consumer.translateDataRange(dataRangeIRI);
  SWRLDArgument dObject = translateSWRLAtomDObject(firstObject, ARGUMENT_1.getIRI());
  return dataFactory.getSWRLDataRangeAtom(dataRange, dObject);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

private SWRLAtom parseDataRangeAtom() {
  OWLDataRange range = parseDataIntersectionOf(false);
  consumeToken(OPEN.keyword());
  SWRLVariable obj1 = parseDVariable();
  consumeToken(CLOSE.keyword());
  return df.getSWRLDataRangeAtom(range, obj1);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

protected SWRLAtom dataRangeAtom(IRI firstObject) {
  // DR(?x) or DR(val)
  IRI dataRangeIRI = consumer.getResourceObject(firstObject, DATA_RANGE.getIRI(), true);
  if (dataRangeIRI == null) {
    throw new OWLRuntimeException(
      "Don't know how to translate SWRL Atom: data range IRI is null " + firstObject);
  }
  OWLDataRange dataRange = consumer.translateDataRange(dataRangeIRI);
  SWRLDArgument dObject = translateSWRLAtomDObject(firstObject, ARGUMENT_1.getIRI());
  return dataFactory.getSWRLDataRangeAtom(dataRange, dObject);
}
origin: com.github.ansell.owlapi/owlapi-parsers

private SWRLAtom parseDataRangeAtom() {
  OWLDataRange range = parseDataRange();
  consumeToken(OPEN.keyword());
  SWRLVariable obj1 = parseDVariable();
  consumeToken(CLOSE.keyword());
  return dataFactory.getSWRLDataRangeAtom(range, obj1);
}
org.semanticweb.owlapi.modelOWLDataFactorygetSWRLDataRangeAtom

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 requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • JButton (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now