Source Code Cross Referenced for ModelAddRemove.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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * LICENSE INFORMATION
003:         * Copyright 2005-2007 by FZI (http://www.fzi.de).
004:         * Licensed under a BSD license (http://www.opensource.org/licenses/bsd-license.php)
005:         * <OWNER> = Max Völkel
006:         * <ORGANIZATION> = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe, Germany
007:         * <YEAR> = 2007
008:         * 
009:         * Project information at http://semweb4j.org/rdf2go
010:         */
011:        package org.ontoware.rdf2go.model;
012:
013:        import java.util.Iterator;
014:
015:        import org.ontoware.aifbcommons.collection.ClosableIterable;
016:        import org.ontoware.rdf2go.exception.ModelRuntimeException;
017:        import org.ontoware.rdf2go.model.node.Node;
018:        import org.ontoware.rdf2go.model.node.Resource;
019:        import org.ontoware.rdf2go.model.node.URI;
020:
021:        /**
022:         * Can remove statements and apply diffs in one atomic operation.
023:         * @author voelkel
024:         */
025:        public interface ModelAddRemove extends ClosableIterable<Statement>,
026:                ModelWriter, Lockable {
027:
028:            //////////////
029:            // diffing
030:
031:            /**
032:             * Apply the changes given by this diff <emph>in one atomic operation</emph>
033:             * 
034:             * Implementations must check that all statements to be removed are still in
035:             * the Model. Otherwise an exception is thrown.
036:             * 
037:             * First all triples to be removed are removed, then triples to be added are added.
038:             * 
039:             * @param diff
040:             * @throws ModelRuntimeException
041:             */
042:            void update(DiffReader diff) throws ModelRuntimeException;
043:
044:            /**
045:             * @param statements
046:             * @return a Diff between this model and the statements given in the iterator
047:             * @throws ModelRuntimeException
048:             */
049:            Diff getDiff(Iterator<? extends Statement> statements)
050:                    throws ModelRuntimeException;
051:
052:            /**
053:             * Removes all statements from this model.
054:             * 
055:             * @throws ModelRuntimeException
056:             */
057:            void removeAll() throws ModelRuntimeException;
058:
059:            /**
060:             * Removes all statements contained in 'other' from this model =
061:             * 'difference'
062:             * 
063:             * @param other
064:             *            another RDF2GO model
065:             * @throws ModelRuntimeException
066:             */
067:            void removeAll(Iterator<? extends Statement> statements)
068:                    throws ModelRuntimeException;
069:
070:            ///////////////////
071:            // remove
072:
073:            /**
074:             * remove a (subject, property ,object)-statement from the model
075:             * 
076:             * @param subject
077:             *            URI or Object (= blankNode)
078:             * @param predicate
079:             * @param object
080:             *            URI or String (=plainLiteral) or BlankNode (=blankNode) or
081:             *            TypedLiteral or LanguageTagLiteral
082:             * @throws ModelRuntimeException
083:             */
084:            void removeStatement(Resource subject, URI predicate, Node object)
085:                    throws ModelRuntimeException;
086:
087:            void removeStatement(Resource subject, URI predicate, String literal)
088:                    throws ModelRuntimeException;
089:
090:            /**
091:             * remove a (subject, property ,literal, language tag)-statement from the
092:             * model
093:             * 
094:             * @param subject
095:             * @param predicate
096:             * @param literal
097:             * @param languageTag
098:             * @throws ModelRuntimeException
099:             */
100:            void removeStatement(Resource subject, URI predicate,
101:                    String literal, String languageTag)
102:                    throws ModelRuntimeException;
103:
104:            /**
105:             * remove a (subject, property ,literal, datatype)-statement from the model
106:             * 
107:             * datatype often is an uri for a xml schema datatype (xsd)
108:             * 
109:             * @param subject
110:             * @param predicate
111:             * @param literal
112:             * @param datatypeURI
113:             * @throws ModelRuntimeException
114:             */
115:            void removeStatement(Resource subject, URI predicate,
116:                    String literal, URI datatypeURI)
117:                    throws ModelRuntimeException;
118:
119:            /**
120:             * remove a rdf2go-statement from the model
121:             * 
122:             * @param statement
123:             * @throws ModelRuntimeException
124:             */
125:            void removeStatement(Statement statement)
126:                    throws ModelRuntimeException;
127:
128:            void removeStatement(String subjectURIString, URI predicate,
129:                    String literal) throws ModelRuntimeException;
130:
131:            /**
132:             * remove a (subject, property ,literal, language tag)-statement from the
133:             * model
134:             * 
135:             * @param subject
136:             * @param predicate
137:             * @param literal
138:             * @param languageTag
139:             * @throws ModelRuntimeException
140:             */
141:            void removeStatement(String subjectURIString, URI predicate,
142:                    String literal, String languageTag)
143:                    throws ModelRuntimeException;
144:
145:            /**
146:             * remove a (subject, property ,literal, datatype)-statement from the model
147:             * 
148:             * datatype often is an uri for a xml schema datatype (xsd)
149:             * 
150:             * @param subject
151:             * @param predicate
152:             * @param literal
153:             * @param datatypeURI
154:             * @throws ModelRuntimeException
155:             */
156:            void removeStatement(String subjectURIString, URI predicate,
157:                    String literal, URI datatypeURI)
158:                    throws ModelRuntimeException;
159:
160:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.