Java Doc for AbstractTestQuery1.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » db » test » 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.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.hp.hpl.jena.graph.test.GraphTestBase
   com.hp.hpl.jena.db.test.AbstractTestQuery1

All known Subclasses:   com.hp.hpl.jena.db.test.TestQuery1,
AbstractTestQuery1
abstract public class AbstractTestQuery1 extends GraphTestBase (Code)
Abstract tests for graph query, parameterised on getGraph().
author:
   kers


Field Summary
final  NodeO1
    
final  NodeOapp
    
final  NodeObigboss
    
final  NodeOboss
    
final  NodeOfemale
    
final  NodeOgenesis
    
final  NodeOgrunt
    
final  NodeOliteral
    
final  NodeOmale
    
final  NodeOresource
    
final  NodeOshane
    
final  NodePcard
    
final  NodePcardmax
    
final  NodePdept
    
final  NodePmgr
    
final  NodePname
    
final  NodePrange
    
final  NodePsex
    
final  NodePtitle
    
final  NodeS1
    
final  NodeV1
    
final  NodeV2
    
final  NodeV3
    
final  NodeV4
    
final  NodeV5
    
final protected  StringlongPrefix
    
protected  String[]statementList
    
static  intstmtCnt
    

Constructor Summary
public  AbstractTestQuery1(String name)
    

Method Summary
protected  Graphconvenient()
    
protected  StringexpandLong(String s)
    
protected  GraphfetchGraph(ReificationStyle style)
    
abstract public  GraphgetGraph()
    
abstract public  GraphgetGraph(ReificationStyle style)
    
protected  voidloadGraph(Graph g)
    
protected  NodemakeObject(String u)
    
protected  NodemakeResource(String u)
    
protected  TriplenextTriple(String k, StringTokenizer st)
    
protected  intqueryResultCount(ExtendedIterator it)
     Answer the number of elements in the iterator; each such element should be a List (and we make sure size() works on it, don't know why).
public  voidsetUp()
    
protected  Graphstandard()
    
public static  TestSuitesuite()
    
protected  voidtearDown()
    
public  voidtest0()
    
public  voidtest1()
     Q1: get names of managers of female grunts; this has a joining variable.
public  voidtest2()
    
public  voidtest3a()
    
public  voidtest3b()
     Q3: get all properties of female grunts with male managers this has a predicate variable.
public  voidtest4()
     Q4: get all single-valued, required, literal properties of the bigboss similar to Q3 in terms of stages.
public  voidtest5()
     Q5: list the name and gender of martin's boss, where the pmgr property is determined by a query). similar to Q3 in terms of stages.
public  voidtest6()
     Q6: list the reified subjects, predicates and objects.
public  voidtest7()
     Q7: list the reified predicates about the bigboss.
public  voidtest8()
     Q8: list the reification quads for the bigboss. should return nothing for minimal, convenient reification.

Field Detail
O1
final Node O1(Code)



Oapp
final Node Oapp(Code)



Obigboss
final Node Obigboss(Code)



Oboss
final Node Oboss(Code)



Ofemale
final Node Ofemale(Code)



Ogenesis
final Node Ogenesis(Code)



Ogrunt
final Node Ogrunt(Code)



Oliteral
final Node Oliteral(Code)



Omale
final Node Omale(Code)



Oresource
final Node Oresource(Code)



Oshane
final Node Oshane(Code)



Pcard
final Node Pcard(Code)



Pcardmax
final Node Pcardmax(Code)



Pdept
final Node Pdept(Code)



Pmgr
final Node Pmgr(Code)



Pname
final Node Pname(Code)



Prange
final Node Prange(Code)



Psex
final Node Psex(Code)



Ptitle
final Node Ptitle(Code)



S1
final Node S1(Code)



V1
final Node V1(Code)



V2
final Node V2(Code)



V3
final Node V3(Code)



V4
final Node V4(Code)



V5
final Node V5(Code)



longPrefix
final protected String longPrefix(Code)
The lots-of-dots prefix to use to make things long



statementList
protected String[] statementList(Code)



stmtCnt
static int stmtCnt(Code)




Constructor Detail
AbstractTestQuery1
public AbstractTestQuery1(String name)(Code)




Method Detail
convenient
protected Graph convenient()(Code)



expandLong
protected String expandLong(String s)(Code)



fetchGraph
protected Graph fetchGraph(ReificationStyle style)(Code)



getGraph
abstract public Graph getGraph()(Code)



getGraph
abstract public Graph getGraph(ReificationStyle style)(Code)



loadGraph
protected void loadGraph(Graph g)(Code)



makeObject
protected Node makeObject(String u)(Code)



makeResource
protected Node makeResource(String u)(Code)



nextTriple
protected Triple nextTriple(String k, StringTokenizer st)(Code)



queryResultCount
protected int queryResultCount(ExtendedIterator it)(Code)
Answer the number of elements in the iterator; each such element should be a List (and we make sure size() works on it, don't know why).
Parameters:
  it - the iterator to run down the number of elements in that iterator



setUp
public void setUp() throws Exception(Code)



standard
protected Graph standard()(Code)



suite
public static TestSuite suite()(Code)



tearDown
protected void tearDown() throws Exception(Code)



test0
public void test0()(Code)



test1
public void test1()(Code)
Q1: get names of managers of female grunts; this has a joining variable.



test2
public void test2()(Code)
Q2: get names of female grunts with female managers



test3a
public void test3a()(Code)
Q3.0: get all properties of the bigboss



test3b
public void test3b()(Code)
Q3: get all properties of female grunts with male managers this has a predicate variable. for standard reification, it requires a multi-stage query. for convenient, minimal, it can be done as a single stage (since reification is not queried).



test4
public void test4()(Code)
Q4: get all single-valued, required, literal properties of the bigboss similar to Q3 in terms of stages.



test5
public void test5()(Code)
Q5: list the name and gender of martin's boss, where the pmgr property is determined by a query). similar to Q3 in terms of stages.



test6
public void test6()(Code)
Q6: list the reified subjects, predicates and objects. should return nothing for minimal, convenient reification.



test7
public void test7()(Code)
Q7: list the reified predicates about the bigboss. should return nothing for minimal, convenient reification.



test8
public void test8()(Code)
Q8: list the reification quads for the bigboss. should return nothing for minimal, convenient reification.



Fields inherited from com.hp.hpl.jena.graph.test.GraphTestBase
protected static int bnc(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.graph.test.GraphTestBase
protected static void appendNode(StringBuffer b, Map bnodes, Node n)(Code)(Java Doc)
public Set arrayToSet(Object[] A)(Code)(Java Doc)
public static void assertContains(String name, String s, Graph g)(Code)(Java Doc)
public static void assertContainsAll(String name, Graph g, String s)(Code)(Java Doc)
public static void assertEqualsTemplate(String title, Graph g, String template)(Code)(Java Doc)
public static void assertIsomorphic(String title, Graph expected, Graph got)(Code)(Java Doc)
public static void assertIsomorphic(Graph expected, Graph got)(Code)(Java Doc)
public static void assertOmits(String name, Graph g, String s)(Code)(Java Doc)
public static void assertOmitsAll(String name, Graph g, String s)(Code)(Java Doc)
public static boolean contains(Graph g, String fact)(Code)(Java Doc)
public static Graph getGraph(Object wrap, Class graphClass, ReificationStyle style)(Code)(Java Doc)
protected static Graph getReificationTriples(Reifier r)(Code)(Java Doc)
public static Graph graphAdd(Graph g, String s)(Code)(Java Doc)
public static Graph graphWith(String s)(Code)(Java Doc)
public static List iteratorToList(Iterator it)(Code)(Java Doc)
public static Set iteratorToSet(Iterator it)(Code)(Java Doc)
public static Graph newGraph()(Code)(Java Doc)
public static String nice(Graph g, Map bnodes)(Code)(Java Doc)
protected static String nice(Node n)(Code)(Java Doc)
protected static void niceTriple(StringBuffer b, Map bnodes, Triple t)(Code)(Java Doc)
public static Node node(String x)(Code)(Java Doc)
public static Node[] nodeArray(String items)(Code)(Java Doc)
public static List nodeList(String items)(Code)(Java Doc)
public Set nodeSet(String nodes)(Code)(Java Doc)
public void testContains(Graph g, Triple[] triples)(Code)(Java Doc)
public void testContains(Graph g, List triples)(Code)(Java Doc)
public void testContains(Graph g, Iterator it)(Code)(Java Doc)
public void testContains(Graph g, Graph other)(Code)(Java Doc)
public void testOmits(Graph g, Triple[] triples)(Code)(Java Doc)
public void testOmits(Graph g, List triples)(Code)(Java Doc)
public void testOmits(Graph g, Iterator it)(Code)(Java Doc)
public void testOmits(Graph g, Graph other)(Code)(Java Doc)
public static Triple triple(String fact)(Code)(Java Doc)
public static Triple triple(PrefixMapping pm, String fact)(Code)(Java Doc)
public static Triple[] tripleArray(String facts)(Code)(Java Doc)
public static Set tripleSet(String facts)(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.