📄 owls_0_9.java
字号:
// The MIT License
//
// Copyright (c) 2004 Evren Sirin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
package org.mindswap.owls.vocabulary;
import java.net.URI;
import org.mindswap.owl.OWLFactory;
/**
* The class that defines the vocabulary for OWL-S 0.9.
*
* @author Evren Sirin
*/
public class OWLS_0_9 extends OWLS {
public static OWLS_0_9 instance = new OWLS_0_9();
public Service Service;
public Profile Profile;
public Process Process;
public Grounding Grounding;
protected OWLS_0_9() {
super("http://www.daml.org/services/owl-s/", "0.9");
Service = new Service(URI + "Service.owl#");
Profile = new Profile(URI + "Profile.owl#");
Process = new Process(URI + "Process.owl#");
Grounding = new Grounding(URI + "Grounding.owl#");
}
public OWLS.Service getService() { return Service; }
public OWLS.Profile getProfile() { return Profile; }
public OWLS.Process getProcess() { return Process; }
public OWLS.Grounding getGrounding() {return Grounding; }
public class Service extends OWLS.Service {
Service(String URI) {
super(URI);
}
}
public class Profile extends OWLS.Profile {
public URI ParameterDescription;
public URI input;
public URI output;
public URI restrictedTo;
public URI parameterName;
public URI refersTo;
Profile(String URI) {
super(URI);
ParameterDescription = OWLFactory.createURI(URI + "ParameterDescription");
input = OWLFactory.createURI(URI + "input");
output = OWLFactory.createURI(URI + "output");
restrictedTo = OWLFactory.createURI(URI + "restrictedTo");
parameterName = OWLFactory.createURI(URI + "parameterName");
refersTo = OWLFactory.createURI(URI + "refersTo");
}
}
public class Process extends OWLS.Process {
public URI input;
public URI output;
public URI precondition;
public URI effect;
public URI listOfInstancesOf;
Process(String URI) {
super(URI);
input = OWLFactory.createURI(URI + "input");
output = OWLFactory.createURI(URI + "output");
precondition = OWLFactory.createURI(URI + "precondition");
effect = OWLFactory.createURI(URI + "effect");
listOfInstancesOf = OWLFactory.createURI(URI + "listOfInstancesOf");
}
}
public class Grounding extends OWLS.Grounding {
Grounding(String URI) {
super(URI);
owlsProcess = OWLFactory.createURI(URI + "damlsProcess");
owlsParameter = OWLFactory.createURI(URI + "damlsParameter");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -