8 library(semweb/rdfs): RDFS related queries
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog Semantic Web Library 3.0
        • library(semweb/rdfs): RDFS related queries
          • Hierarchy and class-individual relations
          • Collections and Containers
            • rdfs_member/2
            • rdfs_list_to_prolog_list/2
            • rdfs_assert_list/2
            • rdfs_assert_list/3

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 or rdfs: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.