[Yanel-commits] rev 29784 - public/yanel/contributions/realms/foaf/src/resources/shared/src/java/org/wyona/foaf/impl/basics

michi at wyona.com michi at wyona.com
Wed Dec 12 00:48:40 CET 2007


Author: michi
Date: 2007-12-12 00:48:40 +0100 (Wed, 12 Dec 2007)
New Revision: 29784

Modified:
   public/yanel/contributions/realms/foaf/src/resources/shared/src/java/org/wyona/foaf/impl/basics/PersonImpl.java
Log:
get name started

Modified: public/yanel/contributions/realms/foaf/src/resources/shared/src/java/org/wyona/foaf/impl/basics/PersonImpl.java
===================================================================
--- public/yanel/contributions/realms/foaf/src/resources/shared/src/java/org/wyona/foaf/impl/basics/PersonImpl.java	2007-12-11 23:19:01 UTC (rev 29783)
+++ public/yanel/contributions/realms/foaf/src/resources/shared/src/java/org/wyona/foaf/impl/basics/PersonImpl.java	2007-12-11 23:48:40 UTC (rev 29784)
@@ -10,6 +10,7 @@
 import com.hp.hpl.jena.rdf.model.Model;
 import com.hp.hpl.jena.rdf.model.ModelFactory;
 import com.hp.hpl.jena.rdf.model.Resource;
+import com.hp.hpl.jena.rdf.model.impl.PropertyImpl;
 
 import org.apache.log4j.Category;
 
@@ -20,6 +21,8 @@
 
     private static Category log = Category.getInstance(PersonImpl.class);
 
+    private static String foafNamespace = "http://xmlns.com/foaf/0.1/";
+
     /**
      *
      */
@@ -28,6 +31,10 @@
         model.read(in, "");
         Resource person = model.getResource("foaf:Person");
         log.error("DEBUG: Resource: " + person);
+        //String name = person.getProperty(new PropertyImpl(foafNamespace, "name")).toString();
+        //log.error("DEBUG: Name: " + name);
+        //String givenName = person.getProperty(new PropertyImpl(foafNamespace, "givenname")).toString();
+        //String familyName = person.getProperty(new PropertyImpl(foafNamespace, "family_name")).toString();
     }
 
     /**



More information about the Yanel-commits mailing list