Class PropertyImpl

All Implemented Interfaces:
FrontsNode, Property, RDFNode, Resource

public class PropertyImpl extends ResourceImpl implements Property
An implementation of Property.
  • Field Details

  • Constructor Details

    • PropertyImpl

      public PropertyImpl(String uri)
      Creates new PropertyImpl
    • PropertyImpl

      public PropertyImpl(String nameSpace, String localName)
    • PropertyImpl

      public PropertyImpl(String uri, ModelCom m)
    • PropertyImpl

      public PropertyImpl(String nameSpace, String localName, ModelCom m)
    • PropertyImpl

      public PropertyImpl(Node n, EnhGraph m)
    • PropertyImpl

      public PropertyImpl(String nameSpace, String localName, int ordinal, ModelCom m)
  • Method Details

    • inModel

      public Property inModel(Model m)
      Description copied from interface: Resource
      Override RDFNode.inModel() to produce a statically-typed Resource in the given Model.
      Specified by:
      inModel in interface Property
      Specified by:
      inModel in interface RDFNode
      Specified by:
      inModel in interface Resource
      Overrides:
      inModel in class ResourceImpl
      Parameters:
      m - a model to move the node to
      Returns:
      this, if it's already in m (or no model), a copy in m otherwise
    • isProperty

      public boolean isProperty()
      Specified by:
      isProperty in interface Property
    • getOrdinal

      public int getOrdinal()
      Description copied from interface: Property
      Returns the ordinal value of a containment property.

      RDF containers use properties of the form _1, _2, _3 etc to represent the containment relationship between the container and the objects it contains. When invoked on such a containment property, this method returns the integer part of the property name. When invoked on other properties, it returns 0.

      Specified by:
      getOrdinal in interface Property
      Returns:
      The ordinal value of a containment property, or 0 otherwise.