riahichedy / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

BABEL: RDF/XML to JSON convertion gives no results #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to convert an RDF/XML file, valideted using the W3 RDF Validion
Service, to Exhibit JSON format gives no result.
The RDF/XML file uploaded:

<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#"
    xmlns:dc="http://purl.org/dc/elements/1.1/">

    <rdf:Description rdf:about="#Resource_2">

        <dc:title>Ontology Development 101: A Guide to Creating Your First
Ontology</dc:title>
        <dc:creator>Natalya F. Noy</dc:creator>
        <dc:creator>Deborah L. McGuinness</dc:creator>
        <dc:subject>Ontology Engineering</dc:subject>
        <dc:type>article</dc:type>

    </rdf:Description>

    <rdf:Description rdf:about="#Resource_1">

        <dc:title>A Semantic Web Primer</dc:title>

        <dc:creator>Grigoris Antoniou</dc:creator>
        <dc:creator>Frank van Harmelen</dc:creator>
        <dc:subject>Semantic Web</dc:subject>
        <dc:publisher>The MIT Press</dc:publisher>
        <dc:type>book</dc:type>

    </rdf:Description>
</rdf:RDF>

The Babel raw data result:

{
"items" : [
],
"types" : {
},
"properties" : {
}
}

I converted the same file located at
http://www.sharesemantics.com/maps/swresources.rdf using the
http://triplr.org/ service that gave the following result:

{"triples":
[
{
"object":{"value":"Ontology Development 101: A Guide to Creating Your First
Ontology","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/title","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
2","type":"uri"}
},

{
"object":{"value":"Natalya F. Noy","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/creator","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
2","type":"uri"}
},

{
"object":{"value":"Deborah L. McGuinness","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/creator","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
2","type":"uri"}
},

{
"object":{"value":"Ontology Engineering","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/subject","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
2","type":"uri"}
},

{
"object":{"value":"article","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/type","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
2","type":"uri"}
},

{
"object":{"value":"A Semantic Web Primer","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/title","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
1","type":"uri"}
},

{
"object":{"value":"Grigoris Antoniou","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/creator","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
1","type":"uri"}
},

{
"object":{"value":"Frank van Harmelen","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/creator","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
1","type":"uri"}
},

{
"object":{"value":"Semantic Web","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/subject","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
1","type":"uri"}
},

{
"object":{"value":"The MIT Press","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/publisher","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
1","type":"uri"}
},

{
"object":{"value":"book","type":"literal"},
"predicate":{"value":"http://purl.org/dc/elements/1.1/type","type":"uri"},
"subject":{"value":"http://www.sharesemantics.com/maps/swresources.rdf#Resource_
1","type":"uri"}
}

],

"count":11,"this_uri":"http://triplr.org/json/www.sharesemantics.com/maps/swreso
urces.rdf",
"footer":"Made by Triplr http://triplr.org by Dave Beckett,
http://purl.org/net/dajobe/ from
http://www.sharesemantics.com/maps/swresources.rdf in format rdfxml to
internal-json using Redland 1.0.7 and Raptor 1.4.16 from http://librdf.org/"} 

[Submitted by Luigi Selmi on simile.mit.edu]

Original issue reported on code.google.com by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 6:46

GoogleCodeExporter commented 9 years ago

Original comment by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 7:19