public class TripleStoreJena extends AbstractPowsyblTripleStore
Constructor and Description |
---|
TripleStoreJena() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
add(java.lang.String contextName,
java.lang.String objNs,
java.lang.String objType,
PropertyBag properties)
Add to the triple store statements for creating a new resource, instance of a specific class
|
void |
add(java.lang.String contextName,
java.lang.String objNs,
java.lang.String objType,
PropertyBags statements)
Add to the triple store statements for creating new resources, instances of a specific class
|
void |
add(TripleStore source)
Add all statements of the source Triplestore to this Triplestore.
|
void |
addNamespace(java.lang.String prefix,
java.lang.String namespace)
Add a namespace to the triple store
|
void |
clear(java.lang.String contextName)
Delete all the statements in a given context.
|
java.util.Set<java.lang.String> |
contextNames()
Get all the context names currently defined in the Triplestore.
|
java.lang.String |
getImplementationName()
Return the implementation name defined in the triple store
|
java.util.List<PrefixNamespace> |
getNamespaces()
Return the namespaces defined in the triple store
|
void |
print(java.io.PrintStream out)
Print a summary of the contents of the Triplestore.
|
PropertyBags |
query(java.lang.String query)
Perform a SPARQL query on the Triplestore.
|
void |
read(java.io.InputStream is,
java.lang.String baseName,
java.lang.String contextName)
Read statements from an input stream and store them in the Triplestore under the given context name.
|
void |
update(java.lang.String query)
Perform a SPARQL update on the Triplestore.
|
void |
write(DataSource ds)
Write the contents of the Triplestore in the given data source.
|
adjustedQuery, defineQueryPrefix, namespaceForContexts, outputStream, print
public java.lang.String getImplementationName()
TripleStore
public void read(java.io.InputStream is, java.lang.String baseName, java.lang.String contextName)
TripleStore
is
- input stream containing statements that will be added to the TriplestorebaseName
- the base URI used to convert relative URI's to absolute URI'scontextName
- name of the context where statements will be addedpublic void write(DataSource ds)
TripleStore
ds
- the output data sourcepublic void print(java.io.PrintStream out)
TripleStore
out
- output stream where the summary will be writtenpublic java.util.Set<java.lang.String> contextNames()
TripleStore
public void clear(java.lang.String contextName)
TripleStore
contextName
- the context to be clearedpublic PropertyBags query(java.lang.String query)
TripleStore
query
- the text of the query, written in SPARQL query languagepublic void add(TripleStore source)
TripleStore
source
- the Triplestore containing statements to be added to this Triplestorepublic void update(java.lang.String query)
TripleStore
public void add(java.lang.String contextName, java.lang.String objNs, java.lang.String objType, PropertyBags statements)
TripleStore
contextName
- context where the statements are addedobjNs
- the namespace of the class of the new resourcesobjType
- the class of the new resourcesstatements
- properties of the resourcespublic java.lang.String add(java.lang.String contextName, java.lang.String objNs, java.lang.String objType, PropertyBag properties)
TripleStore
contextName
- the context where the statements are addedobjNs
- the namespace of the class of the new resourceobjType
- the class of the new resourceproperties
- properties of the resourcepublic void addNamespace(java.lang.String prefix, java.lang.String namespace)
TripleStore
prefix
- the prefix of the namespacenamespace
- the namespacepublic java.util.List<PrefixNamespace> getNamespaces()
TripleStore
Copyright © 2020. All rights reserved.