Class RichResourcesList

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterable<org.apache.jena.rdf.model.Resource>, Collection<org.apache.jena.rdf.model.Resource>, List<org.apache.jena.rdf.model.Resource>, RandomAccess

    public class RichResourcesList
    extends ArrayList<org.apache.jena.rdf.model.Resource>

    A rich resource is an RDF resource with an attached model. A RichResourcesList contains an ordered list of resources, with a shared model containing their combined description.

    Author:
    Ian Dickinson, Epimorphics (mailto:ian@epimorphics.com)
    See Also:
    Serialized Form
    • Constructor Detail

      • RichResourcesList

        public RichResourcesList()
      • RichResourcesList

        public RichResourcesList​(org.apache.jena.rdf.model.Model m)
    • Method Detail

      • add

        public boolean add​(org.apache.jena.rdf.model.Resource r)
        Add a resource to the list. Add the model that r is attached to to this list's description model, and ensure that the resource that is added to the list is attached to the combined model.
        Specified by:
        add in interface Collection<org.apache.jena.rdf.model.Resource>
        Specified by:
        add in interface List<org.apache.jena.rdf.model.Resource>
        Overrides:
        add in class ArrayList<org.apache.jena.rdf.model.Resource>
        Parameters:
        r - The resource to add to the model
      • add

        public boolean add​(org.apache.jena.rdf.model.Resource r,
                           org.apache.jena.rdf.model.Model rDescription)
        Add a resource to the list, and add the given description model to the combined description.
        Parameters:
        r - A resource to add
        rDescription - A description model to add
        Returns:
      • addDescription

        public void addDescription​(org.apache.jena.rdf.model.Model m)
        Add a description model to the combined model for this list.
        Parameters:
        m -
      • description

        public org.apache.jena.rdf.model.Model description()
        Return the combined description model for this list.
        Returns: