Quoting Jonas Smedegaard (2013-02-15 12:40:00) > Quoting Olivier Berger (2013-02-13 23:01:27) > > > Oh, and I forgot that I had added to > > > http://people.debian.org/~obergix/ a link (<link rel="meta" > > > type="application/rdf+xml" title="FOAF" ...) to my "Debian FOAF > > > profile" : <http://people.debian.org/~obergix/foaf.rdf> > > In your personal foaf.ttl file you state that not you but your Debian > account is contributor to your packages. That seems wrong to me.
In case others find that useful, attached is the script + template I use to generate a personal FOAF file inspired by above. ...and to generate sha1sum I use this: echo -n 'mailto:d...@jones.dk' | sha1sum - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
#!/bin/sh set -e set -x account=js email=d...@jones.dk wget -O foaf_pkg.html "http://dde.debian.net/dde/q/udd/maintainers/sources_by_email_maint_uploader/$email?t=csv" perl -pe 's{\s*(\S+)(\s.*)?}{<http://packages.qa.debian.org/:$1> schema:contributor <#me>; a admssw:SoftwareProject.}' \ < foaf_pkg.html > foaf_pkg.ttl cat foaf_head.ttl foaf_pkg.ttl > foaf_draft.ttl rapper -I "http://people.debian.org/~$account/foaf.rdf" -i turtle -o turtle foaf_draft.ttl > foaf.ttl rapper -I "http://people.debian.org/~$account/foaf.rdf" -i turtle -o rdfxml-abbrev foaf.ttl > foaf.rdf perl -i -pe 's/ {4}/\t/g' foaf.ttl rm -f foaf.rdf.asc gpg -a --detach-sign foaf.rdf rm -f foaf_pkg.html foaf_pkg.ttl foaf_draft.ttl
@base <http://people.debian.org/~js/foaf.rdf> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix admin: <http://webns.net/mvcb/> . @prefix admssw: <http://purl.org/adms/sw/> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix rel: <http://purl.org/vocab/relationship/> . @prefix schema: <http://schema.org/> . @prefix sioc: <http://rdfs.org/sioc/ns#> . @prefix wot: <http://xmlns.com/wot/0.1/> . <> a foaf:PersonalProfileDocument ; foaf:maker <#me> ; foaf:primaryTopic <#js> ; wot:assurance <foaf.rdf.asc> . <#debian> a foaf:OnlineAccount ; foaf:accountName "js" ; foaf:accountServiceHomepage <http://qa.debian.org/developer.php?login=j...@debian.org> . <#home> a foaf:OnlineAccount ; foaf:accountServiceHomepage <http://qa.debian.org/developer.php?login=d...@jones.dk> . <#me> a foaf:Person ; rdfs:seeAlso <https://dr.jones.dk/me/> ; owl:sameAs <https://dr.jones.dk/me/#me> ; foaf:account <#debian>, <#home> ; foaf:family_name "Smedegaard" ; foaf:givenname "Jonas" ; foaf:homepage <.> ; foaf:made <> ; foaf:mbox "mailto:j...@debian.org" ; foaf:mbox_sha1sum "aec63d391fdfe7fc20bcbdeccfe4776a30469e8e" ; foaf:name "Jonas Smedegaard" ; foaf:nick "jonas", "sanoj" ; foaf:pubkeyAddress <http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x2C7C3146C1A00121> .
signature.asc
Description: signature