|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SWPNamedGraphSet
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 listOfGraphNames,
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. |
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 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 |
Method Detail |
---|
boolean swpAssert(SWPAuthority authority, ArrayList listOfAuthorityProperties)
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.
authority
- listOfAuthorityProperties
-
boolean swpAssert(SWPAuthority authority)
boolean swpQuote(SWPAuthority authority, ArrayList listOfAuthorityProperties)
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,
authority
-
boolean swpQuote(SWPAuthority authority)
boolean assertWithSignature(SWPAuthority authority, Node signatureMethod, Node digestMethod, ArrayList listOfAuthorityProperties, String keystore, String password) throws SWPBadSignatureException, SWPBadDigestException
authority
- signatureMethod
- digestMethod
- listOfAuthorityProperties
-
SWPBadSignatureException
SWPBadDigestException
boolean quoteWithSignature(SWPAuthority authority, Node signatureMethod, Node digestMethod, ArrayList listOfAuthorityProperties, String keystore, String password) throws SWPBadSignatureException, SWPBadDigestException
authority
- signatureMethod
- digestMethod
- listOfAuthorityProperties
-
SWPBadSignatureException
SWPBadDigestException
boolean assertGraphs(ArrayList listOfGraphNames, SWPAuthority authority, ArrayList listOfAuthorityProperties)
listOfGraphnames
- as Nodesauthority
- listOfAuthorityProperties
-
boolean quoteGraphs(ArrayList listOfGraphNames, SWPAuthority authority, ArrayList listOfAuthorityProperties)
boolean assertGraphsWithSignature(ArrayList listOfGraphNames, SWPAuthority authority, Node signatureMethod, Node digestMethod, ArrayList listOfAuthorityProperties, String keystore, String password) throws SWPBadSignatureException, SWPBadDigestException
listOfGraphURIs
- authority
-
SWPBadSignatureException
SWPBadDigestException
boolean verifyAllSignatures()
ExtendedIterator getAllWarrants(SWPAuthority authority)
ExtendedIterator getAllAssertedGraphs(SWPAuthority authority)
ExtendedIterator getAllQuotedGraphs(SWPAuthority authority)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |