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

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

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

public static OWLDatatypeRestriction DatatypeRestriction(OWLDatatype datatype,
  OWLFacetRestriction... facetRestrictions) {
  return DF.getOWLDatatypeRestriction(datatype, facetRestrictions);
}
origin: owlcs/owlapi

@Override
public OWLDatatypeRestriction buildObject() {
  return df.getOWLDatatypeRestriction(getType(), items);
}
origin: SmartDataAnalytics/DL-Learner

@Override
public void visit(OWLDatatypeRestriction desc) {
  OWLDatatype datatype = desc.getDatatype();
  Set<OWLFacetRestriction> facetRestrictions = desc.getFacetRestrictions();
  Set<OWLFacetRestriction> newFacets = facetRestrictions.stream()
      .map(facetRestriction -> normalize(facetRestriction))
      .sorted()
      .collect(Collectors.toSet());
  renamedOWLObject = df.getOWLDatatypeRestriction(datatype, newFacets);;
}
origin: net.sourceforge.owlapi/owlapi

public static <N extends Number> OWLDataRange getMinMaxExclusiveRestrictedInteger(OWLDataFactory dataFactory, N minExclusive, N maxExclusive) {
  OWLDatatype dr = getDatatype(dataFactory, minExclusive);
  Set<OWLFacetRestriction> facetRestrictions = new HashSet<OWLFacetRestriction>();
  facetRestrictions.add(dataFactory.getOWLFacetRestriction(OWLFacet.MIN_EXCLUSIVE,
      getTypedConstant(dataFactory, minExclusive)));
  facetRestrictions.add(dataFactory.getOWLFacetRestriction(OWLFacet.MAX_EXCLUSIVE,
      getTypedConstant(dataFactory, maxExclusive)));
  return dataFactory.getOWLDatatypeRestriction(dr, facetRestrictions);
}
origin: net.sourceforge.owlapi/owlapi

public static <N extends Number> OWLDataRange getMinMaxInclusiveRestrictedInteger(OWLDataFactory dataFactory, N minInclusive, N maxInclusive) {
  OWLDatatype dr = getDatatype(dataFactory, minInclusive);
  Set<OWLFacetRestriction> facetRestrictions = new HashSet<OWLFacetRestriction>();
  facetRestrictions.add(dataFactory.getOWLFacetRestriction(OWLFacet.MIN_INCLUSIVE,
      getTypedConstant(dataFactory, minInclusive)));
  facetRestrictions.add(dataFactory.getOWLFacetRestriction(OWLFacet.MAX_INCLUSIVE,
      getTypedConstant(dataFactory, maxInclusive)));
  return dataFactory.getOWLDatatypeRestriction(dr, facetRestrictions);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public void visit(OWLDatatypeRestriction node) {
  obj = df.getOWLDatatypeRestriction(dup(node.getDatatype()),
    asList(node.facetRestrictions().map(this::dup)));
}
origin: owlcs/owlapi

@Override
public void visit(OWLDatatypeRestriction node) {
  obj = df.getOWLDatatypeRestriction(dup(node.getDatatype()),
    asList(node.facetRestrictions().map(this::dup)));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public void visit(OWLDatatypeRestriction node) {
  obj = df.getOWLDatatypeRestriction(dup(node.getDatatype()),
    asList(node.facetRestrictions().map(this::dup)));
}
origin: owlcs/owlapi

@Override
public OWLDatatypeRestriction visit(OWLDatatypeRestriction node) {
  return df
    .getOWLDatatypeRestriction(get(node.getDatatype()), list(node.facetRestrictions()));
}
origin: liveontologies/elk-reasoner

@Override
public OWLDatatypeRestriction visit(ElkDatatypeRestriction expression) {
  return owlFactory_.getOWLDatatypeRestriction(
      convert(expression.getDatatype()),
      toFacetRestrictionSet(expression.getFacetRestrictions()));
}
origin: liveontologies/elk-reasoner

@Override
public OWLDatatypeRestriction visit(ElkDatatypeRestriction expression) {
  return owlFactory_.getOWLDatatypeRestriction(
      convert(expression.getDatatype()),
      toFacetRestrictionSet(expression.getFacetRestrictions()));
}
origin: liveontologies/elk-reasoner

@Override
public OWLDatatypeRestriction visit(ElkDatatypeRestriction expression) {
  return owlFactory_.getOWLDatatypeRestriction(
      convert(expression.getDatatype()),
      toFacetRestrictionSet(expression.getFacetRestrictions()));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLDatatypeRestriction visit(OWLDatatypeRestriction node) {
  return df
    .getOWLDatatypeRestriction(get(node.getDatatype()), list(node.facetRestrictions()));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public OWLDatatypeRestriction visit(OWLDatatypeRestriction node) {
  return df
    .getOWLDatatypeRestriction(get(node.getDatatype()), list(node.facetRestrictions()));
}
origin: owlcs/owlapi

@Override
public Object visit(OWLDatatypeRestriction node) {
  return visit(node, () -> df
    .getOWLDatatypeRestriction(t(node.getDatatype()), t(node.facetRestrictions())));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Object visit(OWLDatatypeRestriction node) {
  return visit(node, () -> df
    .getOWLDatatypeRestriction(t(node.getDatatype()), t(node.facetRestrictions())));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Object visit(OWLDatatypeRestriction node) {
  return visit(node, () -> df
    .getOWLDatatypeRestriction(t(node.getDatatype()), t(node.facetRestrictions())));
}
origin: SmartDataAnalytics/DL-Learner

private OWLDataRange asFacet(OWLDataFactory df, Set<Literal> literals){
  //return Boolean datatype because it doesn't make sense to return a facet of Boolean values
  if(getOWLDatatype(df, literals).equals(df.getBooleanOWLDatatype())){
    return df.getBooleanOWLDatatype();
  }
  Literal min = getMin(literals);
  Literal max = getMax(literals);
  
  OWLFacetRestriction minRestriction = df.getOWLFacetRestriction(OWLFacet.MIN_INCLUSIVE, asOWLLiteral(df, min));
  OWLFacetRestriction maxRestriction = df.getOWLFacetRestriction(OWLFacet.MAX_INCLUSIVE, asOWLLiteral(df, max));
  
  return df.getOWLDatatypeRestriction(getOWLDatatype(df, literals), minRestriction, maxRestriction);
}

origin: net.sourceforge.owlapi/owlapi

  protected void endDataRangeElement() throws OWLXMLParserException {
    if (dataRange == null) {
      throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "data range element");
    }
    if (constant == null) {
      throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "typed constant element");
    }
    setDataRange(getOWLDataFactory().getOWLDatatypeRestriction((OWLDatatype) dataRange, OWLFacet.getFacet(facetIRI), constant));


  }
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  protected void endDataRangeElement() throws OWLXMLParserException {
    if (dataRange == null) {
      throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "data range element");
    }
    if (constant == null) {
      throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "typed constant element");
    }
    setDataRange(getOWLDataFactory().getOWLDatatypeRestriction((OWLDatatype) dataRange, OWLFacet.getFacet(facetIRI), constant));


  }
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLDatatypeRestriction

Javadoc

OWLDatatypeRestriction see spec

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
  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • findViewById (Activity)
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Reference (javax.naming)
  • JPanel (javax.swing)
  • Join (org.hibernate.mapping)
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