RDF/RDFa now part of Drupal core

View: New views
3 Messages — Rating Filter:   Alert me  

RDF/RDFa now part of Drupal core

by Stephane Corlosquet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

After several months of research, coding, sprints and patch reviews, the main RDF patch has been committed to Drupal core! (Thanks Dries!) This introduces a basic RDF API which maps the Drupal data structure to RDF.. These mappings are then automatically exported as RDFa throughout the site.

To give you a sneak preview of the code it generates, I've put up a Drupal 7 site at http://drupalrdf.openspring.net/ for testing purposes. We still have some bugs to fix but the bulk of it is working. I'm hoping to get feedback from the RDF community about the RDFa it generates. Please try it with your favorite RDFa parser and report any bug you encounter. You will find some dummy RDF properties/classes sometimes but we'll fix them soon. Note that the RDF mappings are fairly independent from the the actual API since the mapping definitions are centralized [2] and are not hardcoded in the HTML (hereby allowing exports in other RDF serialization formats).

Some examples:
A blog post with comments http://drupalrdf.openspring.net/node/3
Forum page http://drupalrdf.openspring.net/node/4
Static page http://drupalrdf.openspring.net/about

Drupal 7 is still in development phase. The first beta releases should come out in the coming months, and the final release in the new year. Our priority is to fix all remaining bugs [3] and then agree on the best mappings which will come pre-installed in core. I will send more emails on specific issues, so if you're interested make sure to subscribe to foaf-dev@..., sioc-dev@... and public-rdf-in-xhtml-tf@....

For those attending ISWC next week, I'll present the research work which was used to build RDF in Drupal core, see paper [4]. See you on Tuesday afternoon in the Semantic Web In Use Track!

Stephane.

[1] RDF mapping API http://api.drupal.org/api/function/hook_rdf_mapping/7
[2] Open issues http://drupal.org/project/issues/search/drupal?status[]=Open&issue_tags=RDF
[3] Report an issue http://drupal.org/project/issues/drupal
[4] Produce and Consume Linked Data with Drupal! http://openspring.net/sites/openspring.net/files/corl-etal-2009iswc.pdf


Re: RDF/RDFa now part of Drupal core

by melvincarvalho :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 22, 2009 at 8:02 PM, Stephane Corlosquet
<scorlosquet@...> wrote:

> Hi,
>
> After several months of research, coding, sprints and patch reviews, the
> main RDF patch has been committed to Drupal core! (Thanks Dries!) This
> introduces a basic RDF API which maps the Drupal data structure to RDF.
> These mappings are then automatically exported as RDFa throughout the site.
>
> To give you a sneak preview of the code it generates, I've put up a Drupal 7
> site at http://drupalrdf.openspring.net/ for testing purposes. We still have
> some bugs to fix but the bulk of it is working. I'm hoping to get feedback
> from the RDF community about the RDFa it generates. Please try it with your
> favorite RDFa parser and report any bug you encounter. You will find some
> dummy RDF properties/classes sometimes but we'll fix them soon. Note that
> the RDF mappings are fairly independent from the the actual API since the
> mapping definitions are centralized [2] and are not hardcoded in the HTML
> (hereby allowing exports in other RDF serialization formats).
>
> Some examples:
> A blog post with comments http://drupalrdf.openspring.net/node/3
> Forum page http://drupalrdf.openspring.net/node/4
> Static page http://drupalrdf.openspring.net/about
>
> Drupal 7 is still in development phase. The first beta releases should come
> out in the coming months, and the final release in the new year. Our
> priority is to fix all remaining bugs [3] and then agree on the best
> mappings which will come pre-installed in core. I will send more emails on
> specific issues, so if you're interested make sure to subscribe to
> foaf-dev@..., sioc-dev@... and
> public-rdf-in-xhtml-tf@....
>
> For those attending ISWC next week, I'll present the research work which was
> used to build RDF in Drupal core, see paper [4]. See you on Tuesday
> afternoon in the Semantic Web In Use Track!

Fantastic work, congrats!

>
> Stephane.
>
> [1] RDF mapping API http://api.drupal.org/api/function/hook_rdf_mapping/7
> [2] Open issues
> http://drupal.org/project/issues/search/drupal?status[]=Open&issue_tags=RDF
> [3] Report an issue http://drupal.org/project/issues/drupal
> [4] Produce and Consume Linked Data with Drupal!
> http://openspring.net/sites/openspring.net/files/corl-etal-2009iswc.pdf
>
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups
> "SIOC-Dev" group.
> To post to this group, send email to sioc-dev@...
> To unsubscribe from this group, send email to
> sioc-dev+unsubscribe@...
> For more options, visit this group at
> http://groups.google.com/group/sioc-dev?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>


Re: [foaf-dev] RDF/RDFa now part of Drupal core

by Toby Inkster-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-10-22 at 14:02 -0400, Stephane Corlosquet wrote:
> A blog post with comments http://drupalrdf.openspring.net/node/3

"""
<http://drupalrdf.openspring.net/node/3> a sioct:Weblog .
"""

Should be sioct:BlogPost I think.

> Forum page http://drupalrdf.openspring.net/node/4

"""
<http://drupalrdf.openspring.net/node/4> a sioct:ForumTopic,
sioct:Post .
"""

SIOC defines neither of those types. You probably want sioct:BoardPost
and/or sioc:Post.

"""
<http://drupalrdf.openspring.net/forum/4> a sioct:Container .
"""

Also not defined. sioc:Container is what you want, though you could go
more specific with sioc:Forum or sioct:MessageBoard.

> Static page http://drupalrdf.openspring.net/about

Looks good.

Comments that apply to all the pages:

1. Would be nice to include http://www.w3.org/1999/xhtml/vocab in the
<head profile> as recommended by XHTML+RDFa spec.

2. This:
        <meta property="dc:title" content="About" about="/about" />
        <title>About | RDFa in Drupal testing site</title>
could be combined into one element:
        <title about="/about" property="dc:title" content="About"
          >About | RDFa in Drupal testing site</title>

3. And in the above, the @about attribute is not really needed, as
RDFa's default subject URI is the page itself.

        <title property="dc:title" content="About"
          >About | RDFa in Drupal testing site</title>

Though I don't claim to know much about Drupal's internal architecture.
Perhaps there is an important reason to be explicit about the subject
URI (e.g. the content can be served up at multiple locations).

--
Toby A Inkster
<mailto:mail@...>
<http://tobyinkster.co.uk>