[rdfweb-dev] Foafnaut with blubs keyed off rdf:Type

Jim Ley jim at jibbering.com
Tue Mar 2 19:18:37 UTC 2004


Hi,

Thanks to Leigh Dodds, there's a new version of foafnaut:

http://jibbering.com/2004/foafnaut/foafnaut.templates.offline.svg?sha1=1ba3bffdd13a136d38b77542f2e26fd1dc0042f2

(download and play with the:
http://jibbering.com/2004/foafnaut.tar.gz
version)

This should be simpler to change to display other sorts of data, the
relationships it looks at and displays is now stored at the top of the file:

Relationships=[];
Relationships.push({NS:foafNS,name:"knows"})
Relationships.push({NS:jimNS,name:"hasCarnalKnowledgeOf"})

The foaf:knows, and jim:hasCarnalKnowledgeOf  will now be tested for, and
drawn assuming the template file has suitable Sproing designs.

Also a Blub now is styled as per the rdf:Type of the element - either the
rdf:Type mentioned in the foaf:knows (or similar relationship) or as the
<foaf:Person> or similar  - the first element after the rdf:RDF.

There's a few other things - elements default to the jimNS:Unknown type if
you specify them in the sha1 - currently a red circle, otherwise currently
untyped things are assumed to be circles - this was just down to the sample
data I had.

Cheers,

Jim.




More information about the foaf-dev mailing list