Class MultiStatementLink

java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractReifiedResource<URI>
org.eclipse.lyo.oslc4j.core.model.MultiStatementLink
All Implemented Interfaces:
IReifiedResource<URI>

public class MultiStatementLink extends AbstractReifiedResource<URI>
Holds multiple arbitrary reified statements associated with a link.

Important: This class is designed for unmarshalling only. It captures reified metadata when reading RDF data, but this metadata is not preserved during serialization (marshalling). When a MultiStatementLink is re-serialized to RDF, only the URI reference is written; all statements stored in the internal map are discarded.

This means that round-trip processing (read → modify → write) will lose the reified metadata. If you need to preserve reified statements during serialization, you must use IExtendedResource with appropriate OSLC annotations, or implement custom marshalling logic.

  • Constructor Details

    • MultiStatementLink

      public MultiStatementLink()
    • MultiStatementLink

      public MultiStatementLink(URI resource)
  • Method Details

    • setStatements

      public void setStatements(Map<QName,Object> statements)
    • getStatements

      public Map<QName,Object> getStatements()
    • addStatement

      public void addStatement(QName qName, Object object)