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 21 public class RDFSFBRuleReasonerFactory implements ReasonerFactory { 22 23 24 private static ReasonerFactory theInstance = new RDFSFBRuleReasonerFactory(); 25 26 27 public static final String URI = "http://jena.hpl.hp.com/2003/RDFSFBRuleReasoner"; 28 29 30 protected Model capabilities; 31 32 35 public static ReasonerFactory theInstance() { 36 return theInstance; 37 } 38 39 45 public Reasoner create(Resource configuration) { 46 return new RDFSFBRuleReasoner(this); 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 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 |