Tabnine Logo
OWLDataFactory.getOWLFacetRestriction
Code IndexAdd Tabnine to your IDE (free)

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

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

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

  @Override
  public OWLFacetRestriction getOWLObject() {
    return getOWLDataFactory().getOWLFacetRestriction(facet, constant);
  }
}
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

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: SmartDataAnalytics/DL-Learner

private OWLDatatypeRestriction asDatatypeRestriction(OWLDataProperty dp, OWLLiteral value, OWLFacet facet) {
  OWLDatatype datatype = reasoner.getDatatype(dp);
  OWLDatatypeRestriction restriction = df.getOWLDatatypeRestriction(
      datatype,
      Collections.singleton(df.getOWLFacetRestriction(
          facet,
          value)));
  return restriction;
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  @Nullable
  public OWLFacetRestriction translate(IRI firstObject) {
    for (OWLFacet facet : OWLFacet.values()) {
      OWLLiteral lit = consumer.getLiteralObject(firstObject, facet.getIRI(), true);
      if (lit != null) {
        return consumer.getDataFactory().getOWLFacetRestriction(facet, lit);
      }
    }
    return null;
  }
}
origin: net.sourceforge.owlapi/owlapi-parsers

  @Override
  @Nullable
  public OWLFacetRestriction translate(IRI firstObject) {
    for (OWLFacet facet : OWLFacet.values()) {
      OWLLiteral lit = consumer.getLiteralObject(firstObject, facet.getIRI(), true);
      if (lit != null) {
        return consumer.getDataFactory().getOWLFacetRestriction(facet, lit);
      }
    }
    return null;
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

  @Override
  @Nullable
  public OWLFacetRestriction translate(IRI firstObject) {
    for (OWLFacet facet : OWLFacet.values()) {
      OWLLiteral lit = consumer.getLiteralObject(firstObject, facet.getIRI(), true);
      if (lit != null) {
        return consumer.getDataFactory().getOWLFacetRestriction(facet, lit);
      }
    }
    return null;
  }
}
origin: owlcs/owlapi

  @Override
  @Nullable
  public OWLFacetRestriction translate(IRI firstObject) {
    for (OWLFacet facet : OWLFacet.values()) {
      OWLLiteral lit = consumer.getLiteralObject(firstObject, facet.getIRI(), true);
      if (lit != null) {
        return consumer.getDataFactory().getOWLFacetRestriction(facet, lit);
      }
    }
    return null;
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

 final public OWLFacetRestriction DataRangeFacetRestriction() throws ParseException {IRI iri;
  OWLLiteral con;
  iri = IRI();
  con = Literal();
return df.getOWLFacetRestriction(OWLFacet.getFacetByShortName(iri.getFragment()), con);
}

origin: net.sourceforge.owlapi/owlapi-parsers

 final public OWLFacetRestriction DataRangeFacetRestriction() throws ParseException {IRI iri;
  OWLLiteral con;
  iri = IRI();
  con = Literal();
return df.getOWLFacetRestriction(OWLFacet.getFacetByShortName(iri.getFragment()), con);
}

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

final public OWLFacetRestriction DataRangeFacetRestriction() throws ParseException {
  IRI iri;
  OWLLiteral con;
  iri = IRI();
  con = Literal();
  OWLFacet v = OWLFacet.getFacetByShortName(iri.getFragment());
  return dataFactory.getOWLFacetRestriction(v, con);
}
origin: net.sourceforge.owlapi/owlapi

final public OWLFacetRestriction DataRangeFacetRestriction() throws ParseException {
 IRI iri;
 OWLLiteral con;
 iri = IRI();
 con = Literal();
   OWLFacet v = OWLFacet.getFacetByShortName(iri.getFragment());
   {if (true) return dataFactory.getOWLFacetRestriction(v, con);}
 throw new Error("Missing return statement in function");
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  public OWLFacetRestriction translate(IRI firstObject) {
    for(OWLFacet facet : OWLFacet.values()) {
      OWLLiteral lit = consumer.getLiteralObject(firstObject, facet.getIRI(), true);
      if(lit != null) {
        return consumer.getDataFactory().getOWLFacetRestriction(facet, lit);
      }
    }
    return null;
  }
}
origin: net.sourceforge.owlapi/owlapi

  public OWLFacetRestriction translate(IRI firstObject) {
    for(OWLFacet facet : OWLFacet.values()) {
      OWLLiteral lit = consumer.getLiteralObject(firstObject, facet.getIRI(), true);
      if(lit != null) {
        return consumer.getDataFactory().getOWLFacetRestriction(facet, lit);
      }
    }
    return null;
  }
}
origin: owlcs/owlapi

 final public OWLFacetRestriction DataRangeFacetRestriction() throws ParseException {IRI iri;
  OWLLiteral con;
  iri = IRI();
  con = Literal();
return df.getOWLFacetRestriction(OWLFacet.getFacetByShortName(iri.getFragment()), con);
}

origin: owlcs/owlapi

@Override
public Object visit(OWLFacetRestriction node) {
  return visit(node,
    () -> df.getOWLFacetRestriction(t(node.getFacet()), t(node.getFacetValue())));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Object visit(OWLFacetRestriction node) {
  return visit(node,
    () -> df.getOWLFacetRestriction(t(node.getFacet()), t(node.getFacetValue())));
}
origin: edu.stanford.protege/org.protege.owl.server

@Override
public Object read(OWLInputStream in) throws IOException {
  int ordinal = IOUtils.readInt(in.getInputStream());
  OWLFacet facet = OWLFacet.values()[ordinal];
  OWLLiteral literal = (OWLLiteral) in.read();
  return in.getOWLDataFactory().getOWLFacetRestriction(facet, literal);
}
origin: SmartDataAnalytics/DL-Learner

private OWLDataRange asMaxFacet(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 max = getMax(literals);
  
  OWLFacetRestriction maxRestriction = df.getOWLFacetRestriction(OWLFacet.MAX_INCLUSIVE, asOWLLiteral(df, max));
  
  return df.getOWLDatatypeRestriction(getOWLDatatype(df, literals), maxRestriction);
}

origin: SmartDataAnalytics/DL-Learner

public void setSingleRestrictionTarget(OWLFacet facetType, String solution) {
  this.target = df.getOWLDataSomeValuesFrom(
      df.getOWLDataProperty(IRI.create(prefix + "value")),
      df.getOWLDatatypeRestriction(
          restrictionType,
          df.getOWLFacetRestriction(
              facetType,
              df.getOWLLiteral(solution, restrictionType))));
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLFacetRestriction

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

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • Menu (java.awt)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Join (org.hibernate.mapping)
  • Top PhpStorm 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