Has someone produced a vocabulary or set of recipes for using existing vocabularies for mapping Facebook Open Graph metdata to RDF?

asked 13 Jul '10, 11:51

ldodds's gravatar image

accept rate: 32%

The obvious answer is that Open Graph Protocol data is RDF.

So the question becomes how do we map this RDF to more traditional RDF vocabularies. Some of them are pretty easy. In Notation 3:

{ ?page og:title ?title . } => { ?page rdfs:label ?title . } .
{ ?page og:description ?d . } => { ?page rdfs:comment ?d . } .

The OGP schema itself contains these mappings as rdfs:subPropertyOf statements. (Though it misspells rdfs:comment as rdfs:comments.)

Others are less easy:

{ ?page og:longitude ?long . } =>
    { ?page foaf:primaryTopic [ foaf:based_near [ a geo:Point ; geo:long ?long ] ] . }
{ ?page og:latitude ?lat . } =>
    { ?page foaf:primaryTopic [ foaf:based_near [ a geo:Point ; geo:lat ?lat ] ] . }

Using Notation 3 and some other rules languages make this a bit tricky. How does one indicate that the two geo:Point blank nodes are in fact the same node? Not sure it can easily be done, and for these more complicated bits of mapping, a full programming language would probably come in handy.

permanent link

answered 13 Jul '10, 13:41

tobyink's gravatar image

tobyink ♦
accept rate: 26%

what @Toby suggests is called ontology matching.

permanent link

answered 13 Jul '10, 14:54

Ankit%20Jain's gravatar image

Ankit Jain
accept rate: 27%

Here is a beginning of mapping (created on WWW2010), mainly with DBPedia concepts. I made also a proposal re. including mappings for the Music Ontology. I think there could be more work done. However, on the other side the OGP guys are maybe not really interested in this kind of mapping - they like to keep their vocabulary "simple" (it's also no real RDFa). Although I see a lot of requests for further concepts and properties on the OGP mailing list. Finally, one could only hope that they will adopt the best from existing, well-defined ontologies.

permanent link

answered 13 Jul '10, 16:26

zazi's gravatar image

accept rate: 13%

It is real RDFa.

(13 Jul '10, 21:22) tobyink ♦ tobyink's gravatar image

"According to Sandro Hawke from W3C, Facebook's Open Graph platform uses RDFa "in an abbreviated, not really good modeling way."" (http://www.readwriteweb.com/archives/w3c_pleased_with_semantic_web_adoption.php)

(14 Jul '10, 13:55) zazi zazi's gravatar image

I don't know whether Sandro is being unfair on OGP, or if he's just not looked at the spec closely enough. But as the developer of an RDFa parser, an RDFa serialiser and an RDFa linter, and as a member of the RDFa Working Group, my opinion is that OGP, as specified is real RDFa.

Now, there may be some OGP publishers that violate the OGP spec, and thus the RDFa spec, but that's another matter.

(15 Jul '10, 20:25) tobyink ♦ tobyink's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 13 Jul '10, 11:51

question was seen: 4,605 times

last updated: 13 Jul '10, 16:26