Interface IRdfModel

All Known Implementing Classes:
Annotation, AnyLicenseInfo, ByteOffsetPointer, Checksum, CompoundPointer, ConjunctiveLicenseSet, 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.Resource createResource​(IModelContainer modelContainer)
    Create a resource from the Java model object
    boolean equivalent​(IRdfModel compare)
    Returns true if the compare object contains properties which would be equal if they were contained in the same RDF Model
    void setMultipleObjectsForSameNode()
    Called to signal that there are multiple objects representing the same node
    void setSingleObjectForSameNode()
    Called to signal that a newly created resource is only used for a single node
    List<String> verify()  
  • Method Details

    • createResource

      org.apache.jena.rdf.model.Resource createResource​(IModelContainer modelContainer) throws InvalidSPDXAnalysisException
      Create a resource from the Java model object
      Parameters:
      modelContainer - Contains the Jena model where to create the resource
      parentProperty -
      Returns:
      The created resource
      Throws:
      InvalidSPDXAnalysisException
    • verify

      List<String> verify()
      Returns:
      List of validation errors for any non SPDX compliant properties.
    • equivalent

      boolean equivalent​(IRdfModel compare)
      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