diff options
author | Jürg Billeter <j@bitron.ch> | 2010-11-16 14:51:44 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-11-17 16:04:43 +0100 |
commit | 296a6fc559a6fb01c490dcbc8ddbc4592ab6b6b5 (patch) | |
tree | 3995cb0c5bfd069aa7c5b1a5aee78252d35ed45b | |
parent | 76d2061024404e8c7ba25a051ae9655007cfb743 (diff) | |
download | tracker-296a6fc559a6fb01c490dcbc8ddbc4592ab6b6b5.tar.gz |
data-generators: Use affiliation for person contacts
-rw-r--r-- | utils/data-generators/cc/nco.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/utils/data-generators/cc/nco.py b/utils/data-generators/cc/nco.py index 0d0dbad5a..b7aebabcc 100644 --- a/utils/data-generators/cc/nco.py +++ b/utils/data-generators/cc/nco.py @@ -118,6 +118,12 @@ def generateContactIM(index): #################################################################################### nco_PersonContact = ''' +<%(contact_uri)s:home> a nco:Affiliation; + nco:hasEmailAddress %(email_address_uri)s ; + nco:hasPhoneNumber %(phonenumber_uri)s ; + nco:hasPostalAddress %(postal_address_uri)s ; + nco:hasIMAddress %(im_address_uri)s . + <%(contact_uri)s> a nco:PersonContact; nco:fullname "%(contact_name_given)s %(contact_name_family)s"; nco:nameGiven "%(contact_name_given)s"; @@ -130,12 +136,9 @@ nco_PersonContact = ''' nco:gender %(contact_gender)s ; nco:contactUID "%(contact_uid)s" ; nco:note "%(contact_note)s" ; - nco:hasEmailAddress %(email_address_uri)s ; - nco:hasPhoneNumber %(phonenumber_uri)s ; - nco:hasPostalAddress %(postal_address_uri)s ; - nco:hasIMAddress %(im_address_uri)s ; nie:contentCreated "%(contact_created)s" ; - nie:contentLastModified "%(contact_modified)s" . + nie:contentLastModified "%(contact_modified)s" ; + nco:hasAffiliation <%(contact_uri)s:home> . ''' def generatePersonContact(index): me = 'nco#PersonContact' |