Class DatatypeReasonerImpl

  • All Implemented Interfaces:
    DatatypeReasoner

    public class DatatypeReasonerImpl
    extends java.lang.Object
    implements DatatypeReasoner

    Title: Datatype Reasoner Implementation

    Description: Default implementation of interface DatatypeReasoner

    Copyright: Copyright (c) 2009

    Company: Clark & Parsia, LLC.

    Author:
    Mike Smith
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsAtLeast​(int n, java.util.Collection<openllet.aterm.ATermAppl> ranges)
      Check that the intersection of a collection of _data ranges contains a minimum number of elements.
      boolean declare​(openllet.aterm.ATermAppl name)
      Declare a named datatype.
      boolean define​(openllet.aterm.ATermAppl name, openllet.aterm.ATermAppl datarange)
      Name a _data range (see OWL 2 DatatypeDefinition)
      openllet.aterm.ATermAppl getCanonicalRepresentation​(openllet.aterm.ATermAppl literal)
      Get the canonical representation of a literal.
      Datatype<?> getDatatype​(openllet.aterm.ATermAppl uri)
      Get the datatype identified by a uri
      openllet.aterm.ATermAppl getDefinition​(openllet.aterm.ATermAppl name)
      Returns the definition for the given datatype name if it is defined, or null otherwise.
      openllet.aterm.ATermAppl getLiteral​(java.lang.Object value)
      Get the canonical ATermAppl literal representation for a value space object
      java.lang.Object getValue​(openllet.aterm.ATermAppl literal)
      Get the Java object representation of the _data value.
      boolean isDeclared​(openllet.aterm.ATermAppl name)
      Check if a specific datatype or named _data range has been declared.
      boolean isDefined​(openllet.aterm.ATermAppl name)
      Check if a specific datatype or named _data range can be supported by the datatype reasoner.
      boolean isSatisfiable​(java.util.Collection<openllet.aterm.ATermAppl> dataranges)
      Shorthand for DatatypeReasoner.isSatisfiable(Collection, Object) where value == null.
      boolean isSatisfiable​(java.util.Collection<openllet.aterm.ATermAppl> dataranges, java.lang.Object value)
      Check the _data ranges on a single literal _node are satisfiable (independent of other _nodes).
      boolean isSatisfiable​(java.util.Set<Literal> nodes, java.util.Map<Literal,​java.util.Set<Literal>> neqs)
      Check that the _data ranges and inequalities asserted on a collection of literal _nodes are satisfiable.
      java.util.Collection<openllet.aterm.ATermAppl> listDataRanges()  
      boolean validLiteral​(openllet.aterm.ATermAppl typedLiteral)
      Check if a typed literal is valid (i.e., it is in the lexical space for its datatype)
      java.util.Iterator<?> valueIterator​(java.util.Collection<openllet.aterm.ATermAppl> dataranges)
      Get an iterator for the values of a finite datarange
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait