Searched refs:ont (Results 1 - 25 of 29) sorted by relevance

12

/owl-s/src/org/mindswap/owl/
H A DOWLWriter.java41 public void write(OWLModel ont, Writer writer); argument
43 public void write(OWLModel ont, Writer writer, URI baseURI); argument
45 public void write(OWLModel ont, OutputStream out); argument
47 public void write(OWLModel ont, OutputStream out, URI baseURI); argument
H A DOWLOntology.java48 * Merge the contents of this ontology with <code>ont</code> and return the
53 * @param ont
56 public OWLOntology union( OWLOntology ont );
59 * Add the contents of <code>ont</code> into this ontology.
61 * @param ont
64 public void add( OWLOntology ont );
H A DOWLFactory.java110 OWLOntology ont = factory.createOntology();
112 addOWLSImports( ont );
113 return ont;
125 OWLOntology ont = factory.createOntology(uri);
127 addOWLSImports( ont );
128 return ont;
135 * @param ont
139 public static void addOWLSImports( OWLOntology ont ) {
142 ont.addImport( owlsService );
143 ont
[all...]
/owl-s/src/org/mindswap/swrl/
H A DSWRLFactoryCreator.java20 public static SWRLFactory createFactory( OWLOntology ont ) {
21 return new SWRLFactoryImpl( ont );
/owl-s/src/impl/jena/
H A DOWLKnowledgeBaseImpl.java137 OWLOntology ont = createOntologyWithoutLoading(uri, fileURI, (Model) implementation);
139 return load(ont);
143 OWLOntology ont = new OWLOntologyImpl(this, uri, fileURI, model);
144 return ont;
147 public OWLOntology loadOntology(OWLOntology ont) { argument
148 return load(ont);
151 public OWLOntology load(OWLOntology ont) { argument
152 return load( ont, true );
155 public OWLOntology load(OWLOntology ont, boolean withImports) { argument
156 OWLOntology loadedOnt = internalLoad( ont, withImport
174 internalLoad(OWLOntology ont, boolean withImports) argument
292 wrapDataValue(Literal l, OWLOntology ont) argument
296 wrapIndividual(Resource r, OWLOntology ont) argument
309 wrapClass(Resource r, OWLOntology ont) argument
318 wrapObjectProperty(Property p, OWLOntology ont) argument
327 wrapDataProperty(Property p, OWLOntology ont) argument
[all...]
H A DRDQLParser.java69 OWLOntology ont = OWLFactory.createOntology();
70 SWRLFactory swrl = SWRLFactoryCreator.createFactory( ont );
88 OWLClass c = ont.createClass( new URI( t.getObject().getURI() ) );
89 SWRLIndividualObject arg = makeIndividalObject( t.getSubject(), ont );
101 OWLDataProperty dp = ont.createDataProperty( p.getURI() ) ;
102 SWRLIndividualObject arg1 = makeIndividalObject( t.getSubject(), ont );
103 SWRLDataObject arg2 = makeDataObject( t.getObject(), ont );
111 OWLObjectProperty op = ont.createObjectProperty( p.getURI() ) ;
112 SWRLIndividualObject arg1 = makeIndividalObject( t.getSubject(), ont );
113 SWRLIndividualObject arg2 = makeIndividalObject( t.getObject(), ont );
[all...]
H A DOWLReaderImpl.java188 OWLOntology ont = readFile((OWLKnowledgeBaseImpl) kb, in, physicalURI, baseURI);
189 return kb.load(ont);
195 OWLOntology ont = kb.getOntology(fileURI);
197 if(ont != null) {
199 return ont;
210 OWLOntology ont = kb.getOntology(fileURI);
212 if(ont != null) {
214 return ont;
219 ont = (OWLOntology) modelCache.get(fileURI);
220 if(ont !
[all...]
H A DOWLIndividualImpl.java61 public OWLEntity inOntology(OWLOntology ont) { argument
62 if(ontology.equals(ont))
203 OWLOntology ont = OWLFactory.createOntology();
205 getBnodeClosure( this, ont );
208 OWLWriter writer = ont.getWriter();
212 ont.write( sw );
224 private void getBnodeClosure( OWLIndividual ind, OWLOntology ont ) {
230 ont.addType( ind, c );
238 ont.addProperty( ind, p, value );
242 getBnodeClosure( obj, ont );
[all...]
H A DOWLClassImpl.java22 public OWLClassImpl(OWLOntology ont, Resource resource) { argument
23 super(ont, resource);
H A DOWLWriterImpl.java214 public void write(OWLModel ont, Writer writer) { argument
215 writeInternal(ont, writer, null);
221 public void write(OWLModel ont, Writer writer, URI baseURI) { argument
222 writeInternal(ont, writer, baseURI);
228 public void write(OWLModel ont, OutputStream out) { argument
229 writeInternal(ont, new OutputStreamWriter(out, defaultCharset), null);
235 public void write(OWLModel ont, OutputStream out, URI baseURI) { argument
236 writeInternal(ont, new OutputStreamWriter(out, defaultCharset), baseURI);
H A DOWLOntologyImpl.java100 OWLOntology ont = (OWLOntology) orderedList.get( i );
101 if( importsClosure.contains( ont ) )
104 importsClosure.add( ont );
106 for(Iterator it = ont.getImports().iterator(); it.hasNext();) {
280 protected OWLDataValue wrapDataValue(Literal l, OWLOntology ont) { argument
284 protected OWLIndividual wrapIndividual(Resource r, OWLOntology ont) { argument
288 protected OWLClass wrapClass(Resource r, OWLOntology ont) { argument
292 protected OWLObjectProperty wrapObjectProperty(Property p, OWLOntology ont) { argument
296 protected OWLDataProperty wrapDataProperty(Property p, OWLOntology ont) { argument
446 OWLOntologyImpl ont
[all...]
/owl-s/src/impl/owls/
H A DGenericVersionTranslator.java56 private OWLSVersionTranslator findTranslator(OWLOntology ont) { argument
58 if(translators[i].canTranslate(ont)) {
/owl-s/src/examples/
H A DForEachExample.java72 OWLOntology ont = kb.createOntology();
73 CompositeProcess cp = ont.createCompositeProcess();
74 Input in = ont.createInput(URI.create( ns + "in" ));
79 ForEach forEach = ont.createForEach();
80 Local loopVar = ont.createLocal( URI.create( ns + "loopVar") );
86 Perform perform = ont.createPerform();
93 ont.write(System.out);
96 String zipcodeOnt = "http://www.daml.org/2001/10/html/zipcode-ont#";
100 OWLIndividual zip1 = ont.createInstance(ZipCode);
102 OWLIndividual zip2 = ont
[all...]
H A DCreateComplexProcess.java66 OWLOntology ont; field in class:CreateComplexProcess
101 Service service = ont.createService( uri( "TestService" ) );
115 Profile profile = ont.createProfile( uri( "TestProfile" ) );
138 Grounding grounding = ont.createGrounding( uri( "TestGrounding" ) );
153 CompositeProcess process = ont.createCompositeProcess( uri( "TestProcess") );
165 Sequence sequence = ont.createSequence();
169 Perform FindBookInfo = ont.createPerform( uri( "FindBookInfo" ) );
178 SplitJoin split = ont.createSplitJoin();
181 Perform FindAmazonPrice = ont.createPerform( uri( "FindAmazonPrice" ) );
189 Perform FindBNPrice = ont
[all...]
H A DCreateJavaGrounding.java43 String baseURL = "http://www.ifi.unizh.ch/ddis/ont/owl-s/";
46 OWLOntology ont = OWLFactory.createOntology(URI.create(baseURI));
48 Service service = ont.createService(URI.create(baseURI + "MyService"));
49 AtomicProcess process = ont.createAtomicProcess(URI.create(baseURI + "MyProcess"));
52 Input input1 = ont.createInput(URI.create(baseURI + "myInput1"));
56 Input input2 = ont.createInput(URI.create(baseURI + "myInput2"));
60 Output output = ont.createOutput(URI.create(baseURI + "myOutput"));
64 JavaAtomicGrounding jAtomicGround = ont.createJavaAtomicGrounding(URI.create(baseURI + "MyJAtomGround"));
72 Grounding jGrounding = ont.createJavaGrounding(URI.create(baseURI + "MyJGrounding"));
76 ont
[all...]
H A DCreateSequence.java61 OWLOntology ont; field in class:CreateSequence
81 Service service = ont.createService(URIUtils.createURI(baseURI, "TestService"));
82 CompositeProcess process = ont.createCompositeProcess(URIUtils.createURI(baseURI, "TestProcess"));
83 Profile profile = ont.createProfile(URIUtils.createURI(baseURI, "TestProfile"));
84 Grounding grounding = ont.createGrounding(URIUtils.createURI(baseURI, "TestGrounding"));
86 System.out.println(ont.getKB().getServices());
174 Sequence sequence = ont.createSequence();
182 performs[i] = ont.createPerform();
204 Input newInput = ont.createInput(URIUtils.createURI(baseURI, "TestInput"));
216 Output newOutput = ont
[all...]
H A DMatchmaker.java73 public void addOntology( String ont ) throws FileNotFoundException, URISyntaxException {
74 System.out.println( "Reading " + ont );
75 kb.read( new URI( ont ) );
78 public void addOntology( URI ont ) throws FileNotFoundException {
79 System.out.println( "Reading " + ont );
80 kb.read( ont );
H A DTranslator.java53 OWLOntology ont = kb.read(uri);
55 ont.write(out);
H A DServiceExtension.java39 public static final URI baseURI = URI.create("http://www.ifi.unizh.ch/ddis/ont/owl-s/ServiceExtensionTest.owl#");
56 OWLOntology ont = kb.createOntology();
59 Service s = ont.createService(URIUtils.createURI(baseURI, "TestService"));
61 AtomicProcess process = ont.createAtomicProcess(URIUtils.createURI(baseURI, "TestProcess"));
62 Profile profile = ont.createProfile(URIUtils.createURI(baseURI, "TestProfile"));
63 Grounding grounding = ont.createGrounding(URIUtils.createURI(baseURI, "TestGrounding"));
88 Service s = (Service) kb.readService("http://www.ifi.unizh.ch/ddis/ont/owl-s/ServiceExtensionTest.owl#");
112 "http://www.ifi.unizh.ch/ddis/ont/owl-s/ServiceExtensionTest.owl#additionalProperty")));
H A DOWLSValidator.java78 OWLOntology ont = kb.read(uri);
82 out.printBold("Number of services found: ").println(ont.getServices().size() +"");
H A DQuickTest.java57 OWLOntology ont = kb.read("http://www.w3.org/2001/sw/WebOnt/guide-src/wine.owl");
58 OWLIndividual ind = ont.getIndividual(URIUtils.createURI("http://www.w3.org/2001/sw/WebOnt/guide-src/wine#ChateauDeMeursaultMeursault"));
/owl-s/src/org/mindswap/wsdl/
H A DWSDLTranslator.java45 private OWLOntology ont; field in class:WSDLTranslator
51 ont = kb.createOntology();
55 service = ont.createService(URIUtils.createURI(baseURI, prefix + "Service"));
57 Profile profile = ont.createProfile(URIUtils.createURI(baseURI, prefix + "Profile"));
58 AtomicProcess process = ont.createAtomicProcess(URIUtils.createURI(baseURI, prefix + "Process"));
59 Grounding grounding = ont.createGrounding(URIUtils.createURI(baseURI, prefix + "Grounding"));
60 WSDLAtomicGrounding ag = ont.createWSDLAtomicGrounding(URIUtils.createURI(baseURI, prefix + "AtomicProcessGrounding"));
95 Input input = ont.createInput(URIUtils.createURI(baseURI, paramName));
98 OWLType type = ont.getType(paramType);
99 input.setParamType(type == null ? ont
[all...]
/owl-s/src/impl/swrl/
H A DSWRLFactoryImpl.java35 private OWLOntology ont; field in class:SWRLFactoryImpl
37 public SWRLFactoryImpl( OWLOntology ont ) {
38 this.ont = ont;
42 return ont;
46 return (AtomList) ont.createList(SWRL.AtomListVocabulary).castTo(AtomList.class);
50 return (AtomList) ont.createList(SWRL.AtomListVocabulary, atom).castTo(AtomList.class);
54 return new SWRLIndividualVariableImpl(ont.createInstance(SWRL.Variable, uri));
58 return new SWRLDataVariableImpl(ont.createInstance(SWRL.Variable, uri));
70 ClassAtom atom = (ClassAtom) ont
[all...]
H A DAtomListImpl.java65 OWLOntology ont = getOntology();
66 AtomListImpl list = new AtomListImpl( ont.createInstance( vocabulary.List() ) );
128 OWLOntology ont = getOntology();
129 SWRLFactory swrl = SWRLFactoryCreator.createFactory( ont );
/owl-s/src/org/mindswap/utils/
H A DRDFUtils.java65 OWLOntology ont = kb.read( new StringReader( buffer.toString() ), null );
66 OWLIndividual ind = ont.getIndividuals().individualAt( 0 );

Completed in 99 milliseconds

12