0

Is it perfectly alright to refer a category resource in an ontology by using wikipedia URI? Like http://en.wikipedia.org/wiki/Category:Cuisine for Cuisines? I want to define user interests using FOAF such as:

<foaf:topic_interest>Cuisines</foaf:topic_interest>

I'm a beginner, just want to know is it possible to make this association with wikipedia? And if yes then what's the syntax? and if not then what other option do I have?

wasimbhalli
  • 5,122
  • 8
  • 45
  • 63

1 Answers1

0

You can make the association you suggest like this (assuming this is placed in the right place in a valid document):

<foaf:topic_interest>http://en.wikipedia.org/wiki/Category:Cuisine</foaf:topic_interest>

However, it would be more useful to link it to DBPedia. DBPedia extracts data from Wikipedia as RDF. The DBPedia wiki contains an example on how to link FOAF to DBpeida URIs. Thus, the example in your question would look like this:

<foaf:topic_interest>http://dbpedia.org/page/Cuisine</foaf:topic_interest>

With the link representing a dereferenceable RDF description of the URI.

dorzey
  • 193
  • 7
  • does it has all the categories of wikipedia? or I'll have to some way check before making a link? – wasimbhalli May 03 '11 at 04:35
  • I believe the Keyword Search API of the [DBpedia Lookup](http://dbpedia.org/lookup) service will allow you to check before making a link. Although, I've never used it. – dorzey May 03 '11 at 21:08
  • slight nitpick - `http://dbpedia.org/page/Cuisine` should be `http://dbpedia.org/resource/Cuisine` ie. the concept of "Cuisine" rather than the concept of "the dbpedia page about the concept of "Cuisine" " (which is a valid interest - just probably not intended) – Sweet Burlap Nov 26 '12 at 19:16