foaf_user/commit

Allows adding mailbox

authorJan Wielemaker
Thu Nov 18 15:01:03 2010 +0100
committerJan Wielemaker
Thu Nov 18 15:01:03 2010 +0100
commit3de86e366510c45fc705850d2dafadf770979a7d
tree9a01f1be2aeb9cb32e4943fbf411227dd3af2e81
parentf4401fa7139543f2193c561d2681cfb207d277c8
Diff style: patch stat
diff --git a/applications/foaf_user_profile.pl b/applications/foaf_user_profile.pl
index d3ea667..cd33f37 100644
--- a/applications/foaf_user_profile.pl
+++ b/applications/foaf_user_profile.pl
@@ -62,6 +62,7 @@ foaf_profile_form(User) -->
 			[ \hidden(r, UserURI),
 			  \p_input(UserURI, foaf:name, []),
 			  \p_input(UserURI, foaf:nick, [disabled]),
+			  \p_input(UserURI, foaf:mbox, []),
 			  \p_input(UserURI, foaf:workInfoHomepage, []),
 			  \form_submit('Update account')
 			]))).
diff --git a/rdf/cpack/foaf_user.ttl b/rdf/cpack/foaf_user.ttl
index a515a41..a310670 100644
--- a/rdf/cpack/foaf_user.ttl
+++ b/rdf/cpack/foaf_user.ttl
@@ -1,12 +1,15 @@
 @prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
 @prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
 @prefix cpack:   <http://www.swi-prolog.org/cliopatria/cpack#> .
 @prefix dcterms: <http://purl.org/dc/terms/> .
 
 <> a cpack:Application ;
 	cpack:packageName "foaf_user" ;
 	dcterms:title "FOAF profiles for accounts" ;
-	cpack:author <http://www.swi-prolog.org/cliopatria/user/jan> ;
+	cpack:author [ foaf:name "Jan Wielemaker" ;
+		       foaf:mbox "J.Wielemaker@cs.vu.nl" ;
+		     ] ;
 	cpack:primaryRepository
 	    [ a cpack:GitRepository ;
 	      cpack:gitURL <git://eculture.cs.vu.nl/home/janw/git/ClioPatria/foaf_user.git>