You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »


  Planning | Description | Requirements | UI Mockup |  Triples Examples


Table of Contents


Ontologies

The following is a list of all ontologies used by the Triple Examples.

NamePrefixURLDetailsComments
RDF
rdf
http://www.w3.org/1999/02/22-rdf-syntax-ns#
specification 
RDF Schemardfs
http://www.w3.org/2000/01/rdf-schema#
specification 
Dublin Coredc
http://purl.org/dc/elements/1.1/
specification 
Dublin Core Termsdcterms
http://purl.org/dc/terms
specificationRequired by OA
Dublin Core Typesdcmitype
http://purl.org/dc/dcmitype
specificationRequired by OA
Contentcnt
http://www.w3.org/2011/content#
specificationRequired by OA
Collectionsco
http://purl.org/co
specification 
Open Annotationoa
http://www.w3.org/ns/oa
specification 
Friend of a Friendfoaf
http://xmlns.com/foaf/0.1
specification 

 

Virtual Collections

Virtual Collection's owner

n-triples
<??? URI WITH NETID ???> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>
Turtle
@prefix foaf:    <http://xmlns.com/foaf/0.1> .

<??? URI WITH NETID ???> a foaf:Person .

QUESTIONS:

  • What URI do we use for a user?  Does NETID make the URI unique?
  • Do we want to keep any other foaf properties beyond setting the type to foaf person?

Virtual Collection's metadata

n-triples
<http://localhost:3000/virtualcollection/changeme:155> <http://www.w3.org/2000/01/rdf-schema#label> "My Virtual Collection" .
<http://localhost:3000/virtualcollection/changeme:155> <http://www.w3.org/2000/01/rdf-schema#comment> "These are resources I am gathering together for personal use." .
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/dc/elements/1.1/creator> <??? URI WITH NETID ???> .
Turtle
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dc:      <http://purl.org/dc/elements/1.1/> .
 
<http://localhost:3000/virtualcollection/changeme:155>
  rdfs:label    "My Virtual Collection" ;
  rdfs:comment  "These are resources I am gathering together for personal use." ;
  dc:creator    ??? TODO DEFINE FOAF PERSON AND USE URI HERE ??? .

NOTE:  Potential alternatives...

  • rdfs:label – dc:title
  • rdfs:comment – dc:description

 

Virtual Collection's list of items

Example 1:  A Virtual Collection as a List with one Item

n-triples
<http://localhost:3000/virtualcollection/changeme:155> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/co#List>
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#size> "1"^^xsd:nonNegativeInteger
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#firstItem> <http://localhost:3000/virtualcollection/item/changeme:156>
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#item> <http://localhost:3000/virtualcollection/item/changeme:156>
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#lastItem> <http://localhost:3000/virtualcollection/item/changeme:156>

<http://localhost:3000/virtualcollection/item/changeme:156> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/co#ListItem>
<http://localhost:3000/virtualcollection/item/changeme:156> <http://purl.org/co#index> "1"^^xsd:positiveInteger
<http://localhost:3000/virtualcollection/item/changeme:156> <http://purl.org/co#itemContent> <http://da-rdf.library.cornell.edu/individual/b3652730>
Turtle
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix co:      <http://purl.org/co> .
 
<http://localhost:3000/virtualcollection/changeme:155> a co:List ;
  co:size       "1"^^xsd:nonNegativeInteger ;
  co:firstItem  <http://localhost:3000/virtualcollection/item/changeme:156> ;
  co:item       <http://localhost:3000/virtualcollection/item/changeme:156> ;
  co:lastItem   <http://localhost:3000/virtualcollection/item/changeme:156> .
 
<http://localhost:3000/virtualcollection/item/changeme:156> a co:ListItem
  co:index        "1"^^xsd:positiveInteger ;
  co:itemContent  <http://da-rdf.library.cornell.edu/individual/b3652730> .

 

Example 2: A Virtual Collection as a List with multiple ordered Items
n-triples
<http://localhost:3000/virtualcollection/changeme:155> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/co#List>
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#size> "4"^^xsd:nonNegativeInteger
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#firstItem> <http://localhost:3000/virtualcollection/item/changeme:156>
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#item> <http://localhost:3000/virtualcollection/item/changeme:156>
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#item> <http://localhost:3000/virtualcollection/item/changeme:157>
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#item> <http://localhost:3000/virtualcollection/item/changeme:158>
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#item> <http://localhost:3000/virtualcollection/item/changeme:159>
<http://localhost:3000/virtualcollection/changeme:155> <http://purl.org/co#lastItem> <http://localhost:3000/virtualcollection/item/changeme:159>

<http://localhost:3000/virtualcollection/changeme:155/item/changeme:156> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/co#ListItem>
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:156> <http://purl.org/co#index> "1"^^xsd:positiveInteger
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:156> <http://purl.org/co#itemContent> <http://da-rdf.library.cornell.edu/individual/b3652730>
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:156> <http://purl.org/co#nextItem> <http://localhost:3000/virtualcollection/item/changeme:157>

<http://localhost:3000/virtualcollection/changeme:155/item/changeme:157> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/co#ListItem>
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:157> <http://purl.org/co#index> "2"^^xsd:positiveInteger
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:157> <http://purl.org/co#itemContent> <http://da-rdf.library.cornell.edu/individual/b3652234>
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:157> <http://purl.org/co#nextItem> <http://localhost:3000/virtualcollection/item/changeme:158>

<http://localhost:3000/virtualcollection/changeme:155/item/changeme:158> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/co#ListItem>
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:158> <http://purl.org/co#index> "3"^^xsd:positiveInteger
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:158> <http://purl.org/co#itemContent> <http://da-rdf.library.cornell.edu/individual/b3652543>
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:158> <http://purl.org/co#nextItem> <http://localhost:3000/virtualcollection/item/changeme:159>

<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/co#ListItem>
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159> <http://purl.org/co#index> "4"^^xsd:positiveInteger
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159> <http://purl.org/co#itemContent> <http://da-rdf.library.cornell.edu/individual/b3652884>

Turtle
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix co:      <http://purl.org/co> .

<http://localhost:3000/virtualcollection/changeme:155> a co:List ;
  co:size       "4"^^xsd:nonNegativeInteger ;
  co:firstItem  <http://localhost:3000/virtualcollection/item/changeme:156> ;
  co:item       <http://localhost:3000/virtualcollection/item/changeme:156> ;
  co:item       <http://localhost:3000/virtualcollection/item/changeme:157> ;
  co:item       <http://localhost:3000/virtualcollection/item/changeme:158> ;
  co:item       <http://localhost:3000/virtualcollection/item/changeme:159> ;
  co:lastItem   <http://localhost:3000/virtualcollection/item/changeme:159> .
 
<http://localhost:3000/virtualcollection/item/changeme:156> a co:ListItem ;
  co:index        "1"^^xsd:positiveInteger ;
  co:itemContent  <http://da-rdf.library.cornell.edu/individual/b3652730> ;
  co:nextItem     <http://localhost:3000/virtualcollection/item/changeme:157> .

<http://localhost:3000/virtualcollection/item/changeme:157> a co:ListItem ;
  co:index        "2"^^xsd:positiveInteger ;
  co:itemContent  <http://da-rdf.library.cornell.edu/individual/b3652234> ;
  co:nextItem     <http://localhost:3000/virtualcollection/item/changeme:158> .

<http://localhost:3000/virtualcollection/item/changeme:158> a co:ListItem ;
  co:index        "3"^^xsd:positiveInteger ;
  co:itemContent  <http://da-rdf.library.cornell.edu/individual/b3652543> ;
  co:nextItem     <http://localhost:3000/virtualcollection/item/changeme:159> .

<http://localhost:3000/virtualcollection/item/changeme:159> a co:ListItem ;
  co:index        "4"^^xsd:positiveInteger ;
  co:itemContent  <http://da-rdf.library.cornell.edu/individual/b3652884> .

 

Comments

Comments as Free Form Text Annotation

n-triples
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159/comment/changeme:93> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/oa#Annotation> .
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159/comment/changeme:93> <http://www.w3.org/ns/oa#hasTarget> <http://localhost:3000/virtualcollection/item/changeme:156> .
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159/comment/changeme:93> <http://www.w3.org/ns/oa#hasBody> <http://localhost:3000/annotations/bodies/3652730_changeme:93> .
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159/comment/changeme:93> <http://www.w3.org/ns/oa#motivatedBy> <http://www.w3.org/ns/oa#Comments> .

<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159/comment/changeme:93/body> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/dcmitype/Text> .
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159/comment/changeme:93/body> <http://www.w3.org/2011/content#chars> "This is my favorite book." .
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159/comment/changeme:93/body> <http://purl.org/dc/terms/format> "text/plain" .
 
Turtle
@prefix rdf:      <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dcterms:  <http://purl.org/dc/terms> .
@prefix dcmitype: <http://purl.org/dc/dcmitype> .
@prefix cnt:      <http://www.w3.org/2011/content#> .
@prefix oa:       <http://www.w3.org/ns/oa> .
 
<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159/comment/changeme:93> a oa:Annotation ;
  oa:hasTarget <http://localhost:3000/virtualcollection/item/changeme:156> ;
  oa:hasBody <http://localhost:3000/annotations/bodies/3652730_changeme:93> ;
  oa:motivatedBy oa:Comments .

<http://localhost:3000/virtualcollection/changeme:155/item/changeme:159/comment/changeme:93/body> a dcmitype:Text ;
  cnt:chars      "This is my favorite book." ;
  dcterms:format "text/plain" .

QUESTIONS: about URI generation...

  • URI for the annotation and annotation body are generated to be unique.
    • Currently shows structure used by Hydra implementation using pid assigned from Hydra UI used to create the annotation which was used for the initial annotation demo at Stanford.  This may not apply going forward.
    • Actual structure of URI is TBA
    • Would this URI be the same as the URL that would allow access to the comment via the web?
  • Original demo at Stanford included a see also property for the annotation.  The see also link was the URL to the visual representation on a webpage.
    • Do we want something similar?
  • These same questions apply to virtual collections.

 

 

  • No labels