innoq / iqvoc

iQvoc - A SKOS(-XL) Vocabulary Management System for the Semantic Web
http://iqvoc.net/
Other
117 stars 44 forks source link

Move collections to default namespace #306

Closed mjansing closed 10 years ago

mjansing commented 10 years ago

Currently collections are referenced in the default namespace but referencing concepts use a separate collection-namespace (/collections). This PR removes the collection-namespace and strictly uses the default namespace for collections.

Example:

# a collection
@prefix : <http://try.iqvoc.net/>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.

:indoors a skos:Collection;  # <------- collection in default namespace
         skos:prefLabel "indoors"@en;
         skos:member :audiophilia;
...
# a concept
@prefix : <http://try.iqvoc.net/>.
@prefix coll: <http://try.iqvoc.net/collections/>.
@prefix schema: <http://try.iqvoc.net/schema#>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.

:achievement_hobbies skos:prefLabel "Achievement hobbies"@en.
:amateur_radio a skos:Concept;
               schema:memberOf coll:indoors;  # <------- Parent collection in :coll-namespace
               skos:inScheme :scheme;
               skos:prefLabel "Amateur radio"@en;
               skos:broader :achievement_hobbies.