Java Doc for SpecializedGraphReifier_RDB.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » db » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.db.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.hp.hpl.jena.db.impl.SpecializedGraphBase
      com.hp.hpl.jena.db.impl.SpecializedGraphReifier_RDB

SpecializedGraphReifier_RDB
public class SpecializedGraphReifier_RDB extends SpecializedGraphBase implements SpecializedGraphReifier(Code)

author:
   hkuno
version:
   $Version$
version:
   TripleStoreGraph is an abstract superclass for TripleStoreGraph
version:
   implementations. By "triple store," we mean that the subjects, predicate
version:
   and object URI's are stored in a single collection (denormalized).


Field Summary
public  DBPropLSetm_dbPropLSet
    
public  PSet_ReifStore_RDBm_pset
    
public  PSet_ReifStore_RDBm_reif
    
public  IDBIDmy_GID
    

Constructor Summary
 SpecializedGraphReifier_RDB(DBPropLSet lProp, IPSet pSet, Integer dbGraphID)
     Constructor Create a new instance of a TripleStore graph.
public  SpecializedGraphReifier_RDB(IPSet pSet, Integer dbGraphID)
    

Method Summary
public  voidadd(Node n, Triple t, CompletionFlag complete)
    
public  voidadd(Graph g, CompletionFlag complete)
     Attempt to add all the triples from a graph to the specialized graph Caution - this call changes the graph passed in, deleting from it each triple that is successfully added. Node that when calling add, if complete is true, then the entire graph was added successfully and the graph g will be empty upon return.
public  voidadd(Triple frag, CompletionFlag complete)
    
public  voidadd(List triples, CompletionFlag complete)
    
public  voidclear()
    
public  voidclose()
    
public  booleancontains(Node n, Triple t, CompletionFlag complete)
    
public  booleancontains(Triple t, CompletionFlag complete)
     Tests if a triple is contained in the specialized graph.
Parameters:
  t - is the triple to be tested
Parameters:
  complete - is true if the graph can guarantee that no other specialized graph could hold any matching triples.
public  voiddelete(Node n, Triple t, CompletionFlag complete)
    
public  voiddelete(Triple frag, CompletionFlag complete)
    
public  voiddelete(List triples, CompletionFlag complete)
    
public  ExtendedIteratorfind(TripleMatch t, CompletionFlag complete)
    
public  ExtendedIteratorfindReifiedNodes(Triple t, CompletionFlag complete)
    
public  TriplefindReifiedTriple(Node n, CompletionFlag complete)
    
public  ExtendedIteratorfindReifiedTriples(Node n, CompletionFlag complete)
     Find all the triples corresponding to a given reified node. In a perfect world, there would only ever be one, but when a user calls add(Triple) there is nothing in RDF that prevents them from adding several subjects,predicates or objects for the same statement. The resulting Triples may be incomplete, in which case some of the nodes may be Node_ANY. For example, if an application had previously done: add( new Triple( a, rdf.subject A )) and add( new Triple( a, rdf.object B )) and add( new Triple( a, rdf.object B2 )) Then the result of findReifiedTriple(a, flag) will be an iterator containing Triple(A, ANY, B) and Triple(ANY, ANY, B2).
Parameters:
  n - is the Node for which we are querying.
Parameters:
  complete - is true if we know we've returned all the triples which may exist.
protected  voidfragCompact(Node stmtURI)
    
public  DBPropLSetgetDBPropLSet()
    
public  intgetGraphId()
    
public  IPSetgetPSet()
    
static  booleanisReifProp(Node_URI p)
    
protected  TriplerowToFrag(Node stmtURI, Triple row)
    
public  charsubsumes(Triple pattern, int reifBehavior)
    
public  inttripleCount()
    

Field Detail
m_dbPropLSet
public DBPropLSet m_dbPropLSet(Code)
caches a copy of LSet properties



m_pset
public PSet_ReifStore_RDB m_pset(Code)
holds PSet



m_reif
public PSet_ReifStore_RDB m_reif(Code)



my_GID
public IDBID my_GID(Code)
holds ID of graph in database (defaults to "0")




Constructor Detail
SpecializedGraphReifier_RDB
SpecializedGraphReifier_RDB(DBPropLSet lProp, IPSet pSet, Integer dbGraphID)(Code)
Constructor Create a new instance of a TripleStore graph.



SpecializedGraphReifier_RDB
public SpecializedGraphReifier_RDB(IPSet pSet, Integer dbGraphID)(Code)
Constructor Create a new instance of a TripleStore graph, taking DBPropLSet and a PSet as arguments




Method Detail
add
public void add(Node n, Triple t, CompletionFlag complete) throws CannotReifyException(Code)



add
public void add(Graph g, CompletionFlag complete)(Code)
Attempt to add all the triples from a graph to the specialized graph Caution - this call changes the graph passed in, deleting from it each triple that is successfully added. Node that when calling add, if complete is true, then the entire graph was added successfully and the graph g will be empty upon return. If complete is false, then some triples in the graph could not be added. Those triples remain in g after the call returns. If the triple can't be stored for any reason other than incompatability (for example, a lack of disk space) then the implemenation should throw a runtime exception.
Parameters:
  g - is a graph containing triples to be added
Parameters:
  complete - is true if a subsequent call to contains(triple) will return true for any triple in g.



add
public void add(Triple frag, CompletionFlag complete) throws AlreadyReifiedException(Code)



add
public void add(List triples, CompletionFlag complete)(Code)



clear
public void clear()(Code)



close
public void close()(Code)



contains
public boolean contains(Node n, Triple t, CompletionFlag complete)(Code)



contains
public boolean contains(Triple t, CompletionFlag complete)(Code)
Tests if a triple is contained in the specialized graph.
Parameters:
  t - is the triple to be tested
Parameters:
  complete - is true if the graph can guarantee that no other specialized graph could hold any matching triples. boolean result to indicate if the triple was contained



delete
public void delete(Node n, Triple t, CompletionFlag complete)(Code)



delete
public void delete(Triple frag, CompletionFlag complete)(Code)



delete
public void delete(List triples, CompletionFlag complete)(Code)



find
public ExtendedIterator find(TripleMatch t, CompletionFlag complete)(Code)



findReifiedNodes
public ExtendedIterator findReifiedNodes(Triple t, CompletionFlag complete)(Code)



findReifiedTriple
public Triple findReifiedTriple(Node n, CompletionFlag complete)(Code)



findReifiedTriples
public ExtendedIterator findReifiedTriples(Node n, CompletionFlag complete)(Code)
Find all the triples corresponding to a given reified node. In a perfect world, there would only ever be one, but when a user calls add(Triple) there is nothing in RDF that prevents them from adding several subjects,predicates or objects for the same statement. The resulting Triples may be incomplete, in which case some of the nodes may be Node_ANY. For example, if an application had previously done: add( new Triple( a, rdf.subject A )) and add( new Triple( a, rdf.object B )) and add( new Triple( a, rdf.object B2 )) Then the result of findReifiedTriple(a, flag) will be an iterator containing Triple(A, ANY, B) and Triple(ANY, ANY, B2).
Parameters:
  n - is the Node for which we are querying.
Parameters:
  complete - is true if we know we've returned all the triples which may exist. ExtendedIterator.



fragCompact
protected void fragCompact(Node stmtURI)(Code)



getDBPropLSet
public DBPropLSet getDBPropLSet()(Code)



getGraphId
public int getGraphId()(Code)



getPSet
public IPSet getPSet()(Code)



isReifProp
static boolean isReifProp(Node_URI p)(Code)



rowToFrag
protected Triple rowToFrag(Node stmtURI, Triple row)(Code)



subsumes
public char subsumes(Triple pattern, int reifBehavior)(Code)



tripleCount
public int tripleCount()(Code)



Methods inherited from com.hp.hpl.jena.db.impl.SpecializedGraphBase
public ExtendedIterator find(Node s, Node p, Node o, CompletionFlag complete)(Code)(Java Doc)
public CompletionFlag newComplete()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.