1

What is the difference between rdf:_1....rdf_n and rdf:_li?

Can I use these in all rdf container (Seq, Bag, Alt) or not?

unor
  • 92,415
  • 26
  • 211
  • 360

1 Answers1

3

The :_n properties are equivalent to the :li properties used in order. Anywhere where you're using :_1, :_2, etc., in order, you can use :li. Not only can you use them with all the RDF containers, you can use them with other resources too.

From the RDF/XML Syntax Specification (emphasis added):

2.15 Container Membership Property Elements: rdf:li and rdf:_n

RDF has a set of container membership properties and corresponding property elements that are mostly used with instances of the rdf:Seq, rdf:Bag and rdf:Alt classes which may be written as typed node elements. The list properties are rdf:_1, rdf:_2 etc. and can be written as property elements or property attributes as shown in Example 17. There is an rdf:li special property element that is equivalent to rdf:_1, rdf:_2 in order, explained in detail in section 7.4. The mapping to the container membership properties is always done in the order that the rdf:li special property elements appear in XML — the document order is significant. The equivalent RDF/XML to Example 17 written in this form is shown in Example 18.

Also, from RDF Vocabulary Description Language 1.0: RDF Schema (emphasis added):

5.1.5 rdfs:ContainerMembershipProperty

The rdfs:ContainerMembershipProperty class has as instances the properties rdf:_1, rdf:_2, rdf:_3 ... that are used to state that a resource is a member of a container. rdfs:ContainerMembershipProperty is a subclass of rdf:Property. Each instance of rdfs:ContainerMembershipProperty is an rdfs:subPropertyOf the rdfs:member property.

Given a container C, a triple of the form:

C rdf:_nnn O

where nnn is the decimal representation of an integer greater than 0 with no leading zeros, states that O is a member of the container C.

Container membership properties may be applied to resources other than containers.

Joshua Taylor
  • 84,998
  • 9
  • 154
  • 353