Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagenone
# _VIRTUAL_COLLECTION_URI_ = "http://localhost:3000/individual/vc123"
SELECT ?title ?description ?size ?visibility
WHERE
{
   <http://localhost:3000/individual/vc123> <http://purl.org/dc/elements/1.1/title> ?title .
   <http://localhost:3000/individual/vc123> <http://purl.org/dc/elements/1.1/description> ?description .
   <http://localhost:3000/individual/vc123> <http://purl.org/dc/elements/1.1co/size> ?size .
   <http://localhost:3000/individual/vc123> <http://purl.org/dc/elements/1.1TBD/visibility> ?visibility .
}    

...

  • size is not currently defined in VirtualCollectionRDF because I'm modeling the ORE ontology. It is defined in the Collections ontology. Is there an equivalent in the ORE ontology?
  • The implementation of visibility (i.e., PUBLIC, PRIVATE, SHARED) has not yet been fully designed.
  • From the SPARQL doc, it appears that if any one of the selected 'objects' (i.e., title, description, size, visibility) is not defined for a virtual collection, then it will not be included in the results.  I have not tested this.

...

Data Returned
  • VirtualCollectionRDF.rdf_subject
  • VirtualCollectionRDF.title
  • VirtualCollectionRDF.description
  • VirtualCollectionRDF.size             (NOTE:  Defined in Collections ontology. Is there an equivalent in the ORE ontology?)
  • VirtualCollectionRDF.visibility       (NOTE: ' Visibility' implementation is TBD.)
Challenges
  • size
  • VirtualCollectionRDF.visibility
Example Query
Code Block
languagenone
# INCOMPLETE -- Does not address pagination issues

# _CURRENT_USER_URI_ = "http://localhost:3000/individual/p234"
SELECT ?subject ?title ?description ?size ?visibility
WHERE
{
   ?subject <http://purl.org/dc/terms/creator> <http://localhost:3000/individual/p234>
   ?subject <http://purl.org/dc/elements/1.1/title> ?title .
   ?subject <http://purl.org/dc/elements/1.1/description> ?description .
   ?subject <http://purl.org/co/size> ?size .
   ?subject <http://TBD/visibility> ?visibility .
}
Notes
  • The concept of owner will not be represented by dc:creator.  See Triples Examples page for more details.
Questions
  • How does SPARQL handle sorting?
  • How does SPARQL track paginated results?  How does SPARQL specifying track tokens for retrieving the next set of search results?
  • The metadata involved in the search query and in the returned result are fairly straightforward.
  • size is not currently defined in VirtualCollectionRDF because I'm modeling the ORE ontology. It is defined in the Collections ontology. Is there an equivalent in the ORE ontology?
  • The implementation of visibility (i.e., PUBLIC, PRIVATE, SHARED) has not yet been fully designedSee notes inline with Data Returned list.

 

Watched by Me and Sorted by Collection Name

...

  • VirtualCollectionRDF.title
  • VirtualCollectionRDF.description
  • VirtualCollectionRDF.size   (NOTE:  Defined in Collections ontology. Is there an equivalent in the ORE ontology?)
Challenges
  •  Same as for "Owned by Me and Sorted by Collection Name"

...