open your app. (infoeducatie 2008)

20
Open your app. Laurian Gridinoc http://purl.org/net/laur August 2008

Upload: laurian-gridinoc

Post on 11-May-2015

1.602 views

Category:

Technology


1 download

DESCRIPTION

How to open your app. with microformats, RDFa and GRDDL. Presentation made for InfoEducatie 2008, Galaciuc, Romania. (www.infoeducatie.ro)

TRANSCRIPT

Page 1: Open your app. (InfoEducatie 2008)

Open your app.Laurian Gridinochttp://purl.org/net/laur

August 2008

Page 2: Open your app. (InfoEducatie 2008)

about me, past: www.grapefruit.ro

1999–2006

Page 3: Open your app. (InfoEducatie 2008)

present: kmi.open.ac.uk

2006–2010 …

Page 4: Open your app. (InfoEducatie 2008)

Open Web

Decentralised

Transparent

Openness (welcomeness)

Hackable

Mashableopenwebfoundation.org

Page 5: Open your app. (InfoEducatie 2008)

Open Your Data

www.w3.org/2001/sw/

Page 6: Open your app. (InfoEducatie 2008)

The Sixteen Faces of Eve

“there is something that is a person, with a name of Eve and a homepage of http://example.org/~eve”

_:eve rdf:type foaf:Person .

_:eve foaf:name “Eve” .

_:eve foaf:homepage <http://example.org/~eve>.

© Ian Davis, iandavis.com/blog/2005/09/the-sixteen-faces-of-eve

Page 7: Open your app. (InfoEducatie 2008)

<rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:foaf=“http://xmlns.com/foaf/0.1/”>

<foaf:Person>

<foaf:name>Eve</foaf:name>

<foaf:homepage rdf:resource=“http://example.org/~eve”/>

</foaf:Person>

</rdf:RDF>

<rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:foaf=“http://xmlns.com/foaf/0.1/”>

<rdf:Description foaf:name=“Eve”>

<rdf:type rdf:resource=“http://xmlns.com/foaf/0.1/Person” />

<foaf:homepage rdf:resource=“http://example.org/~eve”/>

</rdf:Description>

</rdf:RDF>

Page 9: Open your app. (InfoEducatie 2008)

microformats,RDFa

Page 10: Open your app. (InfoEducatie 2008)

microformats

hCard is a HTML representation of vCard (RFC 2426)

<address class="vcard">

<a class="fn url" href="http://example.org/~eve">Eve</a>

</address>

Page 12: Open your app. (InfoEducatie 2008)

RDFa

_:eve rdf:type foaf:Person .

_:eve foaf:name "Eve" .

_:eve foaf:homepage <http://example.org/~eve>.

<a xmlns:foaf=“http://xmlns.com/foaf/0.1/” typeof=”foaf:Person” rel=”foaf:homepage” property=”foaf:name” href=”http://example.org/~eve”>Eve</a>

Page 13: Open your app. (InfoEducatie 2008)

RDFa vs. microformats

more vocabularies

namespaces

create your own voc.

combine them

precise identification (@about)

@xml:base, @xml:lang

datatypes (e.g. xsd:date)

part of XHTML next version

maybe part of (X)HTML5?

Page 14: Open your app. (InfoEducatie 2008)

microformats,RDFa

Page 15: Open your app. (InfoEducatie 2008)

GRDDL

Gleaning Resource Descriptions from Dialects of Languageswww.w3.org/TR/grddl/

glean |gliːn|verb [ trans. ]extract (information) from various sources : the information is gleaned from press clippings.• collect gradually and bit by bit : objects gleaned from local markets.• historical gather (leftover grain or other produce) after a harvest : [as n. ] ( gleaning) the conditions of farm workers in the 1890s made gleaning essential.

Page 16: Open your app. (InfoEducatie 2008)

http://ns.inria.fr/grddl/rdfa/

If you want to declare that a document contains RDFa and always uses the latest profile, add this profile to the head of your XHTML:

<head profile="http://ns.inria.fr/grddl/rdfa/">

If you want to use a specific version of the transformation, use the specific profile of that version, e.g.:

<head profile="http://ns.inria.fr/grddl/rdfa/2008/07/21/">

or reference the transformation directly, e.g.:

<head profile="http://www.w3.org/2003/g/data-view">

<link rel="transformation" href="http://ns.inria.fr/grddl/rdfa/2008/07/21/RDFa2RDFXML.xsl"/>

</head>

Page 17: Open your app. (InfoEducatie 2008)

what about hcard?

<head profile="http://www.w3.org/2003/g/data-view http://www.w3.org/2006/03/hcard">

Where http://www.w3.org/2006/03/hcard contains:

<head profile="http://www.w3.org/2003/g/data-view">

and

<p>Use of this profile licenses RDF data extracted by

<a rel="profileTransformation" href="../vcard/hcard2rdf.xsl">hcard2rdf.xsl</a>

from <a href="http://www.w3.org/2006/vcard/ns">the 2006 vCard/RDF work</a>.

</p>

Page 18: Open your app. (InfoEducatie 2008)

Your website is your API!

Things to keep in mind:

REST

LinkedData, linkeddata.org

Breadcrumbs (publish your data sources, your queries)

Page 19: Open your app. (InfoEducatie 2008)

Resources

Existing @rel values tinyurl.com/684qo2

Profile URIs tinyurl.com/2ohmak

RDFa Basics (YouTube) tinyurl.com/yqs2ax

RDFa Primer (W3C) tinyurl.com/jqysh

rdfa.info

Operator extension tinyurl.com/2b8m54

Making the Web Searchable: The Story of SearchMonkey tinyurl.com/5he7yc