congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
OWLDataFactory.getOWLDatatype
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.github.galigator.openllet/openllet-owlapi

  @Override
  public OWLDatatype map(final ATermAppl term)
  {
    return _factory.getOWLDatatype(iri(term));
  }
}
origin: owlcs/owlapi

private void translateEquivalentDataRanges(IRI s, IRI p, IRI o) {
  OWLDatatype datatype = df.getOWLDatatype(s);
  OWLDataRange dataRange = dr(o);
  OWLDatatypeDefinitionAxiom def =
    df.getOWLDatatypeDefinitionAxiom(datatype, dataRange, anns());
  add(def);
  consume(s, p, o);
}
origin: owlcs/owlapi

@Override
@Nullable
public OWLDatatype getOWLDatatype(String name) {
  if (dataTypeNames.contains(name)) {
    return df.getOWLDatatype(getIRI(name));
  }
  return null;
}
origin: com.github.ansell.owlapi/owlapi-parsers

private void translateEquivalentDataRanges(IRI subject, IRI predicate, IRI object) {
  OWLDatatype datatype = getDataFactory().getOWLDatatype(subject);
  OWLDataRange dataRange = getConsumer().translateDataRange(object);
  addAxiom(getDataFactory().getOWLDatatypeDefinitionAxiom(datatype, dataRange, getPendingAnnotations()));
  consumeTriple(subject, predicate, object);
}
origin: com.github.ansell.owlapi/owlapi-parsers

final public OWLDatatype DatatypeIRI() throws ParseException {
  IRI iri;
  iri = IRI();
  return dataFactory.getOWLDatatype(iri);
}
origin: net.sourceforge.owlapi/owlapi-gwt-supersource

/**
 * Gets the equivalent OWLDatatype from the given factory.
 * @param factory the OWLDataFactory.  Not {@code null}.
 * @return An {@link org.semanticweb.owlapi.model.OWLDatatype} that has the same IRI as this {@link OWL2Datatype}.  Not {@code null}.
 */
public OWLDatatype getDatatype(OWLDataFactory factory){
  return factory.getOWLDatatype( getIRI() );
}
origin: owlcs/owlapi

  @Override
  public OWLDatatype buildObject() {
    if (pm != null && string != null) {
      return df.getOWLDatatype(getString(), getPM());
    }
    return df.getOWLDatatype(getIRI());
  }
}
origin: com.github.ansell.owlapi/owlapi-parsers

public DefaultEntityChecker() {
  for (XSDVocabulary v : XSDVocabulary.values()) {
    IRI iri = v.getIRI();
    dataTypeNameMap.put(iri.getFragment(), dataFactory.getOWLDatatype(iri));
    dataTypeNameMap.put("xsd:" + iri.getFragment(),
        dataFactory.getOWLDatatype(iri));
  }
}
origin: owlcs/owlapi

private static Map<OWLEntity, IRI> remap(Map<IRI, IRI> iriReplacementMap, OWLDataFactory df) {
  Map<OWLEntity, IRI> map = new HashMap<>();
  iriReplacementMap.forEach((k, v) -> {
    map.put(df.getOWLClass(k), v);
    map.put(df.getOWLObjectProperty(k), v);
    map.put(df.getOWLDataProperty(k), v);
    map.put(df.getOWLNamedIndividual(k), v);
    map.put(df.getOWLDatatype(k), v);
    map.put(df.getOWLAnnotationProperty(k), v);
  });
  return map;
}
origin: net.sourceforge.owlapi/owlapi-distribution

private static Map<OWLEntity, IRI> remap(Map<IRI, IRI> iriReplacementMap, OWLDataFactory df) {
  Map<OWLEntity, IRI> map = new HashMap<>();
  iriReplacementMap.forEach((k, v) -> {
    map.put(df.getOWLClass(k), v);
    map.put(df.getOWLObjectProperty(k), v);
    map.put(df.getOWLDataProperty(k), v);
    map.put(df.getOWLNamedIndividual(k), v);
    map.put(df.getOWLDatatype(k), v);
    map.put(df.getOWLAnnotationProperty(k), v);
  });
  return map;
}
origin: net.sourceforge.owlapi/owlapi-distribution

/**
 * @param arg datatype
 * @return builder
 */
public BuilderLiteral withDatatype(OWL2Datatype arg) {
  return withDatatype(df.getOWLDatatype(arg.getIRI()));
}
origin: edu.stanford.protege/org.protege.owl.server

@Override
public OWLDatatype read(OWLInputStream in) throws IOException {
  IRI iri = (IRI) in.read();
  return in.getOWLDataFactory().getOWLDatatype(iri);
}
origin: owlcs/owlapi

/**
 * @param arg datatype
 * @return builder
 */
public BuilderLiteral withDatatype(OWL2Datatype arg) {
  return withDatatype(df.getOWLDatatype(arg.getIRI()));
}
origin: edu.stanford.protege/org.protege.editor.owl

public Set<OWLDatatype> getBuiltinDatatypes(){
  Set<OWLDatatype> datatypes = new HashSet<OWLDatatype>();
  final OWLDataFactory df = mngr.getOWLDataFactory();
  datatypes.add(df.getTopDatatype());
  for (OWL2Datatype dt : OWL2Datatype.values()) {
    datatypes.add(df.getOWLDatatype(dt.getIRI()));
  }        
  return datatypes;
}
origin: edu.stanford.protege/protege-editor-owl

public Set<OWLDatatype> getBuiltinDatatypes(){
  Set<OWLDatatype> datatypes = new HashSet<>();
  final OWLDataFactory df = mngr.getOWLDataFactory();
  datatypes.add(df.getTopDatatype());
  for (OWL2Datatype dt : OWL2Datatype.values()) {
    datatypes.add(df.getOWLDatatype(dt.getIRI()));
  }        
  return datatypes;
}
origin: protegeproject/protege

public Set<OWLDatatype> getBuiltinDatatypes(){
  Set<OWLDatatype> datatypes = new HashSet<>();
  final OWLDataFactory df = mngr.getOWLDataFactory();
  datatypes.add(df.getTopDatatype());
  for (OWL2Datatype dt : OWL2Datatype.values()) {
    datatypes.add(df.getOWLDatatype(dt.getIRI()));
  }        
  return datatypes;
}
origin: com.hermit-reasoner/org.semanticweb.hermit

protected void axiomatizeTopDataProperty(OWLAxioms axioms) {
  OWLDatatype anonymousConstantsDatatype=m_factory.getOWLDatatype(IRI.create("internal:anonymous-constants"));
  OWLLiteral newConstant=m_factory.getOWLLiteral("internal:constant",anonymousConstantsDatatype);
  OWLDataOneOf oneOfNewConstant=m_factory.getOWLDataOneOf(newConstant);
  OWLDataSomeValuesFrom hasTopNewConstant=m_factory.getOWLDataSomeValuesFrom(m_topDataProperty,oneOfNewConstant);
  axioms.m_conceptInclusions.add(new OWLClassExpression[] { hasTopNewConstant });
}
protected void axiomatizeBottomDataProperty(OWLAxioms axioms) {
origin: owlcs/owlapi

private OWLDatatype getOWLDatatype(String name) {
  OWLDatatype dt = checker.getOWLDatatype(name);
  if (dt == null && dataTypeNames.contains(name)) {
    dt = df.getOWLDatatype(getIRI(name));
  }
  if (dt == null) {
    throw new ExceptionBuilder().withDt().build();
  }
  return dt;
}
origin: owlcs/owlapi

  @Override
  public void handleTriple(IRI s, IRI p, IRI o) {
    if (!isAnon(s)) {
      OWLDatatype dt = df.getOWLDatatype(s);
      add(df.getOWLDeclarationAxiom(dt, anns()));
    }
    addDR(s, true);
  }
}
origin: net.sourceforge.owlapi/owlapi

  public void handleTriple(IRI subject, IRI predicate, IRI object) throws UnloadableImportException {
    if (!getConsumer().isAnonymousNode(subject)) {
      OWLDatatype dt = getDataFactory().getOWLDatatype(subject);
      if (!dt.isBuiltIn()) {
        addAxiom(getDataFactory().getOWLDeclarationAxiom(dt));
      }
    }
    getConsumer().addOWLDatatype(subject);
  }
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLDatatype

Javadoc

Gets an OWLDatatype that has an IRI that is obtained by expanding an abbreviated name using an appropriate prefix mapping. See The OWL 2 Structural Specification for more details.

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,
  • getOWLAnnotation

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 12 Jupyter Notebook Extensions
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