Class Schemas

java.lang.Object
com.semedy.reasoner.edb.zdb.Schemas

public class Schemas extends Object
Schema and hiearchy information
Author:
angele
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static long
     
    static long
     
    static long
     
    static long
    symbol table
    static long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    build schema and hierarchy information in edb
    boolean
    containsClass(long cls, long module)
    is class contained in module
    gnu.trove.list.TLongList
    getClasses(long property)
    get all classes property is defined for (no inheritance)
    gnu.trove.list.TLongList
    getClasses(long property, long module)
    get all classes property is defined for (no inheritance) in module
    long
    getMaxCardinality(long property)
    get the max cardinality for property
    long
    getMaxCardinality(long property, long module)
    get the max cardinality for property in module
    long
    getMinCardinality(long property)
    get the min cardinality for property
    long
    getMinCardinality(long property, long module)
    get the min cardinality for property in module
    long
    getRange(long property)
    get the range for property
    long
    getRange(long property, long module)
    get the range for property in module
    gnu.trove.set.TLongSet
    getSubclasses(long cls)
    get all sub classes of class cls
    gnu.trove.set.TLongSet
    getSubclasses(long cls, long module)
    get all sub classes of class cls in module
    boolean
    isSubclass(long cls, long supercls)
    is cls a sub-class of supercls
    boolean
    isSubclass(long cls, long supercls, long module)
    is cls a sub-class of supercls in module

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _propertiesCode

      public static long _propertiesCode
      symbol table
    • _minCardinalityCode

      public static long _minCardinalityCode
    • _maxCardinalityCode

      public static long _maxCardinalityCode
    • _rangeCode

      public static long _rangeCode
    • _code1

      public static long _code1
  • Constructor Details

  • Method Details

    • build

      public boolean build() throws IOException, SemReasonerException
      build schema and hierarchy information in edb
      Throws:
      IOException
      SemReasonerException
    • containsClass

      public boolean containsClass(long cls, long module)
      is class contained in module
      Parameters:
      cls -
      module -
      Returns:
    • isSubclass

      public boolean isSubclass(long cls, long supercls, long module)
      is cls a sub-class of supercls in module
      Parameters:
      cls -
      supercls -
      module -
      Returns:
    • isSubclass

      public boolean isSubclass(long cls, long supercls)
      is cls a sub-class of supercls
      Parameters:
      cls -
      supercls -
      module -
      Returns:
    • getSubclasses

      public gnu.trove.set.TLongSet getSubclasses(long cls, long module)
      get all sub classes of class cls in module
      Parameters:
      cls -
      module -
      Returns:
    • getSubclasses

      public gnu.trove.set.TLongSet getSubclasses(long cls)
      get all sub classes of class cls
      Parameters:
      cls -
      Returns:
    • getClasses

      public gnu.trove.list.TLongList getClasses(long property)
      get all classes property is defined for (no inheritance)
      Parameters:
      property -
      Returns:
    • getMinCardinality

      public long getMinCardinality(long property)
      get the min cardinality for property
      Parameters:
      property -
      Returns:
    • getMaxCardinality

      public long getMaxCardinality(long property)
      get the max cardinality for property
      Parameters:
      property -
      Returns:
    • getRange

      public long getRange(long property)
      get the range for property
      Parameters:
      property -
      Returns:
    • getClasses

      public gnu.trove.list.TLongList getClasses(long property, long module)
      get all classes property is defined for (no inheritance) in module
      Parameters:
      property -
      Returns:
    • getMinCardinality

      public long getMinCardinality(long property, long module)
      get the min cardinality for property in module
      Parameters:
      property -
      Returns:
    • getMaxCardinality

      public long getMaxCardinality(long property, long module)
      get the max cardinality for property in module
      Parameters:
      property -
      Returns:
    • getRange

      public long getRange(long property, long module)
      get the range for property in module
      Parameters:
      property -
      Returns: