Java Doc for Statement.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » rdf » 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 » Jena 2.5.5 » com.hp.hpl.jena.rdf.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.hp.hpl.jena.rdf.model.Statement

All known Subclasses:   com.hp.hpl.jena.rdf.model.impl.StatementImpl,
Statement
public interface Statement extends FrontsTriple(Code)
An RDF Statement.

A Statement is not a Resource, but can produce a ReifiedStatement that represents it and from which the Statement can be recovered.

A statement instance tracks which model created it, if any. All the Resource components of a Statement are in the same model as the Statement, if it has one, and are in no model if the Statement isn't.

This interface provides methods supporting typed literals. This means that methods are provided which will translate a built in type, or an object to an RDF Literal. This translation is done by invoking the toString() method of the object, or its built in equivalent. The reverse translation is also supported. This is built in for built in types. Factory objects, provided by the application, are used for application objects.


author:
   bwm; additions by kers
version:
   $Name: $ $Revision: 1.21 $ $Date: 2008/01/02 12:05:48 $

Inner Class :public static class Util



Method Summary
public  StatementchangeLiteralObject(boolean o)
     Remove this statement (s, p, x) from the model that contains it.
public  StatementchangeLiteralObject(long o)
     Remove this statement (s, p, x) from the model that contains it.
public  StatementchangeLiteralObject(int o)
     Remove this statement (s, p, x) from the model that contains it.
public  StatementchangeLiteralObject(char o)
     Remove this statement (s, p, x) from the model that contains it.
public  StatementchangeLiteralObject(float o)
     Remove this statement (s, p, x) from the model that contains it.
public  StatementchangeLiteralObject(double o)
     Remove this statement (s, p, x) from the model that contains it.
public  StatementchangeObject(float o)
    
public  StatementchangeObject(boolean o)
    
public  StatementchangeObject(long o)
    
public  StatementchangeObject(double o)
    
public  StatementchangeObject(Object o)
    
public  StatementchangeObject(String o)
     change the object of the statement (S, P, X) to (S, P, o).

The statement with the old value is removed from the model and a new statement with the new value added and returned.


Parameters:
  o - The value to be set.
public  StatementchangeObject(String o, boolean wellFormed)
     change the object of the statement (S, P, X) to (S, P, o).
public  StatementchangeObject(String o, String l)
     change the object of the statement (S, P, X) to (S, P, o).
public  StatementchangeObject(String o, String l, boolean wellFormed)
     change the object of the statement (S, P, X) to (S, P, o).
public  StatementchangeObject(RDFNode o)
     change the object of the statement (S, P, X) to (S, P, o).
 ReifiedStatementcreateReifiedStatement()
     answer a ReifiedStatement object that embodies this Statement and is in the same Model (if any).
 ReifiedStatementcreateReifiedStatement(String uri)
     answer a ReifiedStatement object that embodies this Statement, has the same Model, and has the given uri.
public  booleanequals(Object o)
     determine whether two statements are equal.

Two statements are considered to be equal if they have the the same subject, predicate and object.

public  AltgetAlt()
     Return the object of the statement.
public  BaggetBag()
     Return the object of the statement.
public  booleangetBoolean()
     Return the object of the statement.
public  bytegetByte()
     Return the object of the statement.
public  chargetChar()
     Return the object of the statement.
public  doublegetDouble()
     Return the object of the statement.
public  floatgetFloat()
     Return the object of the statement.
public  intgetInt()
     Return the object of the statement.
public  StringgetLanguage()
     Return the language of the object of the statement.
public  LiteralgetLiteral()
     Return the object of the statement.
public  longgetLong()
     Return the object of the statement.
 ModelgetModel()
     get the Model this Statement was created in.
public  RDFNodegetObject()
     An accessor funtion to return the object of the statement.
public  ObjectgetObject(ObjectF f)
     Return the object of the statement.
public  PropertygetPredicate()
     An accessor function to return the predicate of the statement.
public  StatementgetProperty(Property p)
     Get a property of the object of the statement.

There is an unfortunate ambiguity here.

public  ResourcegetResource()
     Return the object of the statement.
public  ResourcegetResource(ResourceF f)
     Return the object of the statement.
public  SeqgetSeq()
     Return the object of the statement.
public  shortgetShort()
     Return the object of the statement.
public  StatementgetStatementProperty(Property p)
     Return a property of this statement.

The model associated with this statement is searched for a statement with this statement as subject and the specified property as predicate.

public  StringgetString()
     Return the object of the statement.
public  ResourcegetSubject()
     An accessor method to return the subject of the statements.
public  booleanhasWellFormedXML()
     Answer true iff the Literal object of this statement is well-formed XML (ie equivalent to getLiteral().isWellFormedXML()).
public  inthashCode()
    
 booleanisReified()
     Determine if this statement is the subject of any statements its associated model.
 RSIteratorlistReifiedStatements()
     answer an iterator which delivers all the reified statements in the model this Statement belongs to that match this Statement.
public  Statementremove()
     Remove this statement from its associated model.
 voidremoveReification()
     Finds all possible resources which are the reification of this statement, and for each removes all four triples of the reification quad.



Method Detail
changeLiteralObject
public Statement changeLiteralObject(boolean o)(Code)
Remove this statement (s, p, x) from the model that contains it. Create a new statement (s, p, o'), where o' is the typed literal corresponding to o, add it to the model, and answer it.



changeLiteralObject
public Statement changeLiteralObject(long o)(Code)
Remove this statement (s, p, x) from the model that contains it. Create a new statement (s, p, o'), where o' is the typed literal corresponding to o, add it to the model, and answer it.



changeLiteralObject
public Statement changeLiteralObject(int o)(Code)
Remove this statement (s, p, x) from the model that contains it. Create a new statement (s, p, o'), where o' is the typed literal corresponding to o, add it to the model, and answer it.



changeLiteralObject
public Statement changeLiteralObject(char o)(Code)
Remove this statement (s, p, x) from the model that contains it. Create a new statement (s, p, o'), where o' is the typed literal corresponding to o, add it to the model, and answer it.



changeLiteralObject
public Statement changeLiteralObject(float o)(Code)
Remove this statement (s, p, x) from the model that contains it. Create a new statement (s, p, o'), where o' is the typed literal corresponding to o, add it to the model, and answer it.



changeLiteralObject
public Statement changeLiteralObject(double o)(Code)
Remove this statement (s, p, x) from the model that contains it. Create a new statement (s, p, o'), where o' is the typed literal corresponding to o, add it to the model, and answer it.



changeObject
public Statement changeObject(float o)(Code)



changeObject
public Statement changeObject(boolean o)(Code)



changeObject
public Statement changeObject(long o)(Code)



changeObject
public Statement changeObject(double o)(Code)



changeObject
public Statement changeObject(Object o)(Code)



changeObject
public Statement changeObject(String o)(Code)
change the object of the statement (S, P, X) to (S, P, o).

The statement with the old value is removed from the model and a new statement with the new value added and returned.


Parameters:
  o - The value to be set. the new (S, P, o) statement.



changeObject
public Statement changeObject(String o, boolean wellFormed)(Code)
change the object of the statement (S, P, X) to (S, P, o).

The statement with the old value is removed from the model and a new statement with the new value added and returned.


Parameters:
  o - The value to be set.
Parameters:
  wellFormed - true if o is well formed XML the new (S, P, o) statement.



changeObject
public Statement changeObject(String o, String l)(Code)
change the object of the statement (S, P, X) to (S, P, o).

The statement with the old value is removed from the model and a new statement with the new value added.


Parameters:
  o - The value to be set.
Parameters:
  l - the language of the String the new (S, P, o) statement..



changeObject
public Statement changeObject(String o, String l, boolean wellFormed)(Code)
change the object of the statement (S, P, X) to (S, P, o).

The statement with the old value is removed from the model and a new statement with the new value added.


Parameters:
  o - The value to be set.
Parameters:
  l - the language of the String the new (S, P, o) statement.



changeObject
public Statement changeObject(RDFNode o)(Code)
change the object of the statement (S, P, X) to (S, P, o).

The statement with the old value is removed from the model and a new statement with the new value added.


Parameters:
  o - The value to be set the new (S, P, o) statement.



createReifiedStatement
ReifiedStatement createReifiedStatement()(Code)
answer a ReifiedStatement object that embodies this Statement and is in the same Model (if any).



createReifiedStatement
ReifiedStatement createReifiedStatement(String uri)(Code)
answer a ReifiedStatement object that embodies this Statement, has the same Model, and has the given uri.



equals
public boolean equals(Object o)(Code)
determine whether two statements are equal.

Two statements are considered to be equal if they have the the same subject, predicate and object. A statement can only be equal to another statement object.

true if and only if the equality condition is met.
Parameters:
  o - the object to be compared



getAlt
public Alt getAlt()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Resource.

The object of the statement interpreted as a value of thethe specified type.



getBag
public Bag getBag()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Resource.

The object of the statement interpreted as a value of thethe specified type.



getBoolean
public boolean getBoolean()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Literal.

The object of the statement interpreted as a value of thethe specified type.



getByte
public byte getByte()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Literal.

The object of the statement interpreted as a value of thethe specified type.



getChar
public char getChar()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Literal.

The object of the statement interpreted as a value of thethe specified type.



getDouble
public double getDouble()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Literal.

The object of the statement interpreted as a value of thethe specified type.



getFloat
public float getFloat()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Literal.

The object of the statement interpreted as a value of thethe specified type.



getInt
public int getInt()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Literal.

The object of the statement interpreted as a value of thethe specified type.



getLanguage
public String getLanguage()(Code)
Return the language of the object of the statement.

An exception will be thrown if the object is not a Literal.

the language of the object of the statement



getLiteral
public Literal getLiteral()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Literal.

The Literal which is the object of the statement.



getLong
public long getLong()(Code)
Return the object of the statement.

An exception will be thrown iof the object is not a Literal.

The object of the statement interpreted as a value of thethe specified type.



getModel
Model getModel()(Code)
get the Model this Statement was created in.



getObject
public RDFNode getObject()(Code)
An accessor funtion to return the object of the statement. Return the object of the statement.



getObject
public Object getObject(ObjectF f)(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Literal.

The object of the statement.
Parameters:
  f - A factory used to create the returned object.



getPredicate
public Property getPredicate()(Code)
An accessor function to return the predicate of the statement. The predicate of the statement.



getProperty
public Statement getProperty(Property p)(Code)
Get a property of the object of the statement.

There is an unfortunate ambiguity here. GetProperty would normally treat the statement as a resource, and return a property about this statement. This is not what is wanted in most cases, so getProperty on a statement is defined to call getProperty on its object. If a property of the statement itself is required, getStatementProperty should be used.

If the object of the statement is not a resource, an exception is thrown.


Parameters:
  p - the property sought a statement representing an instance of the requiredproperty



getResource
public Resource getResource()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a resource.

The Resource which is the object of the statement.



getResource
public Resource getResource(ResourceF f)(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Resource.

The object of the statement.



getSeq
public Seq getSeq()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Resource.

The object of the statement interpreted as a value of thethe specified type.



getShort
public short getShort()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Literal.

The object of the statement interpreted as a value of thethe specified type.



getStatementProperty
public Statement getStatementProperty(Property p)(Code)
Return a property of this statement.

The model associated with this statement is searched for a statement with this statement as subject and the specified property as predicate. If such a statement is found it is return. If more than one exists in the model, then it is undefined which is returned. If no such statement exists, an exception is thrown.


Parameters:
  p - the property sought a statement representing an instance of the specifiedproperty.



getString
public String getString()(Code)
Return the object of the statement.

An exception will be thrown if the object is not a Literal.

The object of the statement interpreted as a value of thethe specified type.



getSubject
public Resource getSubject()(Code)
An accessor method to return the subject of the statements. The subject of the statement.



hasWellFormedXML
public boolean hasWellFormedXML()(Code)
Answer true iff the Literal object of this statement is well-formed XML (ie equivalent to getLiteral().isWellFormedXML()). If the object is not a Literal, throw an exception.



hashCode
public int hashCode()(Code)
Returns asTriple().hashCode()



isReified
boolean isReified()(Code)
Determine if this statement is the subject of any statements its associated model. true iff this statement is the subject of a statement in the model.



listReifiedStatements
RSIterator listReifiedStatements()(Code)
answer an iterator which delivers all the reified statements in the model this Statement belongs to that match this Statement.



remove
public Statement remove()(Code)
Remove this statement from its associated model.

The statement with the same subject, predicate and object as this statement will be removed from the model associated with this statement.

this statement.



removeReification
void removeReification()(Code)
Finds all possible resources which are the reification of this statement, and for each removes all four triples of the reification quad.



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