8.2 Collections and Containers
The
RDF construct rdf:parseType
=Collection
constructs a list using the rdf:first
and rdf:next
relations.
- rdfs_member(?Resource, +Set)
- Test or generate the members of Set. Set is either
an individual of
rdf:List
orrdfs:Container
. - rdfs_list_to_prolog_list(+Set, -List)
- Convert Set, which must be an individual of
rdf:List
into a Prolog list of objects. - rdfs_assert_list(+List, -Resource)
- Equivalent to rdfs_assert_list/3
using DB =
user
. - rdfs_assert_list(+List, -Resource, +DB)
- If List is a list of resources, create an RDF list Resource that reflects these resources. Resource and the sublist resources are generated with rdf_bnode/1. The new triples are associated with the database DB.