<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>April</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>:me owl:sameAs flickr:33669349@N00 .</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Alexandre Passant</string-name>
          <email>alexandre.passant@paris4.sorbonne.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>LaLIC</institution>
          ,
          <addr-line>Université Paris-Sorbonne 28, rue Serpente 75006 Paris</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2008</year>
      </pub-date>
      <volume>22</volume>
      <issue>2008</issue>
      <abstract>
        <p>In order to release the Social Semantic Web and solve dataportability issues, there is a need from Web 2.0 providers to open their content and deliver it in a machine-readable way. Modeling it with vocabularies such as FOAF, SIOC, as well as reusing data from the Linked Data initiative like DBpedia or GeoNames can help to achieve this task. The goal of this demo is to showcase an RDF exporter for Flickr pro les that acts such a way.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>EXPORTER OVERVIEW</title>
      <p>
        Describing people, user accounts and content using
Semantic Web technologies o ers standardized ways to query,
browse and reuse it. Moreover, it lets this data enter the
Linked Data Web rather than being part of a closed-world,
proprietary, data silo. The Flickr wrapper1 described here
provides a way to model a Flickr user account in RDF using
well-known vocabularies like FOAF[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and SIOC[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. It is a
simple application that uses PHP bindings2 for the Flickr
API3 to retrieve user information and then translates it into
RDF.
      </p>
    </sec>
    <sec id="sec-2">
      <title>USED VOCABULARIES</title>
      <p>The exporter mainly uses the following vocabularies and
reference datasets to export user accounts:</p>
      <p>FOAF - as a standard vocabulary to model people
and their relationships, FOAF is used to represent the
owner of a Flickr account (foaf:Person), his
proper</p>
      <sec id="sec-2-1">
        <title>1http://apassant.net/home/2007/12/ ickrdf/ 2http://php ickr.com/ 3http://www. ickr.com/services/api/</title>
        <p>
          ties and links with other people (foaf:knows) retrieved
from his Flickr contacts;
SIOC - as a model to describe activities of online
communities, recently accepted as a W3C submission, SIOC
is used to represent user accounts (sioc:User) related
to their owner (foaf:holdsAccount) and groups they
may belong to (sioc:UserGroup and sioc:member_of).
Moreover, the SIOC types module4 is used to represent
user galleries (sioct:ImageGallery and sioc:owner_of);
GeoNames5 - since Flickr allows any user to mention
his location, the script relies on the GeoNames
webservice6 to nd the related place URI, and thus uses
the geonames:locatedIn property and URI of
existing geonames:Feature resource to link a user to its
location. Since most geonames:Feature instances are
linked to DBPedia[
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] with owl:sameAs, it o ers an
automatic way to link the pro le to other URIs. Yet,
this feature may give incorrect results if the location
has not been precisely de ned;
Lingvoj7 - since Flickr groups administrators can
dene the language used in their groups, the Lingvoj
vocabulary is used in association with DublinCore to
represent the language used within a group (dc:language
and lingvoj:Lingvo).
3.
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>DEFERENCABLE URIS</title>
      <p>
        Each exported people, user, and group is assigned a
speci c non-informative resource URI. Each URI is
deferencable, and uses content-negociation principles to redirect
either to the Flickr.com user page if browsed with an HTML
browser, or to the RDF le that contains all the statements
about the user, account or group if browsed with an RDF
browser. Those redirection use 303 and 200 HTTP codes
to be compliant with Semantic Web URI principles [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Yet,
URI of the ImageGallery instance is the same as the URL of
the gallery webpage, since it is identi ed as an informative
resource.
4.
      </p>
    </sec>
    <sec id="sec-4">
      <title>LINKING TO A FLICKR PROFILE</title>
      <p>
        Reusing Linked Data principles[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], a good way for
anyone to interlink his own FOAF pro le to his foaf:Person
      </p>
      <sec id="sec-4-1">
        <title>4http://rdfs.org/sioc/types 5http://geonames.org 6http://ws.geonames.org 7http://lingvoj.org</title>
        <p>URI created with the exporter is to combine the use of
owl:sameAs and rdfs:seeAlso. Thus, a person that already
has a FOAF URI can identify himsemlf as the same than
the one described by another URI in a Flickr pro le. It
also allows tools supporting OWL inference to make such
identi cation when querying various sets of RDF data.</p>
        <p>Moreover, in case the user do not have any existing FOAF
pro le, this script gives him a URI (and a pro le) that
he can the reuse in other Semantic Web applications like
Revyu.com8 to be uniquely identi ed in the Semantic Web.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>BROWSING AND REUSING DATA</title>
      <p>Created data can be used as any RDF data, for
exemple browsed with the Tabulator9 extension for Firefox, as
shown on Fig.1. Moreover, people can use SPARQL to run
query over the data, either on the y or by crawling it, and
in case they already have RDF data exported from services
like Twitter10 or Facebook11, may merge them and query or
view their complete open and machine-readable social
network in a uniform manner. Fig.2 displays the output of a
simple script12 that queries a FOAF pro le to retrieve all
owl:sameAs URIs and related RDF documents for a given
user to nd all his relationships from di erent social
networks. It provides a simple but e cient use-case to see how
Semantic Web technologies can achieve the goals of social
network and data portability.</p>
    </sec>
    <sec id="sec-6">
      <title>PRIVACY</title>
      <p>In order to respect the Flickr API terms of use and user
privacy, only publicy available data can be exported. Yet,
in case a user switch his pro le from private to public, he
currently must recreate his exported pro le (in case he wants
the old one to be removed), since there is not direct way
for the script to be informed of Flickr users changes at the
moment.
7.</p>
    </sec>
    <sec id="sec-7">
      <title>RELATED WORK</title>
      <p>Di erent wrappers to create RDF data from existing sources
have been mentioned in this paper. Other exporters may
include the AudioScrobller wrapper13 or OpenLink Virtuoso
sponger14, a more generic way to extract RDF data from
non-RDF sources. However, there is not yet agreement on
how to export such data and to combine vocabularies. This
demo may be used as a basis for best practices to do so.</p>
      <p>Finally, regarding Flickr, the Flickcurl API15 provides a
way, among various operations, to get RDF triples from any
Flickr picture. A script to interlink this data and the
currently described exporter may be available in the future.
8.</p>
    </sec>
    <sec id="sec-8">
      <title>NOTICE REFERENCES</title>
      <p>The work described here is personal work, and is not
afliated with Flickr.com in any way.
13http://dbtune.org/last-fm/
14http://www.openlinksw.com/virtuoso/Whitepapers/html/
VirtSpongerWhitePaper.html
15http://librdf.org/ ickcurl/</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Auer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Bizer</surname>
          </string-name>
          , G. Kobilarov,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lehmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Cyganiak</surname>
          </string-name>
          , and
          <string-name>
            <surname>Z. Ives.</surname>
          </string-name>
          <article-title>DBpedia: A Nucleus for a Web of Open Data</article-title>
          . 6th International Semantic Web Conference,
          <year>November 2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>C.</given-names>
            <surname>Bizer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Cyganiak</surname>
          </string-name>
          , and
          <string-name>
            <given-names>T.</given-names>
            <surname>Heath</surname>
          </string-name>
          .
          <article-title>How to Publish Linked Data on the Web</article-title>
          . http://sites.wiwiss.fuberlin.de/suhl/bizer/pub/LinkedDataTutorial/,
          <year>November 2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>J.</given-names>
            <surname>Breslin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Harth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            <surname>Bojars</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Decker. Towards</surname>
          </string-name>
          Semantically-Interlinked
          <source>Online Communities. 2nd European Semantic Web Conference</source>
          , May
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>D.</given-names>
            <surname>Brickley</surname>
          </string-name>
          and
          <string-name>
            <given-names>L.</given-names>
            <surname>Miller</surname>
          </string-name>
          .
          <source>FOAF Vocabulary Speci cation 0</source>
          .91,
          <year>November 2007</year>
          . http://xmlns.com/foaf/0.1/.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>L.</given-names>
            <surname>Sauermann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Cyganiak</surname>
          </string-name>
          , M. Volkel, and
          <string-name>
            <given-names>D.</given-names>
            <surname>Ayers</surname>
          </string-name>
          .
          <article-title>Cool URIs for the Semantic Web</article-title>
          . http://www.w3.org/TR/2007/WD-cooluris-
          <volume>20071217</volume>
          /,
          <year>December 2007</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>