org.openanzo.server.repository.querybuilder
Interface ObjectGrounding

All Known Subinterfaces:
ObjectGrounding.FixedValue, ObjectGrounding.RdbColumn
All Known Implementing Classes:
LiteralGrounding, ObjectGrounding.FixedRdfValue

public interface ObjectGrounding

Abstract grounding for RDF objects (either resource or literal) to relational database columns and fixed values for use in the query builder framework. Each ObjectGrounding implementation should provide a grounding for one of the following: a column type in the relational database, such as a 'dateTime' column or a column able to store RDF resource URIs. a fixed value such as the RDF type URI of whatever the subject of the statement is.

Author:
Joe Betz
See Also:
ObjectGrounding.RdbColumn, ObjectGrounding.FixedValue

Nested Class Summary
static class ObjectGrounding.FixedRdfValue
          Implementation of the FixedValue grounding
static interface ObjectGrounding.FixedValue
          Object grounding for an RDF resources with a fixed value.
static interface ObjectGrounding.RdbColumn
          Interface for ObjectGroundings that can: convert to and from database values and RDF objects.
 
Field Summary
static ObjectGrounding.RdbColumn RdfValue
          Maps an RDB column storing an Anzo database encoded node (either Resource or Literal) to a Anzo Value.
static ObjectGrounding.RdbColumn Resource
          Maps an RDF column storing a uri to an Anzo Resource.
 
Method Summary
 boolean isValidObject(org.openrdf.model.Value value)
          Returns true if the given RDF value is compatible with the column type of the ObjectGrounding instance.
 

Field Detail

RdfValue

static final ObjectGrounding.RdbColumn RdfValue
Maps an RDB column storing an Anzo database encoded node (either Resource or Literal) to a Anzo Value. This map should be avoided where it is possible to use a LiteralGrounding or ObjectGrounding.Resource.


Resource

static final ObjectGrounding.RdbColumn Resource
Maps an RDF column storing a uri to an Anzo Resource.

Method Detail

isValidObject

boolean isValidObject(org.openrdf.model.Value value)
Returns true if the given RDF value is compatible with the column type of the ObjectGrounding instance.

Parameters:
value - value to determine compatibility
Returns:
true if the given RDF value is compatible with the column type of the ObjectGrounding instance


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.