Create a data model in Omeka-S

250 views
Skip to first unread message

Franck Dupont

unread,
Jan 26, 2016, 8:43:01 AM1/26/16
to Omeka Dev
Hi there,

I must add a data model for my project : I want to add specific (non DC, Bibo or FOAF) input fields in the admin form.

I wonder how I should do that.

Should I add a specific (non-standardize) vocabulary ?

Thanks.

Franck.

Jim Safley

unread,
Jan 26, 2016, 11:36:32 AM1/26/16
to Omeka Dev
Hi Franck,

You'll need to import a vocabulary that includes the properties you want. We highly recommend that you use an existing vocabulary---there are many from a wide range of domains. Some are hosted at the Open Knowledge Foundation: http://lov.okfn.org/dataset/lov/.

However, we recognize that a few users work in an underrepresented domain and need to create their own. We haven't written documentation about this yet, but you can find examples of the RDF vocabulary syntax online. Some of the more technical resources are W3C's "RDF Schema 1.1" https://www.w3.org/TR/rdf-schema/ and "Best Practice Recipes for Publishing RDF Vocabularies" https://www.w3.org/TR/swbp-vocab-pub/. You can find the RDF/XML files that we use to import the default vocabularies at omeka-s/data/vocabularies/.

Jim

Franck

unread,
Jan 27, 2016, 5:04:50 AM1/27/16
to omek...@googlegroups.com

Hi Jim,

Thanks for your reply.

I intend to use existants vocabs to the extent possible, and complete with new properties for specific values.

My actual problem is that I'm unable to create classes within my new vocabulary.

For example, if I delete the FOAF vocab from Omeka-S and use /data/vocabularies/foaf.rdf to recreate it, it doesn't work : the vocab is added but with 0 classe and 0 property (see attachment).

I tried to add other vocabs, but every time the vocab is added whitout classes & properties.

An idea ?

Thanks.

Franck.


--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omeka-dev+...@googlegroups.com.
To post to this group, send email to omek...@googlegroups.com.
Visit this group at https://groups.google.com/group/omeka-dev.
For more options, visit https://groups.google.com/d/optout.

foaf-adding.jpg
foaf-added.jpg

John Flatness

unread,
Jan 27, 2016, 9:32:19 AM1/27/16
to omek...@googlegroups.com

I believe the specific issue with your FOAF attempt is that the actual namespace URI for FOAF is http://xmlns.com/foaf/0.1/ whereas you provided the URI to the spec document.

The importer needs to receive the exact correct namespace URI, because it uses the URI to tell which properties and classes are actually "in" the vocab being imported.

The same issue could be to blame for your problems when attempting to use other vocabs as well.

-John

Franck Dupont

unread,
Jan 27, 2016, 11:35:14 AM1/27/16
to Omeka Dev
The FOAF URI was the problem, thanks. It's because the browser redirect from http://xmlns.com/foaf/0.1/ to the specs :/

So, if I want to add my own vocabulary (to complete existants), I must write a .rdf file (based on the /data/vocabularies files), but how do I proceed for the namespace ?

Franck.

Jim Safley

unread,
Jan 27, 2016, 11:43:38 AM1/27/16
to Omeka Dev
If you want to be thorough, follow the recommendations outlined in "Best Practice Recipes for Publishing RDF Vocabularies" https://www.w3.org/TR/swbp-vocab-pub/

Otherwise, the namespace can be any unique URI, preferably one under your control.

-Jim

Patrick Murray-John

unread,
Jan 28, 2016, 9:39:53 AM1/28/16
to omek...@googlegroups.com
It might be too heavy for your needs (and I haven't used it in a while), but Protege is a good tool to guide building vocabularies http://protege.stanford.edu

Patrick

Franck

unread,
Jan 29, 2016, 4:47:53 AM1/29/16
to omek...@googlegroups.com
Many thanks to Omeka team for your help. 

Indeed, Protege can be very helpfull.

Lastly, a final question: 

Is this sementic approach (with search of existants vocabs / writing new vocabs) will be the only way to modifify the data model in Omeka-S ?









Jim Safley

unread,
Jan 29, 2016, 12:31:28 PM1/29/16
to Omeka Dev
Yes, the only way to add classes and properties is to import vocabularies. We strongly encourage the use of existing vocabularies to promote interoperability with other systems and to avoid polluting the Semantic Web with informal domain models. We do offer "resource templates" in which you can clarify the extent and meaning of existing properties for your specific purpose.

-Jim
Reply all
Reply to author
Forward
0 new messages