edu.stanford.smi.protegex.owl.jena.rdf2owl
Class RDF2OWL

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.jena.rdf2owl.RDF2OWL

public class RDF2OWL
extends Object

A class that can convert pure RDF statements from a Model into corresponding OWL statements.

Author:
Holger Knublauch

Field Summary
private  com.hp.hpl.jena.rdf.model.Model model
           
 
Constructor Summary
RDF2OWL(com.hp.hpl.jena.rdf.model.Model model)
           
 
Method Summary
private  void convertProperties()
          Converts the properties to either owl:DatatypeProperties or owl:ObjectProperties.
private  void convertRDFSClasses()
          Converts all rdfs:Classes into owl:Classes
private  void convertRDFSResource()
          Converts all object occurances of rdfs:Resource with owl:Thing
private  com.hp.hpl.jena.rdf.model.Resource getPropertyType(com.hp.hpl.jena.rdf.model.Resource property)
          Attempts to find the most plausible RDF type for a given property.
private  void log(String message)
           
 void run()
           
private  void unifyRDFSVersion()
          Converts any statements containing old RDFS vocabulary to the official ones.
private  void unifyRDFSVersion(String ns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

private com.hp.hpl.jena.rdf.model.Model model
Constructor Detail

RDF2OWL

public RDF2OWL(com.hp.hpl.jena.rdf.model.Model model)
Method Detail

convertRDFSClasses

private void convertRDFSClasses()
Converts all rdfs:Classes into owl:Classes


convertProperties

private void convertProperties()
Converts the properties to either owl:DatatypeProperties or owl:ObjectProperties.


convertRDFSResource

private void convertRDFSResource()
Converts all object occurances of rdfs:Resource with owl:Thing


getPropertyType

private com.hp.hpl.jena.rdf.model.Resource getPropertyType(com.hp.hpl.jena.rdf.model.Resource property)
Attempts to find the most plausible RDF type for a given property.

Parameters:
property - the property to get the type of
Returns:
either owl:DatatypeProperty or owl:ObjectProperty

log

private void log(String message)

run

public void run()

unifyRDFSVersion

private void unifyRDFSVersion()
Converts any statements containing old RDFS vocabulary to the official ones.


unifyRDFSVersion

private void unifyRDFSVersion(String ns)