cygri / void

An RDF schema and associated documentation for expressing metadata about RDF datasets
http://www.w3.org/TR/void/
14 stars 1 forks source link

How to reference a specific version of a vocabulary? #112

Open lorenae opened 8 years ago

lorenae commented 8 years ago

Hi: Suppose I have an RDFS vocabulary for which I have different versions that correspond to the evolution of the vocabulary. I would like to know if there is any recommendation on how to to add a reference to a specific version of a certain vocabulary.

In the vocabulary, I'm using owl:versionInfo to state the version number, and in the dataset I may use void:vocabulary to link the dataset with the vocabulary, but I couldn't find how to refer to a certain version.

The situation I'm dealing with is similar to the one described here: http://answers.semanticweb.com/questions/2815/how-do-i-knowmodel-the-applied-version-of-an-ontology-specification

Thanks in advance, Lorena

gatemezing commented 8 years ago

Hi @lorenae, my I suggest you to use dcat:distribution property to add the different versions of the vocabulary? See spec of DCAT at http://www.w3.org/TR/vocab-dcat/. Below a sample used for a vocab in LOV to store versions:

@prefix voaf: http://purl.org/vocommons/voaf# . @prefix vann: http://purl.org/vocab/vann/ . http://vocab.deri.ie/cogs a voaf:Vocabulary ; http://purl.org/dc/terms/creator http://vocab.deri.ie/cogs#andfre , http://tw.rpi.edu/web/person/TimLebo , https://plus.google.com/117319075387042980303 ; http://purl.org/dc/terms/description "Vocabulary for describing ETL and data transformation activities."@en ; http://purl.org/dc/terms/issued "2013-02-25"^^http://www.w3.org/2001/XMLSchema#date ; http://purl.org/dc/terms/modified "2014-03-10"^^http://www.w3.org/2001/XMLSchema#date ; http://purl.org/dc/terms/publisher http://deri.ie/ ; http://purl.org/dc/terms/title "COGS Vocabulary"@en ; vann:preferredNamespacePrefix "cogs" ; vann:preferredNamespaceUri "http://vocab.deri.ie/cogs#" ; http://www.w3.org/ns/dcat#distribution http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-11-25.n3 , http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-12-08.n3 , http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-02-25.n3 , http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2014-03-10.n3 ; http://www.w3.org/ns/dcat#keyword "RDF" ; http://xmlns.com/foaf/0.1/homepage "http://vocab.deri.ie/cogs.html" .

WDYT?

lorenae commented 8 years ago

Hi Ghislain:

thanks for your reply.

Your suggestion seems ok in order to record a set of available versions or distributions of a vocabulary, although I think it forces a bit the definition of dcat:Distribution. According to DCAT documentation this class refers to "the same content in different formats" ( see http://www.w3.org/TR/vocab-dcat/#class-distribution "Represents a specific available form of a dataset. Each dataset might be available in different forms, these forms might represent different formats of the dataset or different endpoints. Examples of distributions include a downloadable CSV file, an API or an RSS feed")

But I also want to add the version info to specific RDF datasets that use the vocabulary.

For example, suppose I have two different RDF datasets that use cogs vocabulary. One of these datasets uses the terms as defined in http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-11-25.n3, and the other refers to http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2014-03-10.n3 I want to be able to record this and distinguish which version is used in each RDF dataset.

any suggestions on how to represent this?

best regards, Lorena

On Wed, Aug 5, 2015 at 10:10 AM, Ghislain notifications@github.com wrote:

Hi @lorenae https://github.com/lorenae, my I suggest you to use dcat:distribution property to add the different versions of the vocabulary? See spec of DCAT at http://www.w3.org/TR/vocab-dcat/. Below a sample used for a vocab in LOV to store versions:

@prefix https://github.com/prefix voaf: http://purl.org/vocommons/voaf# . @prefix https://github.com/prefix vann: http://purl.org/vocab/vann/ . http://vocab.deri.ie/cogs a voaf:Vocabulary ; http://purl.org/dc/terms/creator http://vocab.deri.ie/cogs#andfre , http://tw.rpi.edu/web/person/TimLebo , https://plus.google.com/117319075387042980303 ; http://purl.org/dc/terms/description "Vocabulary for describing ETL and data transformation activities."@en https://github.com/en ; http://purl.org/dc/terms/issued "2013-02-25"^^http://www.w3.org/2001/XMLSchema#date ; http://purl.org/dc/terms/modified "2014-03-10"^^http://www.w3.org/2001/XMLSchema#date ; http://purl.org/dc/terms/publisher http://deri.ie/ ; http://purl.org/dc/terms/title "COGS Vocabulary"@en https://github.com/en ; vann:preferredNamespacePrefix "cogs" ; vann:preferredNamespaceUri "http://vocab.deri.ie/cogs#" ; http://www.w3.org/ns/dcat#distribution http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-11-25.n3 , http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-12-08.n3 , http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-02-25.n3 , http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2014-03-10.n3 ; http://www.w3.org/ns/dcat#keyword "RDF" ; http://xmlns.com/foaf/0.1/homepage "http://vocab.deri.ie/cogs.html" .

WDYT?

— Reply to this email directly or view it on GitHub https://github.com/cygri/void/issues/112#issuecomment-127992689.

gatemezing commented 8 years ago

Hi Lorena, Maybe I don't understand clearly your need. Regarding your last question, what about this solution? Don't forget that you can always create your own vocab for a specific need and context ;)

@prefix radion: http://www.w3.org/ns/radion# . :myDataset1 void:vocabulary http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-11-25.n3 . :myDataset2 void:vocabulary http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2014-03-10.n3 . http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-11-25.n3 a voaf:Vocabulary ; radion:version "0.1" ; . http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2014-03-10.n3 a Voaf:Vocabulary ; radion:version "0.2" ; .

lorenae commented 8 years ago

Hi Ghislain your that seems to work. I was also thinking about using dcterms:conformsTo. what do you think of this alternative?

thanks Lorena

On 8/8/15 3:25 PM, Ghislain wrote:

Hi Lorena, Maybe I don't understand clearly your need. Regarding your last question, what about this solution? Don't forget that you can always create your own vocab for a specific need and context ;)

@prefix https://github.com/prefix radion: http://www.w3.org/ns/radion# . :myDataset1 void:vocabulary http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-11-25.n3 . :myDataset2 void:vocabulary http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2014-03-10.n3 . http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2013-11-25.n3 a voaf:Vocabulary ; radion:version "0.1" ; . http://lov.okfn.org/dataset/lov/vocabs/cogs/versions/2014-03-10.n3 a Voaf:Vocabulary ; radion:version "0.2" ; .

— Reply to this email directly or view it on GitHub https://github.com/cygri/void/issues/112#issuecomment-129032267.