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


java.lang.Object
   com.hp.hpl.jena.enhanced.Polymorphic
      com.hp.hpl.jena.enhanced.EnhGraph
         com.hp.hpl.jena.rdf.model.impl.ModelCom

All known Subclasses:   com.hp.hpl.jena.mem.ModelMem,  com.hp.hpl.jena.db.ModelRDB,  com.hp.hpl.jena.rdf.model.impl.InfModelImpl,  com.hp.hpl.jena.ontology.impl.OntModelImpl,  com.hp.hpl.jena.util.MonitorModel,
ModelCom
public class ModelCom extends EnhGraph implements Model,PrefixMapping,ModelLock(Code)
Common methods for model implementations.

This class implements common methods, mainly convenience methods, for model implementations. It is intended use is as a base class from which model implemenations can be derived.


author:
   bwm
author:
   hacked by Jeremy, tweaked by Chris (May 2002 - October 2002)


Field Summary
protected  Map1mapAsStatement
    
protected  ModelReifiermodelReifier
     the ModelReifier does everything to do with reification.

Constructor Summary
public  ModelCom(Graph base)
    
public  ModelCom(Graph base, Personality personality)
    

Method Summary
public  Modelabort()
    
public  GraphListeneradapt(ModelChangedListener L)
     Answer a GraphListener that, when fed graph-level update events, fires the corresponding model-level event handlers in L.
public  Modeladd(Resource s, Property p, String o)
    
public  Modeladd(Resource s, Property p, String o, boolean wellFormed)
    
public  Modeladd(Resource s, Property p, String o, String lang, boolean wellFormed)
    
public  Modeladd(Resource s, Property p, String lex, RDFDatatype datatype)
    
public  Modeladd(Resource s, Property p, String o, String l)
    
public  Modeladd(StmtIterator iter)
    
public  Modeladd(Model m)
    
public  Modeladd(Model m, boolean suppressReifications)
    
public  Modeladd(Statement s)
     add a Statement to this Model by adding its SPO components.
public  Modeladd(Statement[] statements)
     Add all the statements to the model by converting them to an array of corresponding triples and removing those from the underlying graph.
public  Modeladd(List statements)
     Add all the statements to the model by converting the list to an array of Statement and removing that.
public  Modeladd(Resource s, Property p, RDFNode o)
    
protected static  ModeladdCommon(Model result, StmtIterator it, Model other)
     Answer the argument result with all the statements from the statement iterator that are in the other model added to it.
public  ModeladdLiteral(Resource s, Property p, boolean o)
    
public  ModeladdLiteral(Resource s, Property p, long o)
    
public  ModeladdLiteral(Resource s, Property p, int o)
    
public  ModeladdLiteral(Resource s, Property p, char o)
    
public  ModeladdLiteral(Resource s, Property p, float o)
    
public  ModeladdLiteral(Resource s, Property p, double o)
    
public  ModeladdLiteral(Resource s, Property p, Object o)
    
public static  voidaddNamespaces(Model m, Map ns)
     Service method to update the namespaces of a Model given the mappings from prefix names to sets of URIs.
public  ModeladdTyped(Resource s, Property p, boolean o)
    
public  FilterasFilter(Selector s)
     Answer a Filter that filters exactly those things the Selector selects.
public  ModelasModel(Graph g)
    
public static  NodeasNode(RDFNode x)
    
public  RDFNodeasRDFNode(Node n)
    
public  StatementasStatement(Triple t)
     Answer a Statement in this Model whcih encodes the given Triple.
public  Statement[]asStatements(Triple[] triples)
    
public  ListasStatements(List triples)
    
public  StmtIteratorasStatements(Iterator it)
    
public  Modelbegin()
    
public  voidclose()
    
public  Modelcommit()
    
public  booleancontains(Resource s, Property p, String o)
    
public  booleancontains(Resource s, Property p, String o, String l)
    
public  booleancontains(Statement s)
    
public  booleancontains(Resource s, Property p)
    
public  booleancontains(Resource s, Property p, RDFNode o)
    
public  booleancontainsAll(Model model)
    
public  booleancontainsAll(StmtIterator iter)
    
protected  booleancontainsAllThenClose(StmtIterator iter)
    
public  booleancontainsAny(Model model)
    
public  booleancontainsAny(StmtIterator iter)
    
protected  booleancontainsAnyThenClose(StmtIterator iter)
    
public  booleancontainsLiteral(Resource s, Property p, boolean o)
    
public  booleancontainsLiteral(Resource s, Property p, long o)
    
public  booleancontainsLiteral(Resource s, Property p, int o)
    
public  booleancontainsLiteral(Resource s, Property p, char o)
    
public  booleancontainsLiteral(Resource s, Property p, float o)
    
public  booleancontainsLiteral(Resource s, Property p, double o)
    
public  booleancontainsLiteral(Resource s, Property p, Object o)
    
public  booleancontainsResource(RDFNode r)
    
public  booleancontainsTyped(Resource s, Property p, boolean o)
    
public  AltcreateAlt()
    
public  AltcreateAlt(String uri)
    
public  BagcreateBag()
    
public  BagcreateBag(String uri)
    
public  RDFListcreateList()
    
public  RDFListcreateList(Iterator members)
    

Answer a new list containing the resources from the given iterator, in order.


Parameters:
  members - An iterator, each value of which is expected to be an RDFNode.
public  RDFListcreateList(RDFNode[] members)
    
public  LiteralcreateLiteral(String v)
    
public  LiteralcreateLiteral(String v, String l)
    
public  LiteralcreateLiteral(String v, boolean wellFormed)
    
public  LiteralcreateLiteral(String v, String l, boolean wellFormed)
    
public  StatementcreateLiteralStatement(Resource r, Property p, boolean o)
    
public  StatementcreateLiteralStatement(Resource r, Property p, long o)
    
public  StatementcreateLiteralStatement(Resource r, Property p, int o)
    
public  StatementcreateLiteralStatement(Resource r, Property p, char o)
    
public  StatementcreateLiteralStatement(Resource r, Property p, float o)
    
public  StatementcreateLiteralStatement(Resource r, Property p, double o)
    
public  StatementcreateLiteralStatement(Resource r, Property p, Object o)
    
public  PropertycreateProperty(String uri)
    
public  PropertycreateProperty(String nameSpace, String localName)
    
public  ReifiedStatementcreateReifiedStatement(Statement s)
     create a ReifiedStatement that encodes _s_ and belongs to this Model.
public  ReifiedStatementcreateReifiedStatement(String uri, Statement s)
    
public  ResourcecreateResource(Resource type)
    
public  ResourcecreateResource(String uri, Resource type)
    
public  ResourcecreateResource(ResourceF f)
    
public  ResourcecreateResource(AnonId id)
    
public  ResourcecreateResource(String uri, ResourceF f)
    
public  ResourcecreateResource()
    
public  ResourcecreateResource(String uri)
    
public  SeqcreateSeq()
    
public  SeqcreateSeq(String uri)
    
public  StatementcreateStatement(Resource r, Property p, String o)
    
public  StatementcreateStatement(Resource r, Property p, String o, boolean wellFormed)
    
public  StatementcreateStatement(Resource r, Property p, String o, String l)
    
public  StatementcreateStatement(Resource r, Property p, String o, String l, boolean wellFormed)
    
public  StatementcreateStatement(Resource r, Property p, RDFNode o)
     create a Statement from the given r, p, and o.
public  LiteralcreateTypedLiteral(boolean v)
     create a type literal from a boolean value.

The value is converted to a string using its toString method.

public  LiteralcreateTypedLiteral(int v)
     create a typed literal from an integer value.
public  LiteralcreateTypedLiteral(long v)
     create a typed literal from a long integer value.
public  LiteralcreateTypedLiteral(char v)
     create a typed literal from a char value.
public  LiteralcreateTypedLiteral(float v)
     create a typed literal from a float value.
public  LiteralcreateTypedLiteral(double v)
     create a typed literal from a double value.
public  LiteralcreateTypedLiteral(String v)
     create a typed literal from a String value.
public  LiteralcreateTypedLiteral(Calendar cal)
     Create a typed literal xsd:dateTime from a Calendar object.
public  LiteralcreateTypedLiteral(String lex, RDFDatatype dtype)
     Build a typed literal from its lexical form.
public  LiteralcreateTypedLiteral(Object value, RDFDatatype dtype)
     Build a typed literal from its value form.
public  LiteralcreateTypedLiteral(String lex, String typeURI)
     Build a typed literal from its lexical form.
public  LiteralcreateTypedLiteral(Object value, String typeURI)
     Build a typed literal from its value form.
public  LiteralcreateTypedLiteral(Object value)
     Build a typed literal label from its value form using whatever datatype is currently registered as the the default representation for this java class.
protected static  ModelcreateWorkModel()
    
public  Modeldifference(Model model)
    
public  voidenterCriticalSection(boolean requestReadLock)
    
public  ObjectexecuteInTransaction(Command cmd)
    
public  StringexpandPrefix(String prefixed)
    
public  ExtendedIteratorfindTriplesFrom(Selector s)
     Answer an [extended] iterator which returns the triples in this graph which are selected by the (S, P, O) triple in the selector, ignoring any special tests it may do.
public  AltgetAlt(String uri)
    
public  AltgetAlt(Resource r)
    
public  ResourcegetAnyReifiedStatement(Statement s)
     get any reification of the given statement in this model; make one if necessary.
public  BaggetBag(String uri)
    
public  BaggetBag(Resource r)
    
protected  BulkUpdateHandlergetBulkUpdateHandler()
    
public static  PrefixMappinggetDefaultModelPrefixes()
    
public  GraphgetGraph()
    
public  ModelgetHiddenStatements()
     a read-only Model with all the statements of this Model and any statements "hidden" by reification.
public synchronized  LockgetLock()
    
public synchronized  ModelLockgetModelLock()
    
public  MapgetNsPrefixMap()
    
public  StringgetNsPrefixURI(String prefix)
    
public  StringgetNsURIPrefix(String uri)
    
public  PropertygetProperty(String uri)
    
public  PropertygetProperty(String nameSpace, String localName)
    
public  StatementgetProperty(Resource s, Property p)
    
public  RDFNodegetRDFNode(Node n)
    
public  RDFReadergetReader()
    
public  RDFReadergetReader(String lang)
    
public  ReificationStylegetReificationStyle()
    
public  StatementgetRequiredProperty(Resource s, Property p)
    
public  ResourcegetResource(String uri, ResourceF f)
    
public  ResourcegetResource(String uri)
    
public  SeqgetSeq(String uri)
    
public  SeqgetSeq(Resource r)
    
public  RDFWritergetWriter()
     Get the model's writer after priming it with the model's namespace prefixes.
public  RDFWritergetWriter(String lang)
     Get the model's writer after priming it with the model's namespace prefixes.
public  booleanindependent()
    
public static  Modelintersect(Model smaller, Model larger)
     Answer a Model that is the intersection of the two argument models.
public  Modelintersection(Model other)
     Intersect this with another model.
public  booleanisClosed()
    
public  booleanisEmpty()
    
public  booleanisIsomorphicWith(Model m)
     Answer whether or not these two graphs are isomorphic, taking the hidden (reification) statements into account.
public  booleanisReified(Statement s)
    
public  voidleaveCriticalSection()
    
public  StmtIteratorlistBySubject(Container cont)
    
public  StmtIteratorlistLiteralStatements(Resource S, Property P, boolean O)
    
public  StmtIteratorlistLiteralStatements(Resource S, Property P, long O)
    
public  StmtIteratorlistLiteralStatements(Resource S, Property P, char O)
    
public  StmtIteratorlistLiteralStatements(Resource S, Property P, double O)
    
public  NsIteratorlistNameSpaces()
    
public  NodeIteratorlistObjects()
    
public  NodeIteratorlistObjectsOfProperty(Property p)
    
public  NodeIteratorlistObjectsOfProperty(Resource s, Property p)
    
public  RSIteratorlistReifiedStatements()
    
public  RSIteratorlistReifiedStatements(Statement st)
    
public  ResIteratorlistResourcesWithProperty(Property p, boolean o)
    
public  ResIteratorlistResourcesWithProperty(Property p, char o)
    
public  ResIteratorlistResourcesWithProperty(Property p, long o)
    
public  ResIteratorlistResourcesWithProperty(Property p, float o)
    
public  ResIteratorlistResourcesWithProperty(Property p, double o)
    
public  ResIteratorlistResourcesWithProperty(Property p, Object o)
    
public  ResIteratorlistResourcesWithProperty(Property p)
    
public  ResIteratorlistResourcesWithProperty(Property p, RDFNode o)
    
protected  StmtIteratorlistStatements(Resource S, Property P, Node O)
    
public  StmtIteratorlistStatements(Resource S, Property P, RDFNode O)
    
public  StmtIteratorlistStatements(Resource S, Property P, String O)
    
public  StmtIteratorlistStatements(Resource S, Property P, String O, String L)
    
public  StmtIteratorlistStatements()
    
public  StmtIteratorlistStatements(Selector selector)
    
public  ResIteratorlistSubjects()
    
public  ResIteratorlistSubjectsWithProperty(Property p, RDFNode o)
    
public  ResIteratorlistSubjectsWithProperty(Property p, String o)
    
public  ResIteratorlistSubjectsWithProperty(Property p, String o, String l)
    
public  ResIteratorlistSubjectsWithProperty(Property p)
    
public  StmtIteratorlistlLiteralStatements(Resource S, Property P, float O)
    
public  PrefixMappinglock()
    
public  ModelnotifyEvent(Object e)
    
public  StringqnameFor(String uri)
    
public  Modelquery(Selector selector)
    
public  QueryHandlerqueryHandler()
    
public  Modelread(String url)
    
public  Modelread(Reader reader, String base)
    
public  Modelread(InputStream reader, String base)
    
public  Modelread(String url, String lang)
    
public  Modelread(String url, String base, String lang)
    
public  Modelread(Reader reader, String base, String lang)
    
public  Modelread(InputStream reader, String base, String lang)
    
public  Modelregister(ModelChangedListener listener)
     Register the listener with this model by registering its GraphListener adaption with the underlying Graph.
public  StringreifiedToString()
    
public  Modelremove(Statement s)
    
public  Modelremove(Resource s, Property p, RDFNode o)
    
public  Modelremove(StmtIterator iter)
    
public  Modelremove(Model m)
    
public  Modelremove(Model m, boolean suppressReifications)
    
public  Modelremove(Statement[] statements)
     remove all the Statements from the model by converting them to triples and removing those triples from the underlying graph.
public  Modelremove(List statements)
     Remove all the Statements from the model by converting the List to a List(Statement) and removing that.
public  ModelremoveAll()
    
public  ModelremoveAll(Resource s, Property p, RDFNode o)
    
public  voidremoveAllReifications(Statement s)
    
public  PrefixMappingremoveNsPrefix(String prefix)
    
public  voidremoveReification(ReifiedStatement rs)
    
public  booleansamePrefixMappingAs(PrefixMapping other)
    
public static  PrefixMappingsetDefaultModelPrefixes(PrefixMapping pm)
    
public  PrefixMappingsetNsPrefix(String prefix, String uri)
    
public  PrefixMappingsetNsPrefixes(PrefixMapping pm)
    
public  PrefixMappingsetNsPrefixes(Map map)
    
public  StringsetReaderClassName(String lang, String className)
    
public  StringsetWriterClassName(String lang, String className)
    
public  StringshortForm(String uri)
    
public  longsize()
    
protected  StringstatementsToString(StmtIterator it)
    
public  booleansupportsSetOperations()
    
public  booleansupportsTransactions()
    
public  StringtoString()
    
public  Modelunion(Model model)
    
public  Modelunregister(ModelChangedListener listener)
     Unregister the listener from this model by unregistering its GraphListener adaption from the underlying Graph.
public  PrefixMappingwithDefaultMappings(PrefixMapping other)
    
public  Modelwrite(Writer writer)
    
public  Modelwrite(Writer writer, String lang)
    
public  Modelwrite(Writer writer, String lang, String base)
    
public  Modelwrite(OutputStream writer)
    
public  Modelwrite(OutputStream writer, String lang)
    
public  Modelwrite(OutputStream writer, String lang, String base)
    

Field Detail
mapAsStatement
protected Map1 mapAsStatement(Code)



modelReifier
protected ModelReifier modelReifier(Code)
the ModelReifier does everything to do with reification.




Constructor Detail
ModelCom
public ModelCom(Graph base)(Code)
make a model based on the specified graph



ModelCom
public ModelCom(Graph base, Personality personality)(Code)




Method Detail
abort
public Model abort()(Code)



adapt
public GraphListener adapt(ModelChangedListener L)(Code)
Answer a GraphListener that, when fed graph-level update events, fires the corresponding model-level event handlers in L.
See Also:   ModelListenerAdapter
Parameters:
  L - a model listener to be wrapped as a graph listener a graph listener wrapping L



add
public Model add(Resource s, Property p, String o)(Code)



add
public Model add(Resource s, Property p, String o, boolean wellFormed)(Code)



add
public Model add(Resource s, Property p, String o, String lang, boolean wellFormed)(Code)



add
public Model add(Resource s, Property p, String lex, RDFDatatype datatype)(Code)



add
public Model add(Resource s, Property p, String o, String l)(Code)



add
public Model add(StmtIterator iter)(Code)



add
public Model add(Model m)(Code)



add
public Model add(Model m, boolean suppressReifications)(Code)



add
public Model add(Statement s)(Code)
add a Statement to this Model by adding its SPO components.



add
public Model add(Statement[] statements)(Code)
Add all the statements to the model by converting them to an array of corresponding triples and removing those from the underlying graph.



add
public Model add(List statements)(Code)
Add all the statements to the model by converting the list to an array of Statement and removing that.



add
public Model add(Resource s, Property p, RDFNode o)(Code)



addCommon
protected static Model addCommon(Model result, StmtIterator it, Model other)(Code)
Answer the argument result with all the statements from the statement iterator that are in the other model added to it.
Parameters:
  result - the Model to add statements to and return
Parameters:
  it - an iterator over the candidate statements
Parameters:
  other - the model that must contain the statements to be added result, after the suitable statements have been added to it



addLiteral
public Model addLiteral(Resource s, Property p, boolean o)(Code)



addLiteral
public Model addLiteral(Resource s, Property p, long o)(Code)



addLiteral
public Model addLiteral(Resource s, Property p, int o)(Code)



addLiteral
public Model addLiteral(Resource s, Property p, char o)(Code)



addLiteral
public Model addLiteral(Resource s, Property p, float o)(Code)



addLiteral
public Model addLiteral(Resource s, Property p, double o)(Code)



addLiteral
public Model addLiteral(Resource s, Property p, Object o)(Code)



addNamespaces
public static void addNamespaces(Model m, Map ns)(Code)
Service method to update the namespaces of a Model given the mappings from prefix names to sets of URIs. If the prefix maps to multiple URIs, then we discard it completely.
Parameters:
  the - Model who's namespace is to be updated
Parameters:
  ns - the namespace map to add to the Model



addTyped
public Model addTyped(Resource s, Property p, boolean o)(Code)
ModelCom.addLiteral(Resource,Property,boolean)



asFilter
public Filter asFilter(Selector s)(Code)
Answer a Filter that filters exactly those things the Selector selects.
Parameters:
  s - a Selector on statements a Filter that accepts statements that s passes tests on



asModel
public Model asModel(Graph g)(Code)



asNode
public static Node asNode(RDFNode x)(Code)



asRDFNode
public RDFNode asRDFNode(Node n)(Code)



asStatement
public Statement asStatement(Triple t)(Code)
Answer a Statement in this Model whcih encodes the given Triple.
Parameters:
  t - a triple to wrap as a statement a statement wrapping the triple and in this model



asStatements
public Statement[] asStatements(Triple[] triples)(Code)



asStatements
public List asStatements(List triples)(Code)



asStatements
public StmtIterator asStatements(Iterator it)(Code)



begin
public Model begin()(Code)



close
public void close()(Code)



commit
public Model commit()(Code)



contains
public boolean contains(Resource s, Property p, String o)(Code)



contains
public boolean contains(Resource s, Property p, String o, String l)(Code)



contains
public boolean contains(Statement s)(Code)



contains
public boolean contains(Resource s, Property p)(Code)



contains
public boolean contains(Resource s, Property p, RDFNode o)(Code)



containsAll
public boolean containsAll(Model model)(Code)



containsAll
public boolean containsAll(StmtIterator iter)(Code)



containsAllThenClose
protected boolean containsAllThenClose(StmtIterator iter)(Code)



containsAny
public boolean containsAny(Model model)(Code)



containsAny
public boolean containsAny(StmtIterator iter)(Code)



containsAnyThenClose
protected boolean containsAnyThenClose(StmtIterator iter)(Code)



containsLiteral
public boolean containsLiteral(Resource s, Property p, boolean o)(Code)



containsLiteral
public boolean containsLiteral(Resource s, Property p, long o)(Code)



containsLiteral
public boolean containsLiteral(Resource s, Property p, int o)(Code)



containsLiteral
public boolean containsLiteral(Resource s, Property p, char o)(Code)



containsLiteral
public boolean containsLiteral(Resource s, Property p, float o)(Code)



containsLiteral
public boolean containsLiteral(Resource s, Property p, double o)(Code)



containsLiteral
public boolean containsLiteral(Resource s, Property p, Object o)(Code)



containsResource
public boolean containsResource(RDFNode r)(Code)



containsTyped
public boolean containsTyped(Resource s, Property p, boolean o)(Code)
ModelCom.containsLiteral(Resource,Property,boolean)



createAlt
public Alt createAlt()(Code)



createAlt
public Alt createAlt(String uri)(Code)



createBag
public Bag createBag()(Code)



createBag
public Bag createBag(String uri)(Code)



createList
public RDFList createList()(Code)
Answer a (the) new empty list An RDF-encoded list of no elements (ie nil)



createList
public RDFList createList(Iterator members)(Code)

Answer a new list containing the resources from the given iterator, in order.


Parameters:
  members - An iterator, each value of which is expected to be an RDFNode. An RDF-encoded list of the elements of the iterator



createList
public RDFList createList(RDFNode[] members)(Code)

Answer a new list containing the RDF nodes from the given array, in order


Parameters:
  members - An array of RDFNodes that will be the members of the list An RDF-encoded list



createLiteral
public Literal createLiteral(String v)(Code)



createLiteral
public Literal createLiteral(String v, String l)(Code)



createLiteral
public Literal createLiteral(String v, boolean wellFormed)(Code)



createLiteral
public Literal createLiteral(String v, String l, boolean wellFormed)(Code)



createLiteralStatement
public Statement createLiteralStatement(Resource r, Property p, boolean o)(Code)



createLiteralStatement
public Statement createLiteralStatement(Resource r, Property p, long o)(Code)



createLiteralStatement
public Statement createLiteralStatement(Resource r, Property p, int o)(Code)



createLiteralStatement
public Statement createLiteralStatement(Resource r, Property p, char o)(Code)



createLiteralStatement
public Statement createLiteralStatement(Resource r, Property p, float o)(Code)



createLiteralStatement
public Statement createLiteralStatement(Resource r, Property p, double o)(Code)



createLiteralStatement
public Statement createLiteralStatement(Resource r, Property p, Object o)(Code)



createProperty
public Property createProperty(String uri)(Code)



createProperty
public Property createProperty(String nameSpace, String localName)(Code)



createReifiedStatement
public ReifiedStatement createReifiedStatement(Statement s)(Code)
create a ReifiedStatement that encodes _s_ and belongs to this Model.



createReifiedStatement
public ReifiedStatement createReifiedStatement(String uri, Statement s)(Code)



createResource
public Resource createResource(Resource type)(Code)



createResource
public Resource createResource(String uri, Resource type)(Code)



createResource
public Resource createResource(ResourceF f)(Code)



createResource
public Resource createResource(AnonId id)(Code)



createResource
public Resource createResource(String uri, ResourceF f)(Code)



createResource
public Resource createResource()(Code)



createResource
public Resource createResource(String uri)(Code)



createSeq
public Seq createSeq()(Code)



createSeq
public Seq createSeq(String uri)(Code)



createStatement
public Statement createStatement(Resource r, Property p, String o)(Code)



createStatement
public Statement createStatement(Resource r, Property p, String o, boolean wellFormed)(Code)



createStatement
public Statement createStatement(Resource r, Property p, String o, String l)(Code)



createStatement
public Statement createStatement(Resource r, Property p, String o, String l, boolean wellFormed)(Code)



createStatement
public Statement createStatement(Resource r, Property p, RDFNode o)(Code)
create a Statement from the given r, p, and o.



createTypedLiteral
public Literal createTypedLiteral(boolean v)(Code)
create a type literal from a boolean value.

The value is converted to a string using its toString method.


Parameters:
  v - the value of the literal a new literal representing the value v



createTypedLiteral
public Literal createTypedLiteral(int v)(Code)
create a typed literal from an integer value.
Parameters:
  v - the value of the literal a new literal representing the value v



createTypedLiteral
public Literal createTypedLiteral(long v)(Code)
create a typed literal from a long integer value.
Parameters:
  v - the value of the literal a new literal representing the value v



createTypedLiteral
public Literal createTypedLiteral(char v)(Code)
create a typed literal from a char value.
Parameters:
  v - the value of the literal a new literal representing the value v



createTypedLiteral
public Literal createTypedLiteral(float v)(Code)
create a typed literal from a float value.
Parameters:
  v - the value of the literal a new literal representing the value v



createTypedLiteral
public Literal createTypedLiteral(double v)(Code)
create a typed literal from a double value.
Parameters:
  v - the value of the literal a new literal representing the value v



createTypedLiteral
public Literal createTypedLiteral(String v)(Code)
create a typed literal from a String value.
Parameters:
  v - the value of the literal a new literal representing the value v



createTypedLiteral
public Literal createTypedLiteral(Calendar cal)(Code)
Create a typed literal xsd:dateTime from a Calendar object.



createTypedLiteral
public Literal createTypedLiteral(String lex, RDFDatatype dtype) throws DatatypeFormatException(Code)
Build a typed literal from its lexical form. The lexical form will be parsed now and the value stored. If the form is not legal this will throw an exception.
Parameters:
  lex - the lexical form of the literal
Parameters:
  dtype - the type of the literal, null for old style "plain" literals
throws:
  DatatypeFormatException - if lex is not a legal form of dtype



createTypedLiteral
public Literal createTypedLiteral(Object value, RDFDatatype dtype)(Code)
Build a typed literal from its value form.
Parameters:
  value - the value of the literal
Parameters:
  dtype - the type of the literal, null for old style "plain" literals



createTypedLiteral
public Literal createTypedLiteral(String lex, String typeURI)(Code)
Build a typed literal from its lexical form. The lexical form will be parsed now and the value stored. If the form is not legal this will throw an exception.
Parameters:
  lex - the lexical form of the literal
Parameters:
  typeURI - the uri of the type of the literal, null for old style "plain" literals
throws:
  DatatypeFormatException - if lex is not a legal form of dtype



createTypedLiteral
public Literal createTypedLiteral(Object value, String typeURI)(Code)
Build a typed literal from its value form.
Parameters:
  value - the value of the literal
Parameters:
  typeURI - the URI of the type of the literal, null for old style "plain" literals



createTypedLiteral
public Literal createTypedLiteral(Object value)(Code)
Build a typed literal label from its value form using whatever datatype is currently registered as the the default representation for this java class. No language tag is supplied.
Parameters:
  value - the literal value to encapsulate



createWorkModel
protected static Model createWorkModel()(Code)



difference
public Model difference(Model model)(Code)



enterCriticalSection
public void enterCriticalSection(boolean requestReadLock)(Code)



executeInTransaction
public Object executeInTransaction(Command cmd)(Code)



expandPrefix
public String expandPrefix(String prefixed)(Code)



findTriplesFrom
public ExtendedIterator findTriplesFrom(Selector s)(Code)
Answer an [extended] iterator which returns the triples in this graph which are selected by the (S, P, O) triple in the selector, ignoring any special tests it may do.
Parameters:
  s - a Selector used to supply subject, predicate, and object an extended iterator over the matching (S, P, O) triples



getAlt
public Alt getAlt(String uri)(Code)



getAlt
public Alt getAlt(Resource r)(Code)



getAnyReifiedStatement
public Resource getAnyReifiedStatement(Statement s)(Code)
get any reification of the given statement in this model; make one if necessary.
Parameters:
  s - for which a reification is sought a ReifiedStatement that reifies _s_



getBag
public Bag getBag(String uri)(Code)



getBag
public Bag getBag(Resource r)(Code)



getBulkUpdateHandler
protected BulkUpdateHandler getBulkUpdateHandler()(Code)



getDefaultModelPrefixes
public static PrefixMapping getDefaultModelPrefixes()(Code)



getGraph
public Graph getGraph()(Code)



getHiddenStatements
public Model getHiddenStatements()(Code)
a read-only Model with all the statements of this Model and any statements "hidden" by reification. That model is dynamic, ie any changes this model will be reflected that one.



getLock
public synchronized Lock getLock()(Code)



getModelLock
public synchronized ModelLock getModelLock()(Code)



getNsPrefixMap
public Map getNsPrefixMap()(Code)



getNsPrefixURI
public String getNsPrefixURI(String prefix)(Code)



getNsURIPrefix
public String getNsURIPrefix(String uri)(Code)



getProperty
public Property getProperty(String uri)(Code)



getProperty
public Property getProperty(String nameSpace, String localName)(Code)



getProperty
public Statement getProperty(Resource s, Property p)(Code)



getRDFNode
public RDFNode getRDFNode(Node n)(Code)



getReader
public RDFReader getReader()(Code)



getReader
public RDFReader getReader(String lang)(Code)



getReificationStyle
public ReificationStyle getReificationStyle()(Code)



getRequiredProperty
public Statement getRequiredProperty(Resource s, Property p)(Code)



getResource
public Resource getResource(String uri, ResourceF f)(Code)



getResource
public Resource getResource(String uri)(Code)



getSeq
public Seq getSeq(String uri)(Code)



getSeq
public Seq getSeq(Resource r)(Code)



getWriter
public RDFWriter getWriter()(Code)
Get the model's writer after priming it with the model's namespace prefixes.



getWriter
public RDFWriter getWriter(String lang)(Code)
Get the model's writer after priming it with the model's namespace prefixes.



independent
public boolean independent()(Code)



intersect
public static Model intersect(Model smaller, Model larger)(Code)
Answer a Model that is the intersection of the two argument models. The first argument is the model iterated over, and the second argument is the one used to check for membership. [So the first one should be "small" and the second one "membership cheap".]



intersection
public Model intersection(Model other)(Code)
Intersect this with another model. As an attempt at optimisation, we try and ensure we iterate over the smaller model first. Nowadays it's not clear that this is a good idea, since size() can be expensive on database and inference models.
See Also:   com.hp.hpl.jena.rdf.model.Model.intersection(com.hp.hpl.jena.rdf.model.Model)



isClosed
public boolean isClosed()(Code)



isEmpty
public boolean isEmpty()(Code)



isIsomorphicWith
public boolean isIsomorphicWith(Model m)(Code)
Answer whether or not these two graphs are isomorphic, taking the hidden (reification) statements into account.



isReified
public boolean isReified(Statement s)(Code)
true iff this model has a reification of _s_ in some Statement



leaveCriticalSection
public void leaveCriticalSection()(Code)



listBySubject
public StmtIterator listBySubject(Container cont)(Code)



listLiteralStatements
public StmtIterator listLiteralStatements(Resource S, Property P, boolean O)(Code)



listLiteralStatements
public StmtIterator listLiteralStatements(Resource S, Property P, long O)(Code)



listLiteralStatements
public StmtIterator listLiteralStatements(Resource S, Property P, char O)(Code)



listLiteralStatements
public StmtIterator listLiteralStatements(Resource S, Property P, double O)(Code)



listNameSpaces
public NsIterator listNameSpaces()(Code)



listObjects
public NodeIterator listObjects()(Code)



listObjectsOfProperty
public NodeIterator listObjectsOfProperty(Property p)(Code)



listObjectsOfProperty
public NodeIterator listObjectsOfProperty(Resource s, Property p)(Code)



listReifiedStatements
public RSIterator listReifiedStatements()(Code)
an iterator which delivers all the ReifiedStatements in this model



listReifiedStatements
public RSIterator listReifiedStatements(Statement st)(Code)
an iterator each of whose elements is a ReifiedStatement in thismodel such that it's getStatement().equals( st )



listResourcesWithProperty
public ResIterator listResourcesWithProperty(Property p, boolean o)(Code)



listResourcesWithProperty
public ResIterator listResourcesWithProperty(Property p, char o)(Code)



listResourcesWithProperty
public ResIterator listResourcesWithProperty(Property p, long o)(Code)



listResourcesWithProperty
public ResIterator listResourcesWithProperty(Property p, float o)(Code)



listResourcesWithProperty
public ResIterator listResourcesWithProperty(Property p, double o)(Code)



listResourcesWithProperty
public ResIterator listResourcesWithProperty(Property p, Object o)(Code)



listResourcesWithProperty
public ResIterator listResourcesWithProperty(Property p)(Code)



listResourcesWithProperty
public ResIterator listResourcesWithProperty(Property p, RDFNode o)(Code)



listStatements
protected StmtIterator listStatements(Resource S, Property P, Node O)(Code)



listStatements
public StmtIterator listStatements(Resource S, Property P, RDFNode O)(Code)



listStatements
public StmtIterator listStatements(Resource S, Property P, String O)(Code)



listStatements
public StmtIterator listStatements(Resource S, Property P, String O, String L)(Code)



listStatements
public StmtIterator listStatements()(Code)



listStatements
public StmtIterator listStatements(Selector selector)(Code)



listSubjects
public ResIterator listSubjects()(Code)



listSubjectsWithProperty
public ResIterator listSubjectsWithProperty(Property p, RDFNode o)(Code)



listSubjectsWithProperty
public ResIterator listSubjectsWithProperty(Property p, String o)(Code)



listSubjectsWithProperty
public ResIterator listSubjectsWithProperty(Property p, String o, String l)(Code)



listSubjectsWithProperty
public ResIterator listSubjectsWithProperty(Property p)(Code)



listlLiteralStatements
public StmtIterator listlLiteralStatements(Resource S, Property P, float O)(Code)



lock
public PrefixMapping lock()(Code)



notifyEvent
public Model notifyEvent(Object e)(Code)



qnameFor
public String qnameFor(String uri)(Code)



query
public Model query(Selector selector)(Code)



queryHandler
public QueryHandler queryHandler()(Code)



read
public Model read(String url)(Code)



read
public Model read(Reader reader, String base)(Code)



read
public Model read(InputStream reader, String base)(Code)



read
public Model read(String url, String lang)(Code)



read
public Model read(String url, String base, String lang)(Code)



read
public Model read(Reader reader, String base, String lang)(Code)



read
public Model read(InputStream reader, String base, String lang)(Code)



register
public Model register(ModelChangedListener listener)(Code)
Register the listener with this model by registering its GraphListener adaption with the underlying Graph.
Parameters:
  a - ModelChangedListener to register for model events this model, for cascading



reifiedToString
public String reifiedToString()(Code)



remove
public Model remove(Statement s)(Code)



remove
public Model remove(Resource s, Property p, RDFNode o)(Code)



remove
public Model remove(StmtIterator iter)(Code)



remove
public Model remove(Model m)(Code)



remove
public Model remove(Model m, boolean suppressReifications)(Code)



remove
public Model remove(Statement[] statements)(Code)
remove all the Statements from the model by converting them to triples and removing those triples from the underlying graph.



remove
public Model remove(List statements)(Code)
Remove all the Statements from the model by converting the List to a List(Statement) and removing that.



removeAll
public Model removeAll()(Code)



removeAll
public Model removeAll(Resource s, Property p, RDFNode o)(Code)



removeAllReifications
public void removeAllReifications(Statement s)(Code)
remove any ReifiedStatements reifying the given statement
Parameters:
  s - the statement who's reifications are to be discarded



removeNsPrefix
public PrefixMapping removeNsPrefix(String prefix)(Code)



removeReification
public void removeReification(ReifiedStatement rs)(Code)



samePrefixMappingAs
public boolean samePrefixMappingAs(PrefixMapping other)(Code)



setDefaultModelPrefixes
public static PrefixMapping setDefaultModelPrefixes(PrefixMapping pm)(Code)



setNsPrefix
public PrefixMapping setNsPrefix(String prefix, String uri)(Code)



setNsPrefixes
public PrefixMapping setNsPrefixes(PrefixMapping pm)(Code)



setNsPrefixes
public PrefixMapping setNsPrefixes(Map map)(Code)



setReaderClassName
public String setReaderClassName(String lang, String className)(Code)



setWriterClassName
public String setWriterClassName(String lang, String className)(Code)



shortForm
public String shortForm(String uri)(Code)



size
public long size()(Code)



statementsToString
protected String statementsToString(StmtIterator it)(Code)



supportsSetOperations
public boolean supportsSetOperations()(Code)



supportsTransactions
public boolean supportsTransactions()(Code)



toString
public String toString()(Code)



union
public Model union(Model model)(Code)



unregister
public Model unregister(ModelChangedListener listener)(Code)
Unregister the listener from this model by unregistering its GraphListener adaption from the underlying Graph.
Parameters:
  a - ModelChangedListener to unregister from model events this model, for cascading



withDefaultMappings
public PrefixMapping withDefaultMappings(PrefixMapping other)(Code)



write
public Model write(Writer writer)(Code)



write
public Model write(Writer writer, String lang)(Code)



write
public Model write(Writer writer, String lang, String base)(Code)



write
public Model write(OutputStream writer)(Code)



write
public Model write(OutputStream writer, String lang)(Code)



write
public Model write(OutputStream writer, String lang, String base)(Code)



Fields inherited from com.hp.hpl.jena.enhanced.EnhGraph
protected Cache enhNodes(Code)(Java Doc)
protected Graph graph(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.enhanced.EnhGraph
public Graph asGraph()(Code)(Java Doc)
protected boolean canSupport(Class t)(Code)(Java Doc)
protected Polymorphic convertTo(Class t)(Code)(Java Doc)
final public boolean equals(Object o)(Code)(Java Doc)
public EnhNode getNodeAs(Node n, Class interf)(Code)(Java Doc)
public CacheControl getNodeCacheControl()(Code)(Java Doc)
protected Personality getPersonality()(Code)(Java Doc)
final public int hashCode()(Code)(Java Doc)
final public boolean isIsomorphicWith(EnhGraph eg)(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
public void setNodeCache(Cache cc)(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.enhanced.Polymorphic
public synchronized void addView(Polymorphic other)(Code)(Java Doc)
protected boolean already(Class t)(Code)(Java Doc)
protected boolean alreadyHasView(Class t)(Code)(Java Doc)
final protected Polymorphic asInternal(Class t)(Code)(Java Doc)
abstract protected boolean canSupport(Class t)(Code)(Java Doc)
abstract protected Polymorphic convertTo(Class t)(Code)(Java Doc)
abstract public boolean equals(Object o)(Code)(Java Doc)
abstract protected Personality getPersonality()(Code)(Java Doc)
abstract public boolean isValid()(Code)(Java Doc)
public boolean supports(Class t)(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)

w__w_w___.___ja___v__a_2__s_.__c___o___m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.