1 10 package com.hp.hpl.jena.reasoner.rulesys; 11 12 import com.hp.hpl.jena.reasoner.*; 13 import com.hp.hpl.jena.rdf.model.*; 14 import com.hp.hpl.jena.vocabulary.*; 15 16 23 public class RDFSRuleReasonerFactory implements ReasonerFactory { 24 25 26 private static ReasonerFactory theInstance = new RDFSRuleReasonerFactory(); 27 28 29 public static final String URI = "http://jena.hpl.hp.com/2003/RDFSExptRuleReasoner"; 30 31 32 protected Model capabilities; 33 34 37 public static ReasonerFactory theInstance() { 38 return theInstance; 39 } 40 41 45 public Reasoner create(Resource configuration) { 46 return new RDFSRuleReasoner (this, configuration ); 47 } 48 49 54 public Model getCapabilities() { 55 if (capabilities == null) { 56 capabilities = ModelFactory.createDefaultModel(); 57 Resource base = capabilities.createResource(getURI()); 58 base.addProperty(ReasonerVocabulary.nameP, "RDFS FB-TGC Rule Reasoner") 59 .addProperty(ReasonerVocabulary.descriptionP, "Complete RDFS implementation supporting metalevel statements.\n" 60 + "Can separate tbox and abox data if desired to reuse tbox caching or mix them.") 61 .addProperty(ReasonerVocabulary.supportsP, RDFS.subClassOf) 62 .addProperty(ReasonerVocabulary.supportsP, RDFS.subPropertyOf) 63 .addProperty(ReasonerVocabulary.supportsP, RDFS.member) 64 .addProperty(ReasonerVocabulary.supportsP, RDFS.range) 65 .addProperty(ReasonerVocabulary.supportsP, RDFS.domain) 66 .addProperty(ReasonerVocabulary.versionP, "0.1"); 67 } 68 return capabilities; 69 } 70 71 74 public String getURI() { 75 return URI; 76 } 77 78 } 79 80 81 | Popular Tags |