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

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

Best Java code snippets using org.semanticweb.owlapi.model.OWLDataFactory.getSWRLVariable (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: owlcs/owlapi

@Override
@Nullable
public SWRLDArgument translate(IRI firstObject) {
  return dataFactory.getSWRLVariable(firstObject);
}
origin: net.sourceforge.owlapi/owlapi-parsers

@Override
@Nullable
public SWRLDArgument translate(IRI firstObject) {
  return dataFactory.getSWRLVariable(firstObject);
}
origin: net.sourceforge.owlapi/owlapi

  public SWRLVariable getOWLObject() throws OWLXMLParserException {
    if(iri != null) {
      return getOWLDataFactory().getSWRLVariable(iri);
    }
    return null;

  }
}
origin: net.sourceforge.owlapi/org.semanticweb.hermit

  protected SWRLVariable getFreshVariable() {
    SWRLVariable variable=m_factory.getSWRLVariable(IRI.create("internal:swrl#", "v"+m_newVariableIndex));
    m_newVariableIndex++;
    return variable;
  }
}
origin: com.hermit-reasoner/org.semanticweb.hermit

  protected SWRLVariable getFreshVariable() {
    SWRLVariable variable=m_factory.getSWRLVariable(IRI.create("internal:swrl#"+m_newVariableIndex));
    m_newVariableIndex++;
    return variable;
  }
}
origin: owlcs/owlapi

private SWRLVariable parseDVariable() {
  IRI var = parseVariable();
  return df.getSWRLVariable(var);
}
origin: net.sourceforge.owlapi/owlapi

public void visit(SWRLVariable variable) {
  variable.getIRI().accept(this);
  IRI iri = (IRI) obj;
  obj = dataFactory.getSWRLVariable(iri);
}
origin: owlcs/owlapi

@Override
public SWRLVariable visit(SWRLVariable node) {
  return df.getSWRLVariable(t(node.getIRI()));
}
origin: owlcs/owlapi

@Override
public void visit(SWRLVariable node) {
  obj = df.getSWRLVariable(dup(node.getIRI()));
}
origin: apache/stanbol

@SuppressWarnings("unchecked")
@Override
public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption {
  org.apache.stanbol.rules.manager.atoms.StringVariableAtom tmp = (org.apache.stanbol.rules.manager.atoms.StringVariableAtom) ruleAtom;
  URI uri = tmp.getURI();
  return (T) new ArgumentSWRLAtom((SWRLDArgument) OWLManager.getOWLDataFactory().getSWRLVariable(
    IRI.create(uri.toString())), uri.toString());
}
origin: apache/stanbol

@SuppressWarnings("unchecked")
@Override
public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption {
  org.apache.stanbol.rules.manager.atoms.VariableAtom tmp = (org.apache.stanbol.rules.manager.atoms.VariableAtom) ruleAtom;
  URI uri = tmp.getURI();
  return (T) new ArgumentSWRLAtom((SWRLIArgument) OWLManager.getOWLDataFactory().getSWRLVariable(
    IRI.create(uri.toString())), uri.toString());
}
origin: owlcs/owlapi

@Override
public Object visit(SWRLVariable node) {
  return visit(node, () -> df.getSWRLVariable(t(node.getIRI())));
}
origin: com.github.galigator.openllet/openllet-owlapi

private SWRLIArgument parseToAtomIObject(final ATermAppl t)
{
  if (ATermUtils.isVar(t))
    return _factory.getSWRLVariable(IRI.create(((ATermAppl) t.getArgument(0)).getName()));
  if (_kb.isIndividual(t))
    return _factory.getSWRLIndividualArgument(_conceptConverter.convertIndividual(t));
  throw new InternalReasonerException("Unrecognized term: " + t);
}
origin: com.github.ansell.pellet/pellet-owlapiv3

  private SWRLDArgument parseToAtomDObject(ATermAppl t) {
    if( ATermUtils.isVar( t ) ) {
      return factory.getSWRLVariable( IRI.create( ((ATermAppl) t.getArgument( 0 )).getName() ) );
    }
    else if( ATermUtils.isLiteral( t ) ) {
      return factory.getSWRLLiteralArgument( (OWLLiteral) conceptConverter.convert( t ) );
    }

    throw new InternalReasonerException( "Unrecognized term: " + t );
  }
}
origin: com.github.galigator.openllet/openllet-owlapi

  private SWRLDArgument parseToAtomDObject(final ATermAppl t)
  {
    if (ATermUtils.isVar(t))
      return _factory.getSWRLVariable(IRI.create(((ATermAppl) t.getArgument(0)).getName()));
    else
      if (ATermUtils.isLiteral(t))
        return _factory.getSWRLLiteralArgument((OWLLiteral) _conceptConverter.convert(t));

    throw new InternalReasonerException("Unrecognized term: " + t);
  }
}
origin: net.sourceforge.owlapi/pellet-owlapi-ignazio1977

  private SWRLDArgument parseToAtomDObject(ATermAppl t) {
    if( ATermUtils.isVar( t ) ) {
      return factory.getSWRLVariable( IRI.create( ((ATermAppl) t.getArgument( 0 )).getName() ) );
    }
    else if( ATermUtils.isLiteral( t ) ) {
      return factory.getSWRLLiteralArgument( (OWLLiteral) conceptConverter.convert( t ) );
    }

    throw new InternalReasonerException( "Unrecognized term: " + t );
  }
}
origin: net.sourceforge.owlapi/pellet-owlapi-ignazio1977

private SWRLIArgument parseToAtomIObject(ATermAppl t) {
  if( ATermUtils.isVar( t ) ) {
    return factory.getSWRLVariable( IRI.create( ((ATermAppl) t.getArgument( 0 )).getName() ) );
  }
  if( kb.isIndividual( t ) ) {
    return factory.getSWRLIndividualArgument(conceptConverter.convertIndividual(t));
  }
  throw new InternalReasonerException( "Unrecognized term: " + t );
}
origin: com.github.ansell.pellet/pellet-owlapiv3

private SWRLIArgument parseToAtomIObject(ATermAppl t) {
  if( ATermUtils.isVar( t ) ) {
    return factory.getSWRLVariable( IRI.create( ((ATermAppl) t.getArgument( 0 )).getName() ) );
  }
  if( kb.isIndividual( t ) ) {
    return factory.getSWRLIndividualArgument(conceptConverter.convertIndividual(t));
  }
  throw new InternalReasonerException( "Unrecognized term: " + t );
}
origin: Galigator/openllet

  private SWRLDArgument parseToAtomDObject(final ATermAppl t)
  {
    if (ATermUtils.isVar(t))
      return _factory.getSWRLVariable(IRI.create(((ATermAppl) t.getArgument(0)).getName()));
    else
      if (ATermUtils.isLiteral(t))
        return _factory.getSWRLLiteralArgument((OWLLiteral) _conceptConverter.convert(t));

    throw new InternalReasonerException("Unrecognized term: " + t);
  }
}
origin: Galigator/openllet

private SWRLIArgument parseToAtomIObject(final ATermAppl t)
{
  if (ATermUtils.isVar(t))
    return _factory.getSWRLVariable(IRI.create(((ATermAppl) t.getArgument(0)).getName()));
  if (_kb.isIndividual(t))
    return _factory.getSWRLIndividualArgument(_conceptConverter.convertIndividual(t));
  throw new InternalReasonerException("Unrecognized term: " + t);
}
org.semanticweb.owlapi.modelOWLDataFactorygetSWRLVariable

Popular methods of OWLDataFactory

  • getOWLClass
  • getOWLNamedIndividual
  • getOWLObjectProperty
  • getOWLSubClassOfAxiom
  • getOWLClassAssertionAxiom
  • getOWLDataProperty
  • getOWLThing
  • getOWLAnnotationProperty
  • getOWLLiteral
  • 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

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Menu (java.awt)
  • String (java.lang)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JList (javax.swing)
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