info.sswap.impl.empire.model
Class ReasoningServiceImpl.PropertyInformation

java.lang.Object
  extended by info.sswap.impl.empire.model.ReasoningServiceImpl.PropertyInformation
Enclosing class:
ReasoningServiceImpl

static class ReasoningServiceImpl.PropertyInformation
extends java.lang.Object

An entry for caching information about a property so that we do not have to query the reasoner repeatedly about properties.

Author:
Blazej Bulka

Field Summary
private  boolean annotation
          Whether a property is mark as an annotation property.
private  java.lang.String range
          A string containing URI of a range of the property (if known), or null
private  ReasoningServiceImpl.PropertyType type
          A type of the property (object/datatype/unknown)
 
Constructor Summary
ReasoningServiceImpl.PropertyInformation(ReasoningServiceImpl.PropertyType type, boolean annotation, java.lang.String range)
          Creates a new property information entry
 
Method Summary
 java.lang.String getRange()
          Gets the range of the property if known
 ReasoningServiceImpl.PropertyType getType()
          Gets the type of the property
 boolean isAnnotation()
          Gets information whether the property is an annotation property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private ReasoningServiceImpl.PropertyType type
A type of the property (object/datatype/unknown)


annotation

private boolean annotation
Whether a property is mark as an annotation property.


range

private java.lang.String range
A string containing URI of a range of the property (if known), or null

Constructor Detail

ReasoningServiceImpl.PropertyInformation

public ReasoningServiceImpl.PropertyInformation(ReasoningServiceImpl.PropertyType type,
                                                boolean annotation,
                                                java.lang.String range)
Creates a new property information entry

Parameters:
type - type of the property
annotation - information whether the property is an annotation property
range - range of the property or null
Method Detail

getType

public ReasoningServiceImpl.PropertyType getType()
Gets the type of the property

Returns:
the type of the property

isAnnotation

public boolean isAnnotation()
Gets information whether the property is an annotation property

Returns:
true if the property is known to be an annotation property, false otherwise

getRange

public java.lang.String getRange()
Gets the range of the property if known

Returns:
string containing the URI of the range (XSD datatype or owl:Class) if a range is known, false otherwise


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.