Java Doc for ModelSet.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.ModelSet

All known Subclasses:   org.ontoware.rdf2go.model.impl.DelegatingModelSet,  org.ontoware.rdf2go.model.impl.AbstractModelSetImpl,
ModelSet
public interface ModelSet extends Sparqlable,ModelSetIO,FindableModelSet,ModelSetAddRemove,ModelValueFactory,Commitable,ReificationSupport(Code)
A ModelSet is like a Graph Data Set in SPARQL. It contains a number of named graphs (Models), which might be empty. Additionally, one special unnamed model, the 'Default Model' belongs to a ModelSet. ModelSet offers a number of methods that make it behave like a quad store, however, when e.g. removing all statements with a certain context, the model named with that context still remains in the ModelSet.

ModelSet can be read from a named graph aware serialization such as TRIG or TRIX using the read/write methods. If you read a serialization that supports only one graph (like RDF/XML), a default model will be created.

The context URI of the default modell is 'null'.
author:
   max
author:
   sauermann




Method Summary
 booleanaddModel(Model model)
     Adds a model to this ModelSet.
 voidclose()
    
 booleancontainsModel(URI contextURI)
    
Parameters:
  contextURI - true if a Model (NamedGraph) named 'contextURI' is known.
 StatementcreateStatement(URI context, Resource subject, URI predicate, Node object)
     Creates a statement with a context URI.
 URIcreateURI(String uriString)
     Creates an RDF2Go URI.
 voiddump()
     Print the whole content of this ModelSet to System.out.
 ModelgetDefaultModel()
     The default model is used when the modelset is loaded from a serialization that has no context.
 ModelgetModel(URI contextURI)
     Get the Model with the passed URI.
 ClosableIterator<URI>getModelURIs()
    
 ClosableIterator<Model>getModels()
    
 ObjectgetUnderlyingModelSetImplementation()
     the native implementation (e.g.
 booleanisEmpty()
     true if all models in this ModelSet contain zero statements.
 booleanisOpen()
    
 voidopen()
    
 voidremoveAll()
     Removes all models, which is not the same as removing all statements from all models in this ModelSet.
 booleanremoveModel(URI contextURI)
     Removes the Model (NamedGraph) denoted by contextURI from this modelset.
 longsize()
     The number of explicit statements.



Method Detail
addModel
boolean addModel(Model model)(Code)
Adds a model to this ModelSet. Creating the named-graph if needed, adding the triples to it if not. This method might be much quicker than addAll(model.iterator()) depending on the implementation.
Parameters:
  model - true if successful



close
void close()(Code)
Close connection to defined, unterlying implementation



containsModel
boolean containsModel(URI contextURI)(Code)

Parameters:
  contextURI - true if a Model (NamedGraph) named 'contextURI' is known. Themodel might be empty. Some implementations don't manage modelsexplicitly, here empty models cna never exist.



createStatement
Statement createStatement(URI context, Resource subject, URI predicate, Node object)(Code)
Creates a statement with a context URI.
Parameters:
  context -
Parameters:
  subject -
Parameters:
  predicate -
Parameters:
  object -



createURI
URI createURI(String uriString) throws ModelRuntimeException(Code)
Creates an RDF2Go URI. This allows a user to create a model via 'getModel( URI )'.
Parameters:
  uriString - an RDF2Go URI
throws:
  ModelRuntimeException - if URI has not a valid URI fomat - according to the adapter



dump
void dump()(Code)
Print the whole content of this ModelSet to System.out.



getDefaultModel
Model getDefaultModel()(Code)
The default model is used when the modelset is loaded from a serialization that has no context. The default model has a context of 'null' the default model. It has to be isOpen() == true.



getModel
Model getModel(URI contextURI)(Code)
Get the Model with the passed URI. If the model does not exist yet, an empty model will be created and returned. Note that the returned model is tied to this modelset, and any changes in the model will be reflected here.
Parameters:
  contextURI - the URI of the context. This is the same as the name of thenamed graph. the model identified by this context. May have a size of 0, if nodata was added to it yet. Never returns null. It has to be isOpen() == true.



getModelURIs
ClosableIterator<URI> getModelURIs()(Code)
an iterator over all URIs used as model URIs.For some implementations: While you read the iterator you may not WRITEto the models.



getModels
ClosableIterator<Model> getModels()(Code)
an Interator over all models within this ModelSet.Some models might be empty.Since 4.4.10: Each model has to be isOpen() == true.For some implementations: While you read the iterator you may not WRITEto the models.



getUnderlyingModelSetImplementation
Object getUnderlyingModelSetImplementation()(Code)
the native implementation (e.g. a Jena Model). Using this methodbreaks strict triple store independence, but exposes the fullpower and reduces API dependence. This method is part ofthe main API.



isEmpty
boolean isEmpty()(Code)
true if all models in this ModelSet contain zero statements. Thismethod might be faster than calling size() == 0 on each model.Note: This method can return isEmpty == true, even if theModelSet contains a number of models.



isOpen
boolean isOpen()(Code)
true if ModelSet is open



open
void open()(Code)
Open connection to defined, unterlying implementation



removeAll
void removeAll() throws ModelRuntimeException(Code)
Removes all models, which is not the same as removing all statements from all models in this ModelSet.
throws:
  ModelRuntimeException -



removeModel
boolean removeModel(URI contextURI)(Code)
Removes the Model (NamedGraph) denoted by contextURI from this modelset. If the model contains statements, they are deleted.
Parameters:
  contextURI - true if successful



size
long size() throws ModelRuntimeException(Code)
The number of explicit statements. Statements that are inferred e.g. using backward-chaining are per definition not in this number, and also some inferred stateemtns may or may be not part of ths size, depending on the implementation of the model. If a new triple is added to the model, the size must increase. the number of statements in the modelset.
throws:
  ModelRuntimeException -



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