|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fuberlin.wiwiss.ng4j.impl.NamedGraphSetIO de.fuberlin.wiwiss.ng4j.impl.NamedGraphSetImpl de.fuberlin.wiwiss.ng4j.swp.impl.SWPNamedGraphSetImpl
public class SWPNamedGraphSetImpl
Last commit info : $Author: erw $ $Date: 2005/10/29 18:35:36 $ $Revision: 1.13 $
Constructor Summary | |
---|---|
SWPNamedGraphSetImpl()
|
Method Summary | |
---|---|
boolean |
assertGraphs(ArrayList listOfGraphNames,
SWPAuthority authority,
ArrayList listOfAuthorityProperties)
Given an list of graph names and an SWP authority, assert each listed graph with this authority. |
boolean |
assertGraphsWithSignature(ArrayList listOfGraphURIs,
SWPAuthority authority,
Node signatureMethod,
Node digestMethod,
ArrayList listOfAuthorityProperties,
String keystore,
String password)
Given an list of graphs and an SWP Authority, assert each graph in the graphset with this Authority. |
boolean |
assertWithSignature(SWPAuthority authority,
Node signatureMethod,
Node digestMethod,
ArrayList listOfAuthorityProperties,
String keystore,
String password)
Same as swpAssert, except instead of simply asserting a graph, we sign the asserted graph with a digital signature according to the specified signatureMethod. |
protected NamedGraph |
createNamedGraphInstance(Node graphName)
|
protected SWPNamedGraph |
createNewWarrantGraph()
|
ExtendedIterator |
getAllAssertedGraphs(SWPAuthority authority)
Returns an iterator over all named graphs asserted by a given authority. |
ExtendedIterator |
getAllQuotedGraphs(SWPAuthority authority)
Returns an iterator over all named graphs quoted by a given authority. |
ExtendedIterator |
getAllWarrants(SWPAuthority authority)
Returns an iterator over all SWPWarrants for a given authority. |
boolean |
quoteGraphs(ArrayList listOfGraphNames,
SWPAuthority authority,
ArrayList listOfAuthorityProperties)
|
boolean |
quoteWithSignature(SWPAuthority authority,
Node signatureMethod,
Node digestMethod,
ArrayList listOfAuthorityProperties,
String keystore,
String password)
Same as swpQuote, except instead of simply quoting a graph, we sign the quoted graph with a digital signature according to the specified signatureMethod. |
boolean |
swpAssert(SWPAuthority authority)
|
boolean |
swpAssert(SWPAuthority authority,
ArrayList listOfAuthorityProperties)
Given an SWP Authority, assert all graphs in the graphset with this Authority. |
boolean |
swpQuote(SWPAuthority authority)
|
boolean |
swpQuote(SWPAuthority authority,
ArrayList listOfAuthorityProperties)
Given an SWP Authority, quote all graphs in the graphset with this Authority. |
boolean |
verifyAllSignatures()
For all signature graphs in the set, verify all signatures. |
Methods inherited from class de.fuberlin.wiwiss.ng4j.impl.NamedGraphSetImpl |
---|
addGraph, addQuad, asJenaGraph, asJenaModel, clear, close, containsGraph, containsGraph, containsQuad, countGraphs, countQuads, createGraph, createGraph, findQuads, findQuads, getGraph, getGraph, isEmpty, listGraphs, removeGraph, removeGraph, removeQuad |
Methods inherited from class de.fuberlin.wiwiss.ng4j.impl.NamedGraphSetIO |
---|
read, read, read, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.fuberlin.wiwiss.ng4j.NamedGraphSet |
---|
addGraph, addQuad, asJenaGraph, asJenaModel, clear, close, containsGraph, containsGraph, containsQuad, countGraphs, countQuads, createGraph, createGraph, findQuads, findQuads, getGraph, getGraph, isEmpty, listGraphs, read, read, read, removeGraph, removeGraph, removeQuad, write, write |
Constructor Detail |
---|
public SWPNamedGraphSetImpl()
Method Detail |
---|
public boolean swpAssert(SWPAuthority authority, ArrayList listOfAuthorityProperties)
SWPNamedGraphSet
Given an SWP Authority, assert all graphs in the graphset with this Authority. This will add a warrant graph asserting all other graphs to the graph set. The listOfAuthorityProperties contains list of properties names (as nodes) describing the authority. These properties will be included into the warrant graph, e.g. foaf:name, foaf:mbox
The new graph will be named using a UUID. If the Authority doesn't have a URI, then a blank node will be used to identify the authority and a additional triple containing the foaf:mbox adress of the authority will be added. Return true if successful.
swpAssert
in interface SWPNamedGraphSet
public boolean swpAssert(SWPAuthority authority)
swpAssert
in interface SWPNamedGraphSet
public boolean swpQuote(SWPAuthority authority, ArrayList listOfAuthorityProperties)
SWPNamedGraphSet
Given an SWP Authority, quote all graphs in the graphset with this Authority.
Quotes are not as strong semantically as assertions. Quotes are really used when using second hand information, i.e. the Authority is not the creator of the original graph.
The listOfAuthorityProperties contains list of properties names (as nodes) describing the authority. These properties will be included into the warrant graph, e.g. foaf:name, foaf:mbox,
swpQuote
in interface SWPNamedGraphSet
public boolean swpQuote(SWPAuthority authority)
swpQuote
in interface SWPNamedGraphSet
public boolean assertGraphs(ArrayList listOfGraphNames, SWPAuthority authority, ArrayList listOfAuthorityProperties)
SWPNamedGraphSet
assertGraphs
in interface SWPNamedGraphSet
public boolean quoteGraphs(ArrayList listOfGraphNames, SWPAuthority authority, ArrayList listOfAuthorityProperties)
quoteGraphs
in interface SWPNamedGraphSet
public boolean assertWithSignature(SWPAuthority authority, Node signatureMethod, Node digestMethod, ArrayList listOfAuthorityProperties, String keystore, String password) throws SWPBadSignatureException, SWPBadDigestException
SWPNamedGraphSet
assertWithSignature
in interface SWPNamedGraphSet
SWPBadSignatureException
SWPBadDigestException
public boolean quoteWithSignature(SWPAuthority authority, Node signatureMethod, Node digestMethod, ArrayList listOfAuthorityProperties, String keystore, String password) throws SWPBadSignatureException
SWPNamedGraphSet
quoteWithSignature
in interface SWPNamedGraphSet
SWPBadSignatureException
public boolean assertGraphsWithSignature(ArrayList listOfGraphURIs, SWPAuthority authority, Node signatureMethod, Node digestMethod, ArrayList listOfAuthorityProperties, String keystore, String password) throws SWPBadSignatureException
SWPNamedGraphSet
assertGraphsWithSignature
in interface SWPNamedGraphSet
SWPBadSignatureException
public ExtendedIterator getAllWarrants(SWPAuthority authority)
SWPNamedGraphSet
getAllWarrants
in interface SWPNamedGraphSet
public ExtendedIterator getAllAssertedGraphs(SWPAuthority authority)
SWPNamedGraphSet
getAllAssertedGraphs
in interface SWPNamedGraphSet
public ExtendedIterator getAllQuotedGraphs(SWPAuthority authority)
SWPNamedGraphSet
getAllQuotedGraphs
in interface SWPNamedGraphSet
public boolean verifyAllSignatures()
SWPNamedGraphSet
verifyAllSignatures
in interface SWPNamedGraphSet
protected NamedGraph createNamedGraphInstance(Node graphName)
createNamedGraphInstance
in class NamedGraphSetImpl
protected SWPNamedGraph createNewWarrantGraph()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |