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


com.hp.hpl.jena.graph.query.test.QueryTestBase
   com.hp.hpl.jena.graph.query.test.AbstractTestQuery

All known Subclasses:   com.hp.hpl.jena.db.test.TestQueryRDB,  com.hp.hpl.jena.mem.faster.test.TestFasterQuery,
AbstractTestQuery
abstract public class AbstractTestQuery extends QueryTestBase (Code)
Abstract tests for graph query, parameterised on getGraph().
author:
   kers

Inner Class :protected static class BangException extends JenaException
Inner Class :protected static class PL extends Expression.Fixed implements PatternLiteral
Inner Class :static class CountingGraph extends WrappedGraph

Field Summary
protected  NodeO
    
protected  QueryQ
    
protected  Graphempty
    
final protected  Node[]justX
    
final protected  Node[]none
    
protected  Graphsingle
    

Constructor Summary
public  AbstractTestQuery(String name)
    

Method Summary
protected  voidaddAnswer(Map result, List bindings, int limit)
    
public  voidassertCount(int expected, String query)
    
public  voidassertCount(int expected, String query, String vars)
    
 CountingGraphbigCountingGraph()
    
public  ExpressioncreateModifiedPattern(String content, String modifiers)
    
public  ExpressioncreateSimplePattern(String p)
    
protected  GraphdataGraph()
    
protected  ExtendedIteratoreb(Graph g, Query q, Node[] nodes)
     Utility.
protected  ListebList(Graph g, Query q, Node[] nodes)
    
protected  SetebSet(Graph g, Query q, Node[] nodes)
    
protected  TripleSorterfiddle(int a, int b, int c)
    
protected  MapgetAnswer(Graph g, TripleSorter sorter)
    
abstract public  GraphgetGraph()
    
public  GraphgetGraphWith(String facts)
    
protected static  SetnodeListSet(String s)
    
 intqueryCount(TripleSorter sort)
    
public  voidsetUp()
    
public static  TestSuitesuite()
    
public  voidtestAtomicTreeQuery()
    
public  voidtestBindingQuery()
    
public  voidtestBoundTypedLiterals()
    
public  voidtestChainedTreeQuery()
    
public  voidtestCloseQuery()
    
public  voidtestCompositeTreeQuery()
    
public  voidtestConstraint()
    
public  voidtestConstraintFour()
    
public  voidtestConstraintThree()
    
public  voidtestDisconnected()
     More of an example than a test, for a query with "disconnected" triples.
public  voidtestEmpty()
    
public  voidtestEmptyIterator()
    
public  voidtestExtractConstraint()
     Test that a PatternStage extracts appropriate parts of a constraint set.
public  voidtestFixedTypedLiterals()
    
public  voidtestGraphConstraints(String title, Expression constraint, String wanted)
    
public  voidtestGraphConstraints()
    
public  voidtestGraphQuery()
    
public  voidtestManyThings()
    
public  voidtestMatchConstraint()
     Test that the MATCHES constraint works.
public  voidtestMismatch()
    
public  voidtestMissingVariable()
     this possible failure mode discovered by Andy when building a fast-path RDQL engine over the graph.query SPI.
public  voidtestMultipleBindings()
    
public  voidtestMultiplePatterns()
    
public  voidtestNodeVariablesA()
    
public  voidtestNodeVariablesB()
    
public  voidtestOneMatch()
    
public  voidtestQueryConstraintUnbound()
     test that unbound constraint variables are handled "nicely".
public  voidtestQueryExceptionCleanlyExits()
    
public  voidtestQueryOptimisation()
    
public  voidtestQueryTripleOrder()
     Test that the default engine does not re-order triples.
public  voidtestRewriteContainsExpression()
    
public  voidtestRewriteEndswithExpression()
    
public  voidtestRewriteEndswithInsensitiveExpression()
    
public  voidtestRewritePreservesCharacterCases()
    
public  voidtestRewriteStartswithExpression()
    
public  voidtestRewriteStartswithInsensitiveExpression()
    
public  voidtestSingleBindings()
    
public  voidtestStringResults()
    
public  voidtestTripleSorting()
     Test that a variety of triple-sorters make no difference to the results of a query over a moderately interesting graph.
public  voidtestTwoGraphs()
    
public  voidtestTwoPatterns()
    
public  voidtestVariableCount()
     test that we can correctly deduce the variable count for some queries.
public  voidtestXXXMatch1()
    
public  voidtestXXXMatch3()
    

Field Detail
O
protected Node O(Code)



Q
protected Query Q(Code)



empty
protected Graph empty(Code)



justX
final protected Node[] justX(Code)



none
final protected Node[] none(Code)



single
protected Graph single(Code)




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




Method Detail
addAnswer
protected void addAnswer(Map result, List bindings, int limit)(Code)



assertCount
public void assertCount(int expected, String query)(Code)



assertCount
public void assertCount(int expected, String query, String vars)(Code)



bigCountingGraph
CountingGraph bigCountingGraph()(Code)



createModifiedPattern
public Expression createModifiedPattern(String content, String modifiers)(Code)



createSimplePattern
public Expression createSimplePattern(String p)(Code)



dataGraph
protected Graph dataGraph()(Code)



eb
protected ExtendedIterator eb(Graph g, Query q, Node[] nodes)(Code)
Utility. Run the query q over the graph g requesting the output variables nodes.



ebList
protected List ebList(Graph g, Query q, Node[] nodes)(Code)



ebSet
protected Set ebSet(Graph g, Query q, Node[] nodes)(Code)



fiddle
protected TripleSorter fiddle(int a, int b, int c)(Code)



getAnswer
protected Map getAnswer(Graph g, TripleSorter sorter)(Code)



getGraph
abstract public Graph getGraph()(Code)



getGraphWith
public Graph getGraphWith(String facts)(Code)



nodeListSet
protected static Set nodeListSet(String s)(Code)



queryCount
int queryCount(TripleSorter sort)(Code)



setUp
public void setUp()(Code)



suite
public static TestSuite suite()(Code)



testAtomicTreeQuery
public void testAtomicTreeQuery()(Code)



testBindingQuery
public void testBindingQuery()(Code)



testBoundTypedLiterals
public void testBoundTypedLiterals()(Code)



testChainedTreeQuery
public void testChainedTreeQuery()(Code)



testCloseQuery
public void testCloseQuery()(Code)



testCompositeTreeQuery
public void testCompositeTreeQuery()(Code)



testConstraint
public void testConstraint()(Code)



testConstraintFour
public void testConstraintFour()(Code)



testConstraintThree
public void testConstraintThree()(Code)



testDisconnected
public void testDisconnected()(Code)
More of an example than a test, for a query with "disconnected" triples.



testEmpty
public void testEmpty()(Code)



testEmptyIterator
public void testEmptyIterator()(Code)



testExtractConstraint
public void testExtractConstraint()(Code)
Test that a PatternStage extracts appropriate parts of a constraint set.



testFixedTypedLiterals
public void testFixedTypedLiterals()(Code)



testGraphConstraints
public void testGraphConstraints(String title, Expression constraint, String wanted)(Code)



testGraphConstraints
public void testGraphConstraints()(Code)



testGraphQuery
public void testGraphQuery()(Code)



testManyThings
public void testManyThings()(Code)



testMatchConstraint
public void testMatchConstraint()(Code)
Test that the MATCHES constraint works.



testMismatch
public void testMismatch()(Code)



testMissingVariable
public void testMissingVariable()(Code)
this possible failure mode discovered by Andy when building a fast-path RDQL engine over the graph.query SPI.
test that we get a sensible result when unbound variables are used in the query result selector.



testMultipleBindings
public void testMultipleBindings()(Code)



testMultiplePatterns
public void testMultiplePatterns()(Code)



testNodeVariablesA
public void testNodeVariablesA()(Code)



testNodeVariablesB
public void testNodeVariablesB()(Code)



testOneMatch
public void testOneMatch()(Code)



testQueryConstraintUnbound
public void testQueryConstraintUnbound()(Code)
test that unbound constraint variables are handled "nicely".



testQueryExceptionCleanlyExits
public void testQueryExceptionCleanlyExits()(Code)



testQueryOptimisation
public void testQueryOptimisation()(Code)



testQueryTripleOrder
public void testQueryTripleOrder()(Code)
Test that the default engine does not re-order triples.



testRewriteContainsExpression
public void testRewriteContainsExpression()(Code)



testRewriteEndswithExpression
public void testRewriteEndswithExpression()(Code)



testRewriteEndswithInsensitiveExpression
public void testRewriteEndswithInsensitiveExpression()(Code)



testRewritePreservesCharacterCases
public void testRewritePreservesCharacterCases()(Code)



testRewriteStartswithExpression
public void testRewriteStartswithExpression()(Code)



testRewriteStartswithInsensitiveExpression
public void testRewriteStartswithInsensitiveExpression()(Code)



testSingleBindings
public void testSingleBindings()(Code)



testStringResults
public void testStringResults()(Code)



testTripleSorting
public void testTripleSorting()(Code)
Test that a variety of triple-sorters make no difference to the results of a query over a moderately interesting graph.



testTwoGraphs
public void testTwoGraphs()(Code)



testTwoPatterns
public void testTwoPatterns()(Code)



testVariableCount
public void testVariableCount()(Code)
test that we can correctly deduce the variable count for some queries.



testXXXMatch1
public void testXXXMatch1()(Code)



testXXXMatch3
public void testXXXMatch3()(Code)



Fields inherited from com.hp.hpl.jena.graph.query.test.QueryTestBase
final protected static Node ANY(Code)(Java Doc)
final protected static Node X(Code)(Java Doc)
final protected static Node Y(Code)(Java Doc)
final protected static Node Z(Code)(Java Doc)
final protected static Mapping emptyMapping(Code)(Java Doc)
protected static Map1 getFirst(Code)(Java Doc)
final protected Node[] justX(Code)(Java Doc)
final protected static IndexValues noIVs(Code)(Java Doc)
protected VariableIndexes noVariables(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.graph.query.test.QueryTestBase
protected Expression areEqual(Node x, Node y)(Code)(Java Doc)
public static Expression asExpression(Node x)(Code)(Java Doc)
protected Expression matches(Node x, Node y)(Code)(Java Doc)
protected Expression notEqual(Node x, Node y)(Code)(Java Doc)
protected Map1 select(int index)(Code)(Java Doc)

www___._j___a__v_a__2__s.com___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.