| org.ontoware.rdf2go.model.impl.AbstractModel org.ontoware.rdf2go.impl.jena24.ModelImplJena24
ModelImplJena24 | public class ModelImplJena24 extends AbstractModel implements Model(Code) | | (wth) for information on typed literals see this very good how to
http://jena.sourceforge.net/how-to/typedLiterals.html
|
Method Summary | |
public void | addAll(Iterator<? extends Statement> other) | public void | addStatement(org.ontoware.rdf2go.model.node.Resource subject, URI predicate, org.ontoware.rdf2go.model.node.Node object) | void | applyReasoning(Reasoning r) | public BlankNode | createBlankNode() | public BlankNode | createBlankNode(String id) | public void | dump() | public ClosableIterator<Statement> | findStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) | public URI | getContextURI() | public com.hp.hpl.jena.rdf.model.Model | getInternalJenaModel() | public long | getModificationCount() | public Object | getUnderlyingModelImplementation() | public boolean | isIsomorphicWith(Model other) | public boolean | isLocked() | public boolean | isValidURI(String uriString) | public ClosableIterator<Statement> | iterator() | public void | lock() | public void | readFrom(Reader r) | public void | readFrom(Reader reader, Syntax syntax) | public void | readFrom(Reader reader, Syntax syntax, URL baseURI) | public void | readFrom(InputStream in) | public void | readFrom(InputStream in, Syntax syntax) | public void | readFrom(InputStream in, Syntax syntax, URL baseURI) | public void | removeStatement(org.ontoware.rdf2go.model.node.Resource subject, URI predicate, org.ontoware.rdf2go.model.node.Node object) | public void | setUnderlyingModelImplementation(Object o) | public long | size() | public boolean | sparqlAsk(String queryString) | public ClosableIterable<Statement> | sparqlConstruct(String queryString) | public ClosableIterable<Statement> | sparqlDescribe(String queryString) | public QueryResultTable | sparqlSelect(String queryString) | public void | unlock() | public void | update(Diff diff) | public void | writeTo(Writer w) | public void | writeTo(Writer writer, Syntax syntax) | public void | writeTo(OutputStream out) | public void | writeTo(OutputStream out, Syntax syntax) |
factory | static IRIFactory factory(Code) | | |
jenaModel | protected com.hp.hpl.jena.rdf.model.Model jenaModel(Code) | | |
log | final protected static Log log(Code) | | |
modificationCount | protected long modificationCount(Code) | | used to check wheter iterators work on the up-to-date model
|
ModelImplJena24 | public ModelImplJena24(URI contextURI, Reasoning r)(Code) | | Parameters: reasoning - |
ModelImplJena24 | public ModelImplJena24(URI contextURI, com.hp.hpl.jena.rdf.model.Model jenaModel)(Code) | | wraps a Jena Model in a rdf2go Model
Parameters: jenaModel - |
ModelImplJena24 | public ModelImplJena24(com.hp.hpl.jena.rdf.model.Model jenaModel)(Code) | | |
ModelImplJena24 | public ModelImplJena24(URI contextURI, com.hp.hpl.jena.rdf.model.Model jenaModel, Reasoning reasoning)(Code) | | |
getContextURI | public URI getContextURI()(Code) | | |
getInternalJenaModel | public com.hp.hpl.jena.rdf.model.Model getInternalJenaModel()(Code) | | handle with care, iterators based on this model might (silently!) throw
concurrent modification exceptions
the underlying jena model |
getModificationCount | public long getModificationCount()(Code) | | count of modifications, used to prevent iterators from accessingold modle state |
getUnderlyingModelImplementation | public Object getUnderlyingModelImplementation()(Code) | | |
isIsomorphicWith | public boolean isIsomorphicWith(Model other)(Code) | | |
isLocked | public boolean isLocked()(Code) | | |
readFrom | public void readFrom(Reader reader, Syntax syntax)(Code) | | Might need this code fragment:
FileOutputStream fos = new FileOutputStream(tmpFile); OutputStreamWriter
osw = new OutputStreamWriter(fos, "utf8"); synchronized
(getDelegatedModel()) {
DumpUtils.addCommonPrefixesToJenaModel(jenaModel); jenaModel.write(osw,
lang, ""); } osw.close();
|
setUnderlyingModelImplementation | public void setUnderlyingModelImplementation(Object o)(Code) | | |
unlock | public void unlock()(Code) | | |
Methods inherited from org.ontoware.rdf2go.model.impl.AbstractModel | 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(Statement statement) 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) protected void assertModel()(Code)(Java Doc) public void close()(Code)(Java Doc) public void commit()(Code)(Java Doc) public boolean contains(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException(Code)(Java Doc) public boolean contains(ResourceOrVariable subject, UriOrVariable predicate, String plainLiteral) throws ModelRuntimeException(Code)(Java Doc) public boolean contains(Statement s) throws ModelRuntimeException(Code)(Java Doc) public long countStatements(TriplePattern pattern) throws ModelRuntimeException(Code)(Java Doc) public DatatypeLiteral createDatatypeLiteral(String literal, URI datatypeURI) throws ModelRuntimeException(Code)(Java Doc) public LanguageTagLiteral createLanguageTagLiteral(String literal, String languageTag) throws ModelRuntimeException(Code)(Java Doc) public PlainLiteral createPlainLiteral(String literal) throws ModelRuntimeException(Code)(Java Doc) public BlankNode createReficationOf(Statement statement)(Code)(Java Doc) public Resource createReficationOf(Statement statement, Resource resource)(Code)(Java Doc) public Statement createStatement(Resource subject, URI predicate, Node object)(Code)(Java Doc) public TriplePattern createTriplePattern(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object)(Code)(Java Doc) public URI createURI(String uriString) throws ModelRuntimeException(Code)(Java Doc) public void deleteReification(Resource reificationResource)(Code)(Java Doc) public ClosableIterator<Statement> findStatements(TriplePattern triplepattern) throws ModelRuntimeException(Code)(Java Doc) public Collection<Resource> getAllReificationsOf(Statement statement)(Code)(Java Doc) public Diff getDiff(Iterator<? extends Statement> other) throws ModelRuntimeException(Code)(Java Doc) public Object getProperty(URI propertyURI)(Code)(Java Doc) public Object getUnderlyingModelImplementation()(Code)(Java Doc) public boolean hasReifications(Statement statement)(Code)(Java Doc) public boolean isEmpty()(Code)(Java Doc) public boolean isOpen()(Code)(Java Doc) public URI newRandomUniqueURI()(Code)(Java Doc) public void open()(Code)(Java Doc) public ClosableIterable<Statement> queryConstruct(String query, String querylanguage) throws QueryLanguageNotSupportedException, ModelRuntimeException(Code)(Java Doc) public QueryResultTable querySelect(String query, String querylanguage) throws QueryLanguageNotSupportedException, ModelRuntimeException(Code)(Java Doc) public void readFrom(InputStream in, Syntax syntax) throws IOException, ModelRuntimeException(Code)(Java Doc) public void readFrom(InputStream in, Syntax syntax, URL baseURI) throws IOException, ModelRuntimeException(Code)(Java Doc) public void readFrom(Reader reader, Syntax syntax, URL baseURI) throws ModelRuntimeException, IOException(Code)(Java Doc) public void removeAll() throws ModelRuntimeException(Code)(Java Doc) public void removeAll(Iterator<? extends Statement> statements)(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) 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 removeStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException(Code)(Java Doc) public void removeStatements(TriplePattern triplePattern) throws ModelRuntimeException(Code)(Java Doc) public String serialize(Syntax syntax) throws SyntaxNotSupportedException(Code)(Java Doc) public void setAutocommit(boolean autocommit)(Code)(Java Doc) public void setProperty(URI propertyURI, Object value)(Code)(Java Doc) public long size() throws ModelRuntimeException(Code)(Java Doc) public boolean sparqlAsk(String query) throws ModelRuntimeException, MalformedQueryException(Code)(Java Doc) public synchronized void update(DiffReader diff) throws ModelRuntimeException(Code)(Java Doc) public void writeTo(OutputStream out, Syntax syntax) throws IOException, ModelRuntimeException(Code)(Java Doc)
|
|
|