[rdfweb-dev] weblog errors

James Carlyle james.carlyle at takepart.com
Thu Jul 31 21:11:24 UTC 2003


Julian

> <foaf:weblog rdf:resource="http://www.ideaspace.net/users/wkearney"
> dc:title="Ideaspace" />
>
> Error: {E201} Syntax error when processing attribute rdf:resource.
> Cannot have attribute rdf:resource in this context.[Line = 51, Column =
> 95]

This is incorrect.  "weblog" is a property defined for "Person".
rdf:resource can only be used to identify nodes (resources), not properties.

So in my shorthand notation you could have

Person
    weblog
        Document rdf:resource="http://www.ideaspace.net/users/wkearney"

or explicitly

<foaf:Person rdf:ID="wkearney99">
 <foaf:name>Bill Kearney</foaf:name>
 <foaf:weblog rdf:resource="http://www.ideaspace.net/users/wkearney"
dc:title="Ideaspace" />
 <foaf:weblog><foaf:Document
rdf:resource="http://www.syndic8.com/~wkearney/blogs/syndic8"></foaf:Documen
t></foaf:weblog>
</foaf:Person>

If you look at the FOAF schema, you can see this:

<rdf:Property rdf:about="http://xmlns.com/foaf/0.1/weblog" >
    <rdfs:domain rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
    <rdfs:range rdf:resource="http://xmlns.com/foaf/0.1/Document"/>
</rdf:Property>

James




More information about the foaf-dev mailing list