Tabnine Logo
ClassifiedTBox.dataRangesDAG
Code IndexAdd Tabnine to your IDE (free)

How to use
dataRangesDAG
method
in
it.unibz.inf.ontop.spec.ontology.ClassifiedTBox

Best Java code snippets using it.unibz.inf.ontop.spec.ontology.ClassifiedTBox.dataRangesDAG (Showing top 4 results out of 315)

origin: ontop/ontop

private ImmutableMap<IRI, Datatype> getDescendentNodesPartialMap(ClassifiedTBox reasoner, DataRangeExpression node,
                                    Equivalences<DataRangeExpression> nodeSet) {
  if (node instanceof Datatype) {
    return reasoner.dataRangesDAG().getSub(nodeSet).stream()
        .map(Equivalences::getRepresentative)
        .filter(d -> d != node)
        .map(this::getPredicateIRI)
        .filter(Optional::isPresent)
        .collect(ImmutableCollectors.toMap(
            Optional::get,
            d -> (Datatype) node
        ));
  }
  return ImmutableMap.of();
}
origin: it.unibz.inf.ontop/ontop-mapping-core

private ImmutableMap<Predicate, Datatype> getDescendentNodesPartialMap(ClassifiedTBox reasoner, DataRangeExpression node,
                                    Equivalences<DataRangeExpression> nodeSet) {
  if (node instanceof Datatype) {
    return reasoner.dataRangesDAG().getSub(nodeSet).stream()
        .map(Equivalences::getRepresentative)
        .filter(d -> d != node)
        .map(this::getPredicate)
        .filter(Optional::isPresent)
        .collect(ImmutableCollectors.toMap(
            Optional::get,
            d -> (Datatype) node
        ));
  }
  return ImmutableMap.of();
}
origin: ontop/ontop

/**
 * Produces a map from datatypeProperty to corresponding datatype according to the ontology (the datatype may
 * be inferred).
 * This is a rewriting of method:
 * it.unibz.inf.ontop.owlrefplatform.core.mappingprocessing.MappingDataTypeRepair#getDataTypeFromOntology
 * from Ontop v 1.18.1
 */
private ImmutableMultimap<IRI, Datatype> computeDataTypeMap(ClassifiedTBox reasoner) {
  // TODO: switch to guava > 2.1, and replace by Streams.stream(iterable)
  return StreamSupport.stream(reasoner.dataRangesDAG().spliterator(), false)
      .flatMap(n -> getPartialPredicateToDatatypeMap(n, reasoner).entrySet().stream())
      .collect(ImmutableCollectors.toMultimap(
          e -> e.getKey(),
          Map.Entry::getValue));
}
origin: it.unibz.inf.ontop/ontop-mapping-core

/**
 * Produces a map from datatypeProperty to corresponding datatype according to the ontology (the datatype may
 * be inferred).
 * This is a rewriting of method:
 * it.unibz.inf.ontop.owlrefplatform.core.mappingprocessing.MappingDataTypeRepair#getDataTypeFromOntology
 * from Ontop v 1.18.1
 */
private ImmutableMultimap<String, Datatype> computeDataTypeMap(ClassifiedTBox reasoner) {
  // TODO: switch to guava > 2.1, and replace by Streams.stream(iterable)
  return StreamSupport.stream(reasoner.dataRangesDAG().spliterator(), false)
      .flatMap(n -> getPartialPredicateToDatatypeMap(n, reasoner).entrySet().stream())
      .collect(ImmutableCollectors.toMultimap(
          e -> e.getKey().getName(),
          Map.Entry::getValue));
}
it.unibz.inf.ontop.spec.ontologyClassifiedTBoxdataRangesDAG

Javadoc

datatypes and data property ranges

Popular methods of ClassifiedTBox

  • classes
    classes
  • classesDAG
  • dataProperties
    data properties
  • dataPropertiesDAG
  • objectProperties
    object properties
  • objectPropertiesDAG
  • disjointClasses
  • disjointDataProperties
  • disjointObjectProperties
  • functionalDataProperties
  • functionalObjectProperties
  • functionalObjectProperties

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for Android Studio
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