HyperAgents / hmas

An ontology to describe Hypermedia Multi-Agent Systems, interactions, and organizations.
https://purl.org/hmas/
1 stars 0 forks source link

What is the link between ldp:container and hmas:contains ? #159

Open DrLeturc opened 1 year ago

FabienGandon commented 10 months ago

Just to document that question:

The Linked Data Platform 1.0 https://www.w3.org/TR/ldp/

For basic containers the recommendation defines the containment triples whose subject is the container, whose predicate is ldp:contains, and whose objects are the URIs of the contained resources:

@prefix ldp: <http://www.w3.org/ns/ldp#>.

<http://example.org/c1/>
   a ldp:BasicContainer;
   ldp:contains <r1>, <r2>, <r3>.

In addition (and probably less relevant) for other containers a membership relation can be defined:

@prefix ldp: <http://www.w3.org/ns/ldp#>.
@prefix o: <http://example.org/ontology#>.

<http://example.org/netWorth/nw1/assets/>
   a ldp:DirectContainer;
   ldp:membershipResource <http://example.org/netWorth/nw1/>;
   ldp:hasMemberRelation o:asset;
   ldp:contains <a1>, <a2>.

And by default the ldp:member predicate is used for that membership

In addition the terminology of LDP (containers, membership, etc.) is here : https://www.w3.org/TR/ldp/#terms And the vocabulary is here https://www.w3.org/ns/ldp# ex. "Container : A Linked Data Platform RDF Source (LDP-RS) that also conforms to additional patterns and conventions for managing membership. Readers should refer to the specification defining this ontology for the list of behaviors associated with it. "