Java Doc for AbstractModelSetTest.java in  » Search-Engine » semweb4j » org » ontoware » rdf2go » model » 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 » Search Engine » semweb4j » org.ontoware.rdf2go.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.ontoware.rdf2go.model.AbstractModelSetTest

All known Subclasses:   org.ontoware.rdf2go.model.ModelSetTest,  org.ontoware.rdf2go.model.NotifyingModelSetTest,
AbstractModelSetTest
abstract public class AbstractModelSetTest extends TestCase (Code)
Use this to test implementations of ModelSet. Overwrite the class and implement the "setup" method, initializing modelset and modelfactory.
author:
   voelkel
author:
   sauermann


Field Summary
public static  intTESTGRAPHCOUNT
    
public static  URIa
    
public static  URIb
    
public static  URIc
    
public static  URIdt
    
public static  URIgraphuri1
    
public static  URIgraphuri2
    
 Loggerlog
    
protected  ModelSetmodelset
    
public static  URIobject
    
public static  URIpredicate
    
public static  URIsubject
    

Constructor Summary
public  AbstractModelSetTest()
    
public  AbstractModelSetTest(String arg0)
    

Method Summary
protected  voidaddTestDataToModelSet()
     Add some test data to the modelsets .
public static  ArrayList<T>asArrayListAndClose(ClosableIterator<T> it)
    
abstract public  ModelFactorygetModelFactory()
    
public  voidsetUp()
    
public  voidtearDown()
    
public  voidtestAddDataFromFileByCopying()
    
public  voidtestAddDataFromFileByCopyingMoreDetail()
    
public  voidtestAddModel()
     AbstractModelSetTest does not seem to test ModelSet.addModel (RDF2Go 4.4.1-rc1), so we do it here.
public  voidtestAddRemovePatternsWithNull()
    
public  voidtestContainsModel()
    
public  voidtestContainsStatements()
    
public  voidtestCopyModelSets()
    
public  voidtestCreateStatement()
    
public  voidtestCreateURI()
    
public  voidtestDeleteStatement()
    
public  voidtestDeleteTriplePatternInAllGraphs()
     Gunnar: need a function that queries and removes triples from all contexts...
public  voidtestFindStatements()
    
public  voidtestFindStatements2()
    
public  voidtestGetDefaultModel()
     The default model as defined in the SPARQL semantics.
public  voidtestGetModel()
    
public  voidtestGetModelURIs()
    
public  voidtestGetModels()
    
public  voidtestGetUnderlyingModelSetImplementation()
    
public  voidtestLoadDataIntoDefaultModel()
    
public  voidtestOpenClose()
    
public  voidtestRDF2GoBug()
    
public  voidtestRDF2GoBug2()
    
public  voidtestRDF2GoBugAddRemove()
    
public  voidtestRTGO_39()
    
public  voidtestReadFromInputStream()
    
public  voidtestReadFromInputStreamIntoDefaultModel()
    
public  voidtestReadFromInputStreamIntoNamedModel()
    
public  voidtestReadFromInputStreamSyntax()
    
public  voidtestReadFromReader()
    
public  voidtestReadFromReaderSyntax()
    
public  voidtestRemoveAll()
    
public  voidtestRemoveModel()
    
public  voidtestRemoveModel2()
    
public  voidtestSize()
    
public  voidtestSparqlAsk()
    
public  voidtestSparqlConstruct()
    
public  voidtestSparqlDescribe()
    
public  voidtestSparqlSelect()
    
public  voidtestSparqlSelectFOAF()
    
public  voidtestWriteToOutputStream()
    
public  voidtestWriteToOutputStreamSyntax()
    
public  voidtestWriteToWriter()
    
public  voidtestWriteToWriterSyntax()
    

Field Detail
TESTGRAPHCOUNT
public static int TESTGRAPHCOUNT(Code)
there are two graphs in the default test data



a
public static URI a(Code)



b
public static URI b(Code)



c
public static URI c(Code)



dt
public static URI dt(Code)



graphuri1
public static URI graphuri1(Code)



graphuri2
public static URI graphuri2(Code)



log
Logger log(Code)



modelset
protected ModelSet modelset(Code)



object
public static URI object(Code)



predicate
public static URI predicate(Code)



subject
public static URI subject(Code)




Constructor Detail
AbstractModelSetTest
public AbstractModelSetTest()(Code)



AbstractModelSetTest
public AbstractModelSetTest(String arg0)(Code)

Parameters:
  arg0 -




Method Detail
addTestDataToModelSet
protected void addTestDataToModelSet() throws Exception(Code)
Add some test data to the modelsets . Test data will use graphuri1, graphuri2



asArrayListAndClose
public static ArrayList<T> asArrayListAndClose(ClosableIterator<T> it)(Code)



getModelFactory
abstract public ModelFactory getModelFactory()(Code)
a fresh ModelSet, to be tested



setUp
public void setUp() throws Exception(Code)



tearDown
public void tearDown() throws Exception(Code)



testAddDataFromFileByCopying
public void testAddDataFromFileByCopying() throws Exception(Code)



testAddDataFromFileByCopyingMoreDetail
public void testAddDataFromFileByCopyingMoreDetail() throws Exception(Code)
above test sometimes failed, here is a trace into the details that can happen
throws:
  Exception -



testAddModel
public void testAddModel()(Code)
AbstractModelSetTest does not seem to test ModelSet.addModel (RDF2Go 4.4.1-rc1), so we do it here.



testAddRemovePatternsWithNull
public void testAddRemovePatternsWithNull()(Code)



testContainsModel
public void testContainsModel() throws ModelRuntimeException(Code)



testContainsStatements
public void testContainsStatements() throws ModelRuntimeException(Code)



testCopyModelSets
public void testCopyModelSets() throws Exception(Code)



testCreateStatement
public void testCreateStatement()(Code)



testCreateURI
public void testCreateURI() throws ModelRuntimeException(Code)



testDeleteStatement
public void testDeleteStatement()(Code)



testDeleteTriplePatternInAllGraphs
public void testDeleteTriplePatternInAllGraphs() throws ModelRuntimeException, Exception(Code)
Gunnar: need a function that queries and removes triples from all contexts... i.e. remove all (null, rdf:type, null) from ALL contexts... Max: So basically this would mean handling of Triple-patterns not just triples, in the add/remove methods. Ok.
throws:
  Exception -
throws:
  ModelRuntimeException -



testFindStatements
public void testFindStatements() throws ModelRuntimeException(Code)
test find with (c,x,y,z) on contained model



testFindStatements2
public void testFindStatements2() throws ModelRuntimeException(Code)
Test find with (*,x,y,z) on modelset
throws:
  ModelRuntimeException -



testGetDefaultModel
public void testGetDefaultModel()(Code)
The default model as defined in the SPARQL semantics. Each data set consisting of Models/Graphs has one default graph.



testGetModel
public void testGetModel() throws Exception(Code)



testGetModelURIs
public void testGetModelURIs() throws Exception(Code)



testGetModels
public void testGetModels() throws Exception(Code)



testGetUnderlyingModelSetImplementation
public void testGetUnderlyingModelSetImplementation()(Code)



testLoadDataIntoDefaultModel
public void testLoadDataIntoDefaultModel() throws Exception(Code)



testOpenClose
public void testOpenClose()(Code)



testRDF2GoBug
public void testRDF2GoBug()(Code)



testRDF2GoBug2
public void testRDF2GoBug2()(Code)



testRDF2GoBugAddRemove
public void testRDF2GoBugAddRemove()(Code)



testRTGO_39
public void testRTGO_39()(Code)



testReadFromInputStream
public void testReadFromInputStream()(Code)



testReadFromInputStreamIntoDefaultModel
public void testReadFromInputStreamIntoDefaultModel() throws Exception(Code)



testReadFromInputStreamIntoNamedModel
public void testReadFromInputStreamIntoNamedModel() throws Exception(Code)



testReadFromInputStreamSyntax
public void testReadFromInputStreamSyntax()(Code)



testReadFromReader
public void testReadFromReader()(Code)



testReadFromReaderSyntax
public void testReadFromReaderSyntax()(Code)



testRemoveAll
public void testRemoveAll() throws ModelRuntimeException(Code)



testRemoveModel
public void testRemoveModel() throws ModelRuntimeException(Code)



testRemoveModel2
public void testRemoveModel2() throws ModelRuntimeException, IOException(Code)



testSize
public void testSize() throws Exception(Code)



testSparqlAsk
public void testSparqlAsk()(Code)



testSparqlConstruct
public void testSparqlConstruct() throws Exception(Code)



testSparqlDescribe
public void testSparqlDescribe()(Code)



testSparqlSelect
public void testSparqlSelect() throws ModelRuntimeException(Code)



testSparqlSelectFOAF
public void testSparqlSelectFOAF() throws ModelRuntimeException, IOException(Code)



testWriteToOutputStream
public void testWriteToOutputStream() throws Exception(Code)



testWriteToOutputStreamSyntax
public void testWriteToOutputStreamSyntax() throws Exception(Code)



testWriteToWriter
public void testWriteToWriter() throws Exception(Code)



testWriteToWriterSyntax
public void testWriteToWriterSyntax()(Code)



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