Create a FOAF file

From Konfidi
Jump to navigationJump to search

Create an RDF file with FOAF, WOT, and trust information, like the sample below. Here is a sample in which Dave trusts Jason and Jeremy both 0.95 on the topic of internet-communication. Even if you aren't familiar with RDF, you can use this file as a base; just change the names, email addresses, fingerprints, and rating numbers.

Then sign it with GPG and submit it to a foafserver so the trust data can be used in the Konfidi system. If you're using gpg from the commandline, you can sign it with: gpg --detach-sign --armor foaf.rdf

All trusters and trusted people must have a PGP key and its fingerprint must be specified. Topics can be any URI, but we suggest using http://www.konfidi.org/ns/topics/0.0#internet-communication until a set of common topics is defined. (Currently the trustserver ignores everything up to the '#' in the topic URI)


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF [
    <!ENTITY topics "http://www.konfidi.org/ns/topics/0.0">
]>
<rdf:RDF xmlns="http://www.konfidi.org/ns/trust/1.2#"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:wot="http://xmlns.com/wot/0.1/">

<foaf:Person rdf:nodeID="me"> 
    <wot:hasKey>
        <wot:PubKey>
            <wot:fingerprint>EAB0FABEDEA81AD4086902FE56F0526F9BB3CE70</wot:fingerprint>
        </wot:PubKey>
    </wot:hasKey>
    <!-- these name and mbox values are optional -->
    <foaf:name>Dave Brondsema</foaf:name>
    <foaf:mbox>dave@brondsema.net</foaf:mbox>
    <foaf:mbox>brondsem@apache.org</foaf:mbox>
</foaf:Person>

<Relationship>
    <truster rdf:nodeID="me"/>
    <trusted>
        <foaf:Person>
            <wot:hasKey>
                <wot:PubKey>
                    <wot:fingerprint>7A061786661DD09E322EF935F627C0F19956C75F</wot:fingerprint>
                </wot:PubKey>
            </wot:hasKey>
            <!-- foaf:name optional -->
            <foaf:name>Jason Roelofs</foaf:name>
        </foaf:Person>
    </trusted>
    <about>
        <Item>
            <topic rdf:resource="&topics;#internet-communication"/>
            <rating>.95</rating>
        </Item>
    </about>
</Relationship>

<Relationship>
    <truster rdf:nodeID="me"/>
    <trusted>
        <foaf:Person>
            <wot:hasKey>
                <wot:PubKey>
                    <wot:fingerprint>FB559CABDB811891B6D37E1439C06ED9D798EFD2</wot:fingerprint>
                </wot:PubKey>
            </wot:hasKey>
            <!-- foaf:name optional -->
            <foaf:name>Jeremy Frens</foaf:name>
        </foaf:Person>
    </trusted>
    <about>
        <Item>
            <topic rdf:resource="&topics;#internet-communication"/>
            <rating>.95</rating>
        </Item>
    </about>
</Relationship>
</rdf:RDF>