Menu

#19 RDFAPI error (class: parser)

v0.9.3
open-works-for-me
nobody
Parsers (11)
1
2007-03-20
2007-03-20
Agentk
No

Hi,

I want to parse the file rdf :
<c:component xmlns:c="http://www.w3.org/2002/12/cal/icaltzd#">
<c:Vevent r:about="#hcalendar-event-title" xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<c:summary>event title</c:summary>
<c:dtstart r:datatype="http://www.w3.org/2001/XMLSchema#date">20070320</c:dtstart>
<c:dtend r:datatype="http://www.w3.org/2001/XMLSchema#date">20070321</c:dtend>
<c:url r:resource="#hcalendar-event-title"/>
</c:Vevent>
</c:component>

I checked the file in the W3C RDF parser : it's OK.
http://www.w3.org/RDF/Validator/

Code :
$parser = new RdfParser();
$model = $parser->generateModel($_FILES["rdffile"]["tmp_name"]);

Errors :
Warning: RDFAPI error (class: parser): unknown rdf attribute: about. in W:\www\wp-content\plugins\myavatar\rdfapi-php\api\syntax\RdfParser.php on line 1045

Warning: RDFAPI error (class: parser): only one element allowed inside a property element. in W:\www\wp-content\plugins\myavatar\rdfapi-php\api\syntax\RdfParser.php on line 1045

Bye

Discussion

  • Agentk

    Agentk - 2007-03-20
    • status: open --> open-works-for-me
     
  • Agentk

    Agentk - 2007-03-20

    Logged In: YES
    user_id=971211
    Originator: YES

    With this file, it's OK with RDFAPI.
    <r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <c:Vcalendar xmlns:c="http://www.w3.org/2002/12/cal/icaltzd#">
    <c:prodid>-//connolly.w3.org//palmagent 0.6 (BETA)//EN</c:prodid>
    <c:version>2.0</c:version>
    <c:component>
    <c:Vevent r:about="#hcalendar-event-title">
    <c:summary>event title</c:summary>
    <c:dtstart r:datatype="http://www.w3.org/2001/XMLSchema#date">20070320</c:dtstart>
    <c:dtend r:datatype="http://www.w3.org/2001/XMLSchema#date">20070321</c:dtend>
    <c:url r:resource="#hcalendar-event-title"/>
    </c:Vevent>
    </c:component>
    </c:Vcalendar>
    </r:RDF>

     
  • Agentk

    Agentk - 2007-03-20
    • priority: 5 --> 1
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.