congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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