Package org.spdx.rdfparser.model
Interface IRdfModel
- All Known Implementing Classes:
Annotation,AnyLicenseInfo,ByteOffsetPointer,Checksum,CompoundPointer,ConjunctiveLicenseSet,CrossRef,DisjunctiveLicenseSet,DoapProject,ExternalDocumentRef,ExternalRef,ExternalSpdxElement,ExtractedLicenseInfo,License,LicenseException,LicenseSet,LineCharPointer,ListedLicenseException,OrLaterOperator,RdfModelObject,ReferenceType,Relationship,SimpleLicensingInfo,SinglePointer,SpdxConstantElement,SpdxDocument,SpdxElement,SpdxFile,SpdxItem,SpdxListedLicense,SpdxNoAssertionElement,SpdxNoAssertionLicense,SpdxNoneElement,SpdxNoneLicense,SpdxPackage,SpdxSnippet,StartEndPointer,WithExceptionOperator
public interface IRdfModel
Interface to translate from a Java model to a Jena RDF model
- Author:
- Gary O'Neall
-
Method Summary
Modifier and Type Method Description org.apache.jena.rdf.model.ResourcecreateResource(IModelContainer modelContainer)Create a resource from the Java model objectbooleanequivalent(IRdfModel compare)Returns true if the compare object contains properties which would be equal if they were contained in the same RDF ModelvoidsetMultipleObjectsForSameNode()Called to signal that there are multiple objects representing the same nodevoidsetSingleObjectForSameNode()Called to signal that a newly created resource is only used for a single nodeList<String>verify()
-
Method Details
-
createResource
org.apache.jena.rdf.model.Resource createResource(IModelContainer modelContainer) throws InvalidSPDXAnalysisExceptionCreate a resource from the Java model object- Parameters:
modelContainer- Contains the Jena model where to create the resourceparentProperty-- Returns:
- The created resource
- Throws:
InvalidSPDXAnalysisException
-
verify
- Returns:
- List of validation errors for any non SPDX compliant properties.
-
equivalent
Returns true if the compare object contains properties which would be equal if they were contained in the same RDF Model- Parameters:
compare-- Returns:
-
setMultipleObjectsForSameNode
void setMultipleObjectsForSameNode()Called to signal that there are multiple objects representing the same node -
setSingleObjectForSameNode
void setSingleObjectForSameNode()Called to signal that a newly created resource is only used for a single node
-