1 7 package jena.examples.rdf ; 8 9 import com.hp.hpl.jena.rdf.model.*; 10 import com.hp.hpl.jena.vocabulary.*; 11 12 14 15 public class Tutorial01 extends Object { 16 static String personURI = "http://somewhere/JohnSmith"; 18 static String fullName = "John Smith"; 19 20 public static void main (String args[]) { 21 Model model = ModelFactory.createDefaultModel(); 23 24 Resource johnSmith = model.createResource(personURI); 26 27 johnSmith.addProperty(VCARD.FN, fullName); 29 } 30 } 31 32 58 | Popular Tags |