- From: Brent Shambaugh <brent.shambaugh@gmail.com>
- Date: Sun, 24 Jan 2016 14:27:25 -0500
- To: "semantic-web@w3.org" <semantic-web@w3.org>
- Message-ID: <CACvcBVq_Sod1svzhqVixUiKc0K_7_ivQ1V60j8B31g_6tVHv+Q@mail.gmail.com>
Dear all,
I was talking about this on #swig IRC with the username BigBear
(thanks everyone) and I thought it was better to ask on the list. I'm
looking back at the December 2012 IKScE for Drupal demo, and I wanted
the annotations to be in RDFa so I can pull them into the ARC2 store
as triples, instead of being embedded as a content block in
<content:encoded> tags.
http://wolfgangziegler.net/semantic-content-enhancements-drupal-apache-stanbol-viejs
Looking at an rdf representation produces something like this (for me
it is http://localhost/iksce/node/10.rdf from
http://localhost/iksce/node/10)::
<?xml version="1.0" encoding="UTF-8"?><rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:sioc="http://rdfs.org/sioc/ns#"> <rdf:Description
rdf:about="http://localhost/iksce/node/10"> <rdf:type
rdf:resource="http://rdfs.org/sioc/ns#Item"/> <rdf:type
rdf:resource="http://xmlns.com/foaf/0.1/Document"/>
<content:encoded><p>Salzburg Research Forschungsgesellschaft mbH
ist a non-academic research institute in <a
aria-disabled="false"
href="http://localhost/iksce/?q=node/15"
resource="http://localhost/iksce/?q=node/15"
rel="related" class="entity place Place
acknowledged">Austria</a>. The research technology
organisation specializes in applied research and development in the
field of information and communication technologies (ICT) and New
Media.</p></content:encoded> <dc:title>Salzburg Research
Forschungsgesellschaft mbH</dc:title> <dc:date
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2012-12-05T19:37:15-05:00</dc:date>
<dc:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2012-12-05T19:37:15-05:00</dc:created>
<dc:modified
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2016-01-22T22:14:40-05:00</dc:modified>
<sioc:has_creator rdf:resource="http://localhost/iksce/user/1"/>
<sioc:num_replies
rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</sioc:num_replies>
</rdf:Description></rdf:RDF>
I hacked together some RDFa to try to accomplish this. (So I know what to
expect of Drupal later)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example Document</title>
</head>
<body>
<div class="field-item-even" property="content:encoded">
<p>Salzburg Research Forschungsgesellschaft mbH ist a non-academic research
institute in <span vocab="http://schema.org/"><a property="schema:Comment"
aria-disabled="false" href="http://localhost/iksce/?q=node/15" resource="
http://localhost/iksce/?q=node/15" rel="sameAs" class="entity place Place
acknowledged">Austria</a></span>. The research technology organisation
specializes in applied research and development in the field of information
and communication technologies (ICT) and New Media.</p>
</div>
</body>
</html>
which becomes rdf/xml with http://rdf-translator.appspot.com/
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfa="http://www.w3.org/ns/rdfa#"
xmlns:schema="http://schema.org/"
>
<rdf:Description rdf:about="http://localhost/iksce/node/10">
<rdfa:usesVocabulary rdf:resource="http://schema.org/"/>
<schema:sameAs rdf:resource="http://localhost/iksce/?q=node/15"/>
<content:encoded>
Salzburg Research Forschungsgesellschaft mbH ist a non-academic research
institute in Austria. The research technology organisation specializes in
applied research and development in the field of information and
communication technologies (ICT) and New Media.
</content:encoded>
<schema:Comment>Austria</schema:Comment>
</rdf:Description>
</rdf:RDF>
I want "Austria" sameAs "http://localhost/iksce/?q=node/15" or something
that has that meaning instead of <http://localhost/iksce/node/10>
<schema:sameAs> <http://localhost/iksce/?q=node/15> and <
http://localhost/iksce/node/10> schema:Comment "Austria" . I put my
modification into https://www.w3.org/RDF/Validator/ to see this discrepancy.
By the way, great job fago and scor. I could not have done this much with
Drupal without you.
-Brent Shambaugh
Received on Sunday, 24 January 2016 19:27:53 UTC