1 10 package com.hp.hpl.jena.vocabulary; 11 12 import com.hp.hpl.jena.rdf.model.*; 13 import com.hp.hpl.jena.reasoner.ReasonerRegistry; 14 import com.hp.hpl.jena.reasoner.rulesys.RDFSRuleReasoner; 15 16 23 public class ReasonerVocabulary { 24 25 26 public static String JenaReasonerNS = "http://jena.hpl.hp.com/2003/JenaReasoner#"; 27 28 29 public static Resource ReasonerClass = ResourceFactory.createResource(JenaReasonerNS + "ReasonerClass"); 30 31 32 public static Property nameP; 33 34 35 public static Property descriptionP; 36 37 38 public static Property versionP; 39 40 41 public static Property supportsP; 42 43 44 public static Property configurationP; 45 46 47 public static Property directSubClassOf; 48 49 50 public static Property directSubPropertyOf; 51 52 53 public static Property directRDFType; 54 55 56 public static Property individualAsThingP; 57 58 59 public static final String PropURI = "http://jena.hpl.hp.com/2003/RuleReasoner"; 60 61 63 public static Property PROPderivationLogging; 64 65 67 public static Property PROPtraceOn; 68 69 71 public static Property PROPruleMode; 72 73 75 public static Property PROPruleSet; 76 77 79 public static Property PROPenableOWLTranslation; 80 81 83 public static Property PROPenableTGCCaching; 84 85 87 public static Property PROPenableCMPScan; 88 89 91 public static Property PROPsetRDFSLevel; 92 93 94 public static String RDFS_DEFAULT = RDFSRuleReasoner.DEFAULT_RULES; 95 96 97 public static String RDFS_FULL = RDFSRuleReasoner.FULL_RULES; 98 99 100 public static String RDFS_SIMPLE = RDFSRuleReasoner.SIMPLE_RULES; 101 102 104 public static Property PROPenableFunctorFiltering; 105 106 107 public static final String RBNamespace = "urn:x-hp-jena:rubrik/"; 108 109 110 public static final Property RB_VALIDATION = ResourceFactory.createProperty(RBNamespace, "validation"); 111 112 113 public static final Property RB_VALIDATION_REPORT = ResourceFactory.createProperty(RBNamespace, "violation"); 114 115 116 117 public static final Property EXT_REASONER_URL = ResourceFactory.createProperty( JenaReasonerNS, "extReasonerURL" ); 118 119 121 public static final Property EXT_REASONER_ONT_LANG = ResourceFactory.createProperty( JenaReasonerNS, "extReasonerOntologyLang" ); 122 123 125 public static final Property EXT_REASONER_AXIOMS = ResourceFactory.createProperty( JenaReasonerNS, "extReasonerAxioms" ); 126 127 128 131 132 public static final String getRBNamespace() { 133 return RBNamespace; 134 } 135 136 137 public static final String getJenaReasonerNS() { 138 return JenaReasonerNS; 139 } 140 141 144 static { 145 try { 146 nameP = ResourceFactory.createProperty(JenaReasonerNS, "name"); 147 descriptionP = ResourceFactory.createProperty(JenaReasonerNS, "description"); 148 versionP = ResourceFactory.createProperty(JenaReasonerNS, "version"); 149 supportsP = ResourceFactory.createProperty(JenaReasonerNS, "supports"); 150 configurationP = ResourceFactory.createProperty(JenaReasonerNS, "configurationProperty"); 151 directSubClassOf = ResourceFactory.createProperty(ReasonerRegistry.makeDirect(RDFS.subClassOf.getNode()).getURI()); 152 directSubPropertyOf = ResourceFactory.createProperty(ReasonerRegistry.makeDirect(RDFS.subPropertyOf.getNode()).getURI()); 153 directRDFType = ResourceFactory.createProperty(ReasonerRegistry.makeDirect(RDF.type.getNode()).getURI()); 154 individualAsThingP = ResourceFactory.createProperty(JenaReasonerNS, "individualAsThing"); 155 PROPderivationLogging = ResourceFactory.createProperty(PropURI+"#", "derivationLogging"); 156 PROPtraceOn = ResourceFactory.createProperty(PropURI+"#", "traceOn"); 157 PROPruleMode = ResourceFactory.createProperty(PropURI+"#", "ruleMode"); 158 PROPruleSet = ResourceFactory.createProperty(PropURI+"#", "ruleSet"); 159 PROPenableOWLTranslation = ResourceFactory.createProperty(PropURI+"#", "enableOWLTranslation"); 160 PROPenableTGCCaching = ResourceFactory.createProperty(PropURI+"#", "enableTGCCaching"); 161 PROPenableCMPScan = ResourceFactory.createProperty(PropURI+"#", "enableCMPScan"); 162 PROPsetRDFSLevel = ResourceFactory.createProperty(PropURI+"#", "setRDFSLevel"); 163 PROPenableFunctorFiltering= ResourceFactory.createProperty(PropURI+"#", "enableFunctorFiltering"); 164 } catch (Exception e) { 165 System.err.println("Initialization error: " + e); 166 e.printStackTrace(System.err); 167 } 168 } 169 } 170 171 172 | Popular Tags |