...
Collections ontology | ORE ontology | ||
---|---|---|---|
– | unordered and ordered collections are represented by two separate class constructs, Bag and List respectively | + | unordered and ordered collections are represented by the same class construct, Aggregation |
+ | item property names are easy to understand (e.g., index, itemContent, nextItem) | – | item property names are cryptic (e.g., proxyFor, proxyIn, next) |
– | order is determined by an item property pointing to the next item, i.e., nextItem | – | order is determined by an item property pointing to the next item, i.e., next |
– | URI for the item is not associated with the collection class (e.g., List, Bag). | + | URI for the item is associated with the collection class (i.e., Aggregation) via of the aggregates property. |
+ | URI for the item is associated with the item class (i.e., Item) via the itemContent property. | + | URI for the item is associated with the item class (i.e., Proxy) via the proxyFor property. |
...
Ordered Collection Examples
...
Example 1-co: A Virtual Collection as an ordered collection of items using Collection Ontology's List with one item
...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Code Block | ||||
---|---|---|---|---|
| ||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix co: <http://purl.org/co> . <http://localhost:3000/individual/vc155> a co:List ; co:size "1"^^xsd:nonNegativeInteger ; co:firstItem <http://localhost:3000/individual/vci162> ; co:item <http://localhost:3000/individual/vci162> ; co:lastItem <http://localhost:3000/individual/vci162> . <http://localhost:3000/individual/vci162> a co:ListItem co:index "1"^^xsd:positiveInteger ; co:itemContent <http://da-rdf.library.cornell.edu/individual/b3652730> . |
...
Example 1-ore: A Virtual Collection as an ordered collection of items using ORE Ontology's Aggregation with one item
...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
...
Code Block | ||||
---|---|---|---|---|
| ||||
@prefix ore: <http://www.openarchives.org/ore/terms/> . <http://localhost:3000/individual/vc155> a ore:Aggregation ; ore:aggregates <http://da-rdf.library.cornell.edu/individual/b3652730> . |
...
Example 2-co: A Virtual Collection as an ordered collection of items using Collection Ontology's List with multiple ordered items
...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Code Block | ||||
---|---|---|---|---|
| ||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix co: <http://purl.org/co> . <http://localhost:3000/individual/vc155> a co:List ; co:size "4"^^xsd:nonNegativeInteger ; co:firstItem <http://localhost:3000/individual/vci162> ; co:item <http://localhost:3000/individual/vci162> ; co:item <http://localhost:3000/individual/vci163> ; co:item <http://localhost:3000/individual/vci164> ; co:item <http://localhost:3000/individual/vci165> ; co:lastItem <http://localhost:3000/individual/vci165> . <http://localhost:3000/individual/vci162> a co:ListItem ; co:index "1"^^xsd:positiveInteger ; co:itemContent <http://da-rdf.library.cornell.edu/individual/b3652730> ; co:nextItem <http://localhost:3000/individual/vci163> . <http://localhost:3000/individual/vci163> a co:ListItem ; co:index "2"^^xsd:positiveInteger ; co:itemContent <http://da-rdf.library.cornell.edu/individual/b3652234> ; co:nextItem <http://localhost:3000/individual/vci164> . <http://localhost:3000/individual/vci164> a co:ListItem ; co:index "3"^^xsd:positiveInteger ; co:itemContent <http://da-rdf.library.cornell.edu/individual/b3652543> ; co:nextItem <http://localhost:3000/individual/vci165> . <http://localhost:3000/individual/vci165> a co:ListItem ; co:index "4"^^xsd:positiveInteger ; co:itemContent <http://da-rdf.library.cornell.edu/individual/b3652884> . |
...
Example 2-ore: A Virtual Collection as an ordered collection of items using ORE Ontology's Aggregation with multiple ordered items
...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Code Block | ||||
---|---|---|---|---|
| ||||
@prefix ore: <http://www.openarchives.org/ore/terms/> . @prefix iana: <http://www.iana.org/assignments/relation/> . <http://localhost:3000/individual/vc155> a ore:Aggregation ; ore:aggregates <http://da-rdf.library.cornell.edu/individual/b3652730> ; ore:aggregates <http://da-rdf.library.cornell.edu/individual/b3652234> ; ore:aggregates <http://da-rdf.library.cornell.edu/individual/b3652543> . <http://localhost:3000/individual/pxy162> a ore:Proxy ; ore:proxyFor <http://da-rdf.library.cornell.edu/individual/b3652730> ; ore:proxyIn <http://localhost:3000/individual/vc155> ; iana:next <http://localhost:3000/individual/pxy163> . <http://localhost:3000/individual/pxy163> a ore:Proxy ; ore:proxyFor <http://da-rdf.library.cornell.edu/individual/b3652234> ; ore:proxyIn <http://localhost:3000/individual/vc155> ; iana:next <http://localhost:3000/individual/pxy164> . <http://localhost:3000/individual/pxy164> a ore:Proxy ; ore:proxyFor <http://da-rdf.library.cornell.edu/individual/b3652543> ; ore:proxyIn <http://localhost:3000/individual/vc155> . |
...
Unordered Collection Examples
Example 3-co: A Virtual Collection as an unordered collection of items using Collection Ontology's Bag with one item
...