org.openanzo.server.repository.graph
Class RdfMap

java.lang.Object
  extended by org.openanzo.server.repository.graph.RdfMap

public class RdfMap
extends java.lang.Object

Maps the Anzo RDF structures to the Anzo relational database schema. This is a hard coded mapping used by the Query Grounding code ('org.openanzo.model.repository.querybuilder') to dynamically determine which tables and columns to query when looking for statements matching a triple pattern. A couple things complicate the RDF to relational data mapping: - There are significant differences in how Anzo data is represented in RDF and how it is stored - Access control limits what statements are visible to the user performing a query This code builds on both the 'sqlscribe' code (SqlQuery class, etc..) and the query groundings code (SubjectGrounding, PredicateGrounding and ObjectGrounding, etc.. classes).

Author:
Joe Betz, Matthew Roy ( mroy@cambridgesemantics.com )

Nested Class Summary
static class RdfMap.AclHistory
          Grounding and constraint definitions for Acl queries
static class RdfMap.NamedGraphs
          Grounding and constraint definitions for NamedGraph queries
static class RdfMap.RoleHistory
          Grounding and constraint definitions for Role/SubRole queries
static class RdfMap.UserHistory
          Grounding and constraint definitions for User queries
static class RdfMap.UserRoleHistory
          Grounding and constraint definitions for UserRole queries
 
Field Summary
static java.lang.String endVar
          Variable name for hend
static Literal FALSE
          Literal value for FALS
static java.lang.String namedGraphIdVar
          Variable name for NamedGraphId
static java.lang.String startVar
          Variable name for hstart
static java.lang.String tempGraphsName
          Alias name for temporary graph table
static Literal TRUE
          Literal value for TRUE
 
Constructor Summary
RdfMap()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namedGraphIdVar

public static final java.lang.String namedGraphIdVar
Variable name for NamedGraphId

See Also:
Constant Field Values

startVar

public static final java.lang.String startVar
Variable name for hstart

See Also:
Constant Field Values

endVar

public static final java.lang.String endVar
Variable name for hend

See Also:
Constant Field Values

tempGraphsName

public static final java.lang.String tempGraphsName
Alias name for temporary graph table

See Also:
Constant Field Values

TRUE

public static final Literal TRUE
Literal value for TRUE


FALSE

public static final Literal FALSE
Literal value for FALS

Constructor Detail

RdfMap

public RdfMap()


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