Exercise E6. RDFS Geoinformatics: Geol 4123/6123 Put your answers in the boxes provided under each question. 1. Define the class Mineral in the N3 format, and then use the rdfs:subClassOf to define the Oxide class, to model that oxide is mineral. 2. Serialize the code for the above Mineral and Oxide classes in RDF/XML format, using rdfs:Class and rdfs:subClassOf. NOTE: The header code is written for you. You need to put your code in the box! You may use protégé, SemanticWeb, or your hand to write it! <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:owl=http://www.w3.org/2002/07/owl# xmlns:rdf="ttp://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> </rdf:RDF> Geoinformatics, Exercise E6, Page 1 of 6 3. Define the domain and range for the usesInstrument property (in RDF/XML format) for the statement: ChemicalAnalysis usesInstrument Instrument. Note: First define the ChemicalAnalysis and Instrument classes. Then define the domain and range for the usesInstrument property! Put your answer in the box after the header code! <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> </rdf:RDF> 4. Define the oxidize and alter properties for the Mineral class using the rdf:Property. Use rdfs:subPropertyOf to assert the knowledge that when a mineral oxidizes, it alters into a new mineral. Note: Mineral is both the domain and range for both alter and oxidize properties! <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> </rdf:RDF> Geoinformatics, Exercise E6, Page 2 of 6 5. Define the class PlateBoundary, and then define the ConvergentPlateBoundary, DivergentPlateBoundary, and TransformPlateBoundary as subclasses of the PlateBoundary. Serialize all code in RDF/XML. Put your code in the box! Use the short version of coding for classes. <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> </rdf:RDF> Geoinformatics, Exercise E6, Page 3 of 6 6. Use the rdfs:subPropertyOf to specialize the general property deform into 3 more general properties: translate, rotate, and strain (i.e., define all of these properties). That is, when a rock strains, rotates, or translates, it deforms. Describe the Deformation class to be the domain for the deform property. Describe the GeologicObject class to be the range for the deform property. Note: use the short version of coding for classes. <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> </rdf:RDF> Geoinformatics, Exercise E6, Page 4 of 6 7. Define the decay and disintegrate properties using rdf:Property, and then make them mutually equivalent using the rdfs:subPropertyOf construct. You need to write code saying that decay is a subproperty of disintegrate , and at the same time, say that disintegrate is the subproperty of decay. This way they become equivalent! <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> </rdf:RDF> Geoinformatics, Exercise E6, Page 5 of 6 8. You are defining the PetroleumGeology ontology, with a namespace prefix and URLref as: petrol=http://www.PetroleumGeology.org. Let it import the Stratigraphy ontology with the prefix and URI: strat=http://www.Stratigraphy.org. Define a owl:VersionInfo v2, a rdfs:comment that says: “covers both Oil and Gas”, and a “OIL and Gas” rdfs:label for the PetroleumGeology ontology. NOTE use the following to make your ontology and ontology: http://www.w3.org/2002/07/owl#Ontology Graph is given on the right >> <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> </rdf:RDF> Geoinformatics, Exercise E6, Page 6 of 6