wine data DAML/RDF syntax fixes

Hi... I just found your wine data
  http://www.openwine.org/data.jsp
via an XML hack article.

Nifty stuff!

But the actual data...
  http://www.openwine.org/open_wine_data.xml

doesn't quite conform to the DAML/RDF specs...
it's not too far off:

 * use rdf:ID, not rdfs:ID
 * use rdf:RDF as the root element, not <Ontology>
   don't put all the other objects insidet he Ontology object.
 * use rdf:about="" on the Ontology element, to
   say that this file ("") is an ontology.
   Without it, you're just saying "there is an ontology".

That's it!

context diffs attached.

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
--- open_wine_data.xml	Fri Oct 19 01:03:23 2001
+++ open_wine_data.xml,	Fri Oct 19 11:29:24 2001
@@ -1,13 +1,14 @@
-
-
 <?xml version="1.0" encoding="ISO-8859-1"?>
-
-<Ontology xmlns:daml="http://www.daml.org/2001/03/daml+oil#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+xmlns:daml="http://www.daml.org/2001/03/daml+oil#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+ >
+<Ontology rdf:about="">
   <imports rdf:resource="http://www.daml.org/2001/03/daml+oil"/>
   <rdfs:comment>
     a wine ontology
   </rdfs:comment>
-  <daml:Class rdfs:ID="Root">
+</Ontology>
+  <daml:Class rdf:ID="Root">
     <rdfs:label xml:lang="en">
       Root
     </rdfs:label>
@@ -22,7 +23,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="Millesime">
+  <daml:Class rdf:ID="Millesime">
     <rdfs:label xml:lang="en">
       Millesime
     </rdfs:label>
@@ -42,7 +43,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="Nation">
+  <daml:Class rdf:ID="Nation">
     <rdfs:label xml:lang="en">
       Nation
     </rdfs:label>
@@ -62,7 +63,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="Region">
+  <daml:Class rdf:ID="Region">
     <rdfs:label xml:lang="en">
       Region
     </rdfs:label>
@@ -82,7 +83,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="Wine-Brand">
+  <daml:Class rdf:ID="Wine-Brand">
     <rdfs:subClassOf rdf:resource="#Wine"/>
     <rdfs:comment>
       A wine issued under a brand name rather than a specific domain name.
@@ -126,7 +127,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="Wine-Domain">
+  <daml:Class rdf:ID="Wine-Domain">
     <rdfs:subClassOf rdf:resource="#Wine"/>
     <rdfs:label xml:lang="en">
       Wine-Domain
@@ -167,7 +168,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineBottling-Brand">
+  <daml:Class rdf:ID="WineBottling-Brand">
     <rdfs:subClassOf rdf:resource="#WineBottling"/>
     <rdfs:label xml:lang="en">
       WineBottling-Brand
@@ -193,7 +194,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineBottling-Domain">
+  <daml:Class rdf:ID="WineBottling-Domain">
     <rdfs:subClassOf rdf:resource="#WineBottling"/>
     <rdfs:label xml:lang="en">
       WineBottling-Domain
@@ -219,7 +220,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineGrape">
+  <daml:Class rdf:ID="WineGrape">
     <rdfs:label xml:lang="en">
       WineGrape
     </rdfs:label>
@@ -244,7 +245,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineGrapeRel-Brand">
+  <daml:Class rdf:ID="WineGrapeRel-Brand">
     <rdfs:subClassOf rdf:resource="#WineGrapeRel"/>
     <rdfs:label xml:lang="en">
       WineGrapeRel-Brand
@@ -270,7 +271,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineGrapeRel-Domain">
+  <daml:Class rdf:ID="WineGrapeRel-Domain">
     <rdfs:subClassOf rdf:resource="#WineGrapeRel"/>
     <rdfs:label xml:lang="en">
       WineGrapeRel-Domain
@@ -296,7 +297,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineIssue">
+  <daml:Class rdf:ID="WineIssue">
     <rdfs:label xml:lang="en">
       WineIssue
     </rdfs:label>
@@ -311,7 +312,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineIssue-Brand">
+  <daml:Class rdf:ID="WineIssue-Brand">
     <rdfs:subClassOf rdf:resource="#WineIssue"/>
     <rdfs:label xml:lang="en">
       WineIssue-Brand
@@ -382,7 +383,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineIssue-Domain">
+  <daml:Class rdf:ID="WineIssue-Domain">
     <rdfs:subClassOf rdf:resource="#WineIssue"/>
     <rdfs:label xml:lang="en">
       WineIssue-Domain
@@ -468,7 +469,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineSource-Brand">
+  <daml:Class rdf:ID="WineSource-Brand">
     <rdfs:subClassOf rdf:resource="#WineSource"/>
     <rdfs:label xml:lang="en">
       WineSource-Brand
@@ -489,7 +490,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineSource-Domain">
+  <daml:Class rdf:ID="WineSource-Domain">
     <rdfs:subClassOf rdf:resource="#WineSource"/>
     <rdfs:label xml:lang="en">
       WineSource-Domain
@@ -595,7 +596,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineType">
+  <daml:Class rdf:ID="WineType">
     <rdfs:label xml:lang="en">
       WineType
     </rdfs:label>
@@ -615,7 +616,7 @@
       </daml:Restriction>
     </rdfs:subClassOf>
   </daml:Class>
-  <daml:Class rdfs:ID="WineTypeGrapeRestr">
+  <daml:Class rdf:ID="WineTypeGrapeRestr">
     <rdfs:label xml:lang="en">
       WineTypeGrapeRestr
     </rdfs:label>
@@ -12598,4 +12599,4 @@
       571
     </Nation>
   </Region>
-</Ontology>
+</rdf:RDF>

Received on Friday, 19 October 2001 12:35:03 UTC