public interface IModelContainer
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCheckNodeObject(org.apache.jena.graph.Node node,
IRdfModel rdfModelObject)
Add a node object to the container.
|
void |
addSpdxElementRef(String elementRef)
Notifies the model container that a new element ref is in use.
|
org.apache.jena.rdf.model.Resource |
createResource(org.apache.jena.rdf.model.Resource duplicate,
String uri,
org.apache.jena.rdf.model.Resource type,
IRdfModel modelObject)
Create a resource in the model
|
String |
documentNamespaceToId(String externalNamespace)
Translate an external document namespace URI to an external document ID
|
String |
externalDocumentIdToNamespace(String docId)
Translate an external document ID to the external document's namespace
|
String |
getDocumentNamespace() |
org.apache.jena.rdf.model.Model |
getModel() |
String |
getNextSpdxElementRef() |
boolean |
spdxElementRefExists(String elementRef)
Returns true if the element reference already exists in the model
|
org.apache.jena.rdf.model.Model getModel()
String getDocumentNamespace()
String getNextSpdxElementRef()
boolean spdxElementRefExists(String elementRef)
id - void addSpdxElementRef(String elementRef) throws InvalidSPDXAnalysisException
elementRef - InvalidSPDXAnalysisExceptionString documentNamespaceToId(String externalNamespace)
externalNamespace - String externalDocumentIdToNamespace(String docId)
docId - org.apache.jena.rdf.model.Resource createResource(org.apache.jena.rdf.model.Resource duplicate,
String uri,
org.apache.jena.rdf.model.Resource type,
IRdfModel modelObject)
duplicate - A duplicate resource who's node and resource should be returneduri - If not null, the URI for the resource - if null, an anonomous resource will be usedtype - Type of the resourcemodelObject - the object representing this nodeboolean addCheckNodeObject(org.apache.jena.graph.Node node,
IRdfModel rdfModelObject)
node - rdfModelObject - Copyright © 2018 Linux Foundation. All Rights Reserved.