Source Code Cross Referenced for ValueFactory.java in  » RSS-RDF » sesame » org » openrdf » 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 » RSS RDF » sesame » org.openrdf.model 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2007.
003:         *
004:         * Licensed under the Aduna BSD-style license.
005:         */
006:        package org.openrdf.model;
007:
008:        import javax.xml.datatype.XMLGregorianCalendar;
009:
010:        /**
011:         * A factory for creating URIs, blank nodes, literals and statements.
012:         * 
013:         * @author Arjohn Kampman
014:         */
015:        public interface ValueFactory {
016:
017:            /**
018:             * Creates a new URI from the supplied string-representation.
019:             * 
020:             * @param uri
021:             *        A string-representation of a URI.
022:             * @return An object representing the URI.
023:             * @throws IlllegalArgumentException
024:             *         If the supplied string does not resolve to a legal (absolute) URI.
025:             */
026:            public URI createURI(String uri);
027:
028:            /**
029:             * Creates a new URI from the supplied namespace and local name. Calling this
030:             * method is funtionally equivalent to calling
031:             * {@link #createURI(String) createURI(namespace+localName)}, but allows the
032:             * ValueFactory to reuse supplied namespace and local name strings whenever
033:             * possible. Note that the values returned by {@link URI#getNamespace()} and
034:             * {@link URI#getLocalName()} are not necessarily the same as the values that
035:             * are supplied to this method.
036:             * 
037:             * @param namespace
038:             *        The URI's namespace.
039:             * @param localName
040:             *        The URI's local name.
041:             * @throws IllegalArgumentException
042:             *         If the supplied namespace and localname do not resolve to a legal
043:             *         (absolute) URI.
044:             */
045:            public URI createURI(String namespace, String localName);
046:
047:            /**
048:             * Creates a new bNode.
049:             * 
050:             * @return An object representing the bNode.
051:             */
052:            public BNode createBNode();
053:
054:            /**
055:             * Creates a new blank node with the given node identifier.
056:             * 
057:             * @param nodeID
058:             *        The blank node identifier.
059:             * @return An object representing the blank node.
060:             */
061:            public BNode createBNode(String nodeID);
062:
063:            /**
064:             * Creates a new literal with the supplied label.
065:             * 
066:             * @param label
067:             *        The literal's label.
068:             */
069:            public Literal createLiteral(String label);
070:
071:            /**
072:             * Creates a new literal with the supplied label and language attribute.
073:             * 
074:             * @param label
075:             *        The literal's label.
076:             * @param language
077:             *        The literal's language attribute, or <tt>null</tt> if the literal
078:             *        doesn't have a language.
079:             */
080:            public Literal createLiteral(String label, String language);
081:
082:            /**
083:             * Creates a new literal with the supplied label and datatype.
084:             * 
085:             * @param label
086:             *        The literal's label.
087:             * @param datatype
088:             *        The literal's datatype, or <tt>null</tt> if the literal doesn't
089:             *        have a datatype.
090:             */
091:            public Literal createLiteral(String label, URI datatype);
092:
093:            /**
094:             * Creates a new <tt>xsd:boolean</tt>-typed literal representing the
095:             * specified value.
096:             * 
097:             * @param value
098:             *        The value for the literal.
099:             * @return An <tt>xsd:boolean</tt>-typed literal for the specified value.
100:             */
101:            public Literal createLiteral(boolean value);
102:
103:            /**
104:             * Creates a new <tt>xsd:byte</tt>-typed literal representing the
105:             * specified value.
106:             * 
107:             * @param value
108:             *        The value for the literal.
109:             * @return An <tt>xsd:byte</tt>-typed literal for the specified value.
110:             */
111:            public Literal createLiteral(byte value);
112:
113:            /**
114:             * Creates a new <tt>xsd:short</tt>-typed literal representing the
115:             * specified value.
116:             * 
117:             * @param value
118:             *        The value for the literal.
119:             * @return An <tt>xsd:short</tt>-typed literal for the specified value.
120:             */
121:            public Literal createLiteral(short value);
122:
123:            /**
124:             * Creates a new <tt>xsd:int</tt>-typed literal representing the specified
125:             * value.
126:             * 
127:             * @param value
128:             *        The value for the literal.
129:             * @return An <tt>xsd:int</tt>-typed literal for the specified value.
130:             */
131:            public Literal createLiteral(int value);
132:
133:            /**
134:             * Creates a new <tt>xsd:long</tt>-typed literal representing the
135:             * specified value.
136:             * 
137:             * @param value
138:             *        The value for the literal.
139:             * @return An <tt>xsd:long</tt>-typed literal for the specified value.
140:             */
141:            public Literal createLiteral(long value);
142:
143:            /**
144:             * Creates a new <tt>xsd:float</tt>-typed literal representing the
145:             * specified value.
146:             * 
147:             * @param value
148:             *        The value for the literal.
149:             * @return An <tt>xsd:float</tt>-typed literal for the specified value.
150:             */
151:            public Literal createLiteral(float value);
152:
153:            /**
154:             * Creates a new <tt>xsd:double</tt>-typed literal representing the
155:             * specified value.
156:             * 
157:             * @param value
158:             *        The value for the literal.
159:             * @return An <tt>xsd:double</tt>-typed literal for the specified value.
160:             */
161:            public Literal createLiteral(double value);
162:
163:            /**
164:             * Creates a new literal representing the specified calendar that is typed
165:             * using the appropriate XML Schema date/time datatype.
166:             * 
167:             * @param calendar
168:             *        The value for the literal.
169:             * @return An typed literal for the specified calendar.
170:             */
171:            public Literal createLiteral(XMLGregorianCalendar calendar);
172:
173:            /**
174:             * Creates a new statement with the supplied subject, predicate and object.
175:             * 
176:             * @param subject
177:             *        The statement's subject.
178:             * @param predicate
179:             *        The statement's predicate.
180:             * @param object
181:             *        The statement's object.
182:             * @return The created statement.
183:             */
184:            public Statement createStatement(Resource subject, URI predicate,
185:                    Value object);
186:
187:            /**
188:             * Creates a new statement with the supplied subject, predicate and object
189:             * and associated context.
190:             * 
191:             * @param subject
192:             *        The statement's subject.
193:             * @param predicate
194:             *        The statement's predicate.
195:             * @param object
196:             *        The statement's object.
197:             * @param context
198:             *        The statement's context.
199:             * @return The created statement.
200:             */
201:            public Statement createStatement(Resource subject, URI predicate,
202:                    Value object, Resource context);
203:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.