[Delicon-cvs] deli/src/com/hp/hpl/deli ScrapeGoogle.java, 1.13, 1.14
Status: Beta
Brought to you by:
butlermh
From: Mark H. B. <but...@us...> - 2006-10-10 17:17:30
|
Update of /cvsroot/delicon/deli/src/com/hp/hpl/deli In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv29110/src/com/hp/hpl/deli Modified Files: ScrapeGoogle.java Log Message: Replacing existing use of XML / XSLT for storing profiles with N3 Index: ScrapeGoogle.java =================================================================== RCS file: /cvsroot/delicon/deli/src/com/hp/hpl/deli/ScrapeGoogle.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ScrapeGoogle.java 10 Oct 2006 16:42:22 -0000 1.13 --- ScrapeGoogle.java 10 Oct 2006 17:17:27 -0000 1.14 *************** *** 258,262 **** claimedManufacturer = getTagSoup(profile, ":Vendor>", "<"); ! if (manufacturer == null) { manufacturer = claimedManufacturer; vendor = "false"; --- 258,262 ---- claimedManufacturer = getTagSoup(profile, ":Vendor>", "<"); ! if (manufacturer.equals("SPECIFY-MANUFACTURER")) { manufacturer = claimedManufacturer; vendor = "false"; *************** *** 291,298 **** // if model is null it is probably not valid UAProf, // ignore ! System.out.println("<urn:x-hp-deli:devices/" + manufacturer + getFilename(newURI) + ">"); System.out.println(" a deli:Profile ;"); System.out.println(" deli:deviceName \"" + model +"\" ;"); ! System.out.println(" deli:manufacturedBy <urn:x-hp-deli:manufacturers/" + manufacturer + "> ;"); System.out.println(" deli:profileSuppliedByVendor \"" + vendor +"\" ;"); System.out.println(" deli:release \"SPECIFY-RELEASE\" ;"); --- 291,298 ---- // if model is null it is probably not valid UAProf, // ignore ! System.out.println("<http://purl.oclc/org/NET/butlermh/deli/devices#" + manufacturer + getFilename(newURI) + ">"); System.out.println(" a deli:Profile ;"); System.out.println(" deli:deviceName \"" + model +"\" ;"); ! System.out.println(" deli:manufacturedBy <http://purl.oclc/org/NET/butlermh/deli/manufacturers#" + manufacturer + "> ;"); System.out.println(" deli:profileSuppliedByVendor \"" + vendor +"\" ;"); System.out.println(" deli:release \"SPECIFY-RELEASE\" ;"); |