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


java.lang.Object
   org.ontoware.rdf2go.model.impl.AbstractModelWriter
      org.ontoware.rdf2go.model.impl.AbstractModelAddRemove
         org.ontoware.rdf2go.model.impl.AbstractModelRemovePatterns
            org.ontoware.rdf2go.model.impl.AbstractModel

All known Subclasses:   org.ontoware.rdf2go.model.impl.AbstractLockingModel,  org.ontoware.rdf2go.impl.jena24.ModelImplJena24,  org.ontoware.rdf2go.model.impl.DirtyAbstractModel,  org.ontoware.rdf2go.model.impl.DelegatingModel,
AbstractModel
abstract public class AbstractModel extends AbstractModelRemovePatterns implements Model(Code)
adapter that maps the rdf2go model functions to a smaller subset of methods
author:
   mvo


Field Summary
protected  Objectmodel
     The underlying implementation.


Method Summary
public  voidaddAll(Iterator<? extends Statement> other)
    
public  voidaddStatement(Resource subject, URI predicate, String literal)
    
public  voidaddStatement(Resource subject, URI predicate, String literal, String languageTag)
    
public  voidaddStatement(Resource subject, URI predicate, String literal, URI datatypeURI)
    
public  voidaddStatement(Statement statement)
    
public  voidaddStatement(String subjectURIString, URI predicate, String literal)
    
public  voidaddStatement(String subjectURIString, URI predicate, String literal, String languageTag)
    
public  voidaddStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI)
    
protected  voidassertModel()
     This method checks if the model is properly initialized and i.e.
public  voidclose()
    
public  voidcommit()
    
public  booleancontains(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object)
     Convenience method.
public  booleancontains(ResourceOrVariable subject, UriOrVariable predicate, String plainLiteral)
     Convenience method.
public  booleancontains(Statement s)
     Convenience method.
public  longcountStatements(TriplePattern pattern)
     Very inefficient.
public  DatatypeLiteralcreateDatatypeLiteral(String literal, URI datatypeURI)
    
public  LanguageTagLiteralcreateLanguageTagLiteral(String literal, String languageTag)
    
public  PlainLiteralcreatePlainLiteral(String literal)
    
public  BlankNodecreateReficationOf(Statement statement)
    
public  ResourcecreateReficationOf(Statement statement, Resource resource)
    
public  StatementcreateStatement(Resource subject, URI predicate, Node object)
    
public  TriplePatterncreateTriplePattern(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object)
    
public  URIcreateURI(String uriString)
    
public  voiddeleteReification(Resource reificationResource)
    
public  ClosableIterator<Statement>findStatements(TriplePattern triplepattern)
     Convenience method.
public  Collection<Resource>getAllReificationsOf(Statement statement)
    
public  DiffgetDiff(Iterator<? extends Statement> other)
     Computes a Diff by using HashSets.
public  ObjectgetProperty(URI propertyURI)
    
public  ObjectgetUnderlyingModelImplementation()
    
public  booleanhasReifications(Statement statement)
    
public  booleanisEmpty()
    
public  booleanisOpen()
    
public  URInewRandomUniqueURI()
    
public  voidopen()
     Open connection to defined, unterlying implementation.
public  ClosableIterable<Statement>queryConstruct(String query, String querylanguage)
    
public  QueryResultTablequerySelect(String query, String querylanguage)
    
public  voidreadFrom(InputStream in, Syntax syntax)
     Throws an exception if the syntax is not RDF/XML.
public  voidreadFrom(InputStream in, Syntax syntax, URL baseURI)
     Throws an exception if the syntax is not RDF/XML.
public  voidreadFrom(Reader reader, Syntax syntax, URL baseURI)
     Throws an exception if the syntax is not RDF/XML.
public  voidremoveAll()
    
public  voidremoveAll(Iterator<? extends Statement> statements)
    
public  voidremoveStatement(Resource subject, URI predicate, String literal)
    
public  voidremoveStatement(Resource subject, URI predicate, String literal, String languageTag)
    
public  voidremoveStatement(Resource subject, URI predicate, String literal, URI datatypeURI)
    
public  voidremoveStatement(Statement statement)
    
public  voidremoveStatement(String subjectURIString, URI predicate, String literal)
    
public  voidremoveStatement(String subjectURIString, URI predicate, String literal, String languageTag)
    
public  voidremoveStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI)
    
public  voidremoveStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object)
    
public  voidremoveStatements(TriplePattern triplePattern)
    
public  Stringserialize(Syntax syntax)
     Convenience method.
public  voidsetAutocommit(boolean autocommit)
    
public  voidsetProperty(URI propertyURI, Object value)
     Add an arbitrary property, this will not be persisted and is only available at runtime.
public  longsize()
     This is a really slow implementation, please override.
public  booleansparqlAsk(String query)
    
public synchronized  voidupdate(DiffReader diff)
     Implementations with support for transactions should use them instead of this implementation.
public  voidwriteTo(OutputStream out, Syntax syntax)
    

Field Detail
model
protected Object model(Code)
The underlying implementation.





Method Detail
addAll
public void addAll(Iterator<? extends Statement> other) throws ModelRuntimeException(Code)



addStatement
public void addStatement(Resource subject, URI predicate, String literal) throws ModelRuntimeException(Code)



addStatement
public void addStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)



addStatement
public void addStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)



addStatement
public void addStatement(Statement statement) throws ModelRuntimeException(Code)



addStatement
public void addStatement(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException(Code)



addStatement
public void addStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)



addStatement
public void addStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)



assertModel
protected void assertModel()(Code)
This method checks if the model is properly initialized and i.e. not closed.



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



commit
public void commit()(Code)
OVERWRITE ME



contains
public boolean contains(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException(Code)
Convenience method. Might have faster implementations. Overwrite me!



contains
public boolean contains(ResourceOrVariable subject, UriOrVariable predicate, String plainLiteral) throws ModelRuntimeException(Code)
Convenience method.



contains
public boolean contains(Statement s) throws ModelRuntimeException(Code)
Convenience method.



countStatements
public long countStatements(TriplePattern pattern) throws ModelRuntimeException(Code)
Very inefficient. Please override.



createDatatypeLiteral
public DatatypeLiteral createDatatypeLiteral(String literal, URI datatypeURI) throws ModelRuntimeException(Code)



createLanguageTagLiteral
public LanguageTagLiteral createLanguageTagLiteral(String literal, String languageTag) throws ModelRuntimeException(Code)



createPlainLiteral
public PlainLiteral createPlainLiteral(String literal) throws ModelRuntimeException(Code)



createReficationOf
public BlankNode createReficationOf(Statement statement)(Code)



createReficationOf
public Resource createReficationOf(Statement statement, Resource resource)(Code)



createStatement
public Statement createStatement(Resource subject, URI predicate, Node object)(Code)



createTriplePattern
public TriplePattern createTriplePattern(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object)(Code)



createURI
public URI createURI(String uriString) throws ModelRuntimeException(Code)



deleteReification
public void deleteReification(Resource reificationResource)(Code)



findStatements
public ClosableIterator<Statement> findStatements(TriplePattern triplepattern) throws ModelRuntimeException(Code)
Convenience method.



getAllReificationsOf
public Collection<Resource> getAllReificationsOf(Statement statement)(Code)



getDiff
public Diff getDiff(Iterator<? extends Statement> other) throws ModelRuntimeException(Code)
Computes a Diff by using HashSets.



getProperty
public Object getProperty(URI propertyURI)(Code)
Note: This is a property of the model, not an RDF property
Parameters:
  propertyURI - stored property value for this model or null



getUnderlyingModelImplementation
public Object getUnderlyingModelImplementation()(Code)



hasReifications
public boolean hasReifications(Statement statement)(Code)



isEmpty
public boolean isEmpty()(Code)
sublcasses should override this method for performance



isOpen
public boolean isOpen()(Code)



newRandomUniqueURI
public URI newRandomUniqueURI()(Code)



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



queryConstruct
public ClosableIterable<Statement> queryConstruct(String query, String querylanguage) throws QueryLanguageNotSupportedException, ModelRuntimeException(Code)
Throws an exception if the syntax is not SPARQL



querySelect
public QueryResultTable querySelect(String query, String querylanguage) throws QueryLanguageNotSupportedException, ModelRuntimeException(Code)
Throws an exception if the syntax is not SPARQL



readFrom
public void readFrom(InputStream in, Syntax syntax) throws IOException, ModelRuntimeException(Code)
Throws an exception if the syntax is not RDF/XML. Subclasses are encouraged to overwrite this.



readFrom
public void readFrom(InputStream in, Syntax syntax, URL baseURI) throws IOException, ModelRuntimeException(Code)
Throws an exception if the syntax is not RDF/XML. Set baseURI to the empty string. Subclasses are encouraged to overwrite this.



readFrom
public void readFrom(Reader reader, Syntax syntax, URL baseURI) throws ModelRuntimeException, IOException(Code)
Throws an exception if the syntax is not RDF/XML. Sets base URI to the empty string (default). Subclasses are encouraged to overwrite this.
throws:
  IOException -
throws:
  ModelRuntimeException -



removeAll
public void removeAll() throws ModelRuntimeException(Code)



removeAll
public void removeAll(Iterator<? extends Statement> statements)(Code)



removeStatement
public void removeStatement(Resource subject, URI predicate, String literal) throws ModelRuntimeException(Code)



removeStatement
public void removeStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)



removeStatement
public void removeStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)



removeStatement
public void removeStatement(Statement statement) throws ModelRuntimeException(Code)



removeStatement
public void removeStatement(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException(Code)



removeStatement
public void removeStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)



removeStatement
public void removeStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)



removeStatements
public void removeStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException(Code)



removeStatements
public void removeStatements(TriplePattern triplePattern) throws ModelRuntimeException(Code)



serialize
public String serialize(Syntax syntax) throws SyntaxNotSupportedException(Code)
Convenience method.



setAutocommit
public void setAutocommit(boolean autocommit)(Code)
OVERWRITE ME



setProperty
public void setProperty(URI propertyURI, Object value)(Code)
Add an arbitrary property, this will not be persisted and is only available at runtime. This allows Model to serve as a central data model in larger applications (like SemVersion.ontoware.org)
Parameters:
  propertyURI -
Parameters:
  value -



size
public long size() throws ModelRuntimeException(Code)
This is a really slow implementation, please override.



sparqlAsk
public boolean sparqlAsk(String query) throws ModelRuntimeException, MalformedQueryException(Code)



update
public synchronized void update(DiffReader diff) throws ModelRuntimeException(Code)
Implementations with support for transactions should use them instead of this implementation.



writeTo
public void writeTo(OutputStream out, Syntax syntax) throws IOException, ModelRuntimeException(Code)
Throws an exception if the syntax is not known



Methods inherited from org.ontoware.rdf2go.model.impl.AbstractModelRemovePatterns
public void removeStatements(TriplePattern triplePattern) throws ModelRuntimeException(Code)(Java Doc)
public void removeStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException(Code)(Java Doc)

Methods inherited from org.ontoware.rdf2go.model.impl.AbstractModelAddRemove
abstract public void addStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException(Code)(Java Doc)
public void removeAll(Iterator<? extends Statement> other) throws ModelRuntimeException(Code)(Java Doc)
public void removeAll() throws ModelRuntimeException(Code)(Java Doc)
public void removeStatement(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException(Code)(Java Doc)
public void removeStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)(Java Doc)
public void removeStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)(Java Doc)
public void removeStatement(Resource subject, URI predicate, String literal) throws ModelRuntimeException(Code)(Java Doc)
public void removeStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)(Java Doc)
public void removeStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)(Java Doc)
public void removeStatement(Statement statement) throws ModelRuntimeException(Code)(Java Doc)
abstract public void removeStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException(Code)(Java Doc)
public void update(DiffReader diff) throws ModelRuntimeException(Code)(Java Doc)
public void update(Diff diff) throws ModelRuntimeException(Code)(Java Doc)

Methods inherited from org.ontoware.rdf2go.model.impl.AbstractModelWriter
public void addAll(Iterator<? extends Statement> other) throws ModelRuntimeException(Code)(Java Doc)
public void addStatement(Resource subject, URI predicate, String literal) throws ModelRuntimeException(Code)(Java Doc)
public void addStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)(Java Doc)
public void addStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)(Java Doc)
public void addStatement(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException(Code)(Java Doc)
public void addStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)(Java Doc)
public void addStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)(Java Doc)
public void addStatement(Statement statement) throws ModelRuntimeException(Code)(Java Doc)
abstract public void addStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException(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.