📄 owls.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 abstract class that defines the common vocabulary in different OWL-S versions. A different subclass
* is created for each OWL-S version.
*
* @author Evren Sirin
*/
public abstract class OWLS {
public String base;
public String version;
public String URI;
public abstract Service getService();
public abstract Profile getProfile();
public abstract Process getProcess();
public abstract Grounding getGrounding();
protected OWLS(String base, String version) {
this.base = base;
this.version = version;
URI = base + version + "/";
}
public class Service {
public String URI;
public URI Service;
public URI presentedBy;
public URI presents;
public URI describedBy;
public URI describes;
public URI supportedBy;
public URI supports;
Service(String URI) {
this.URI = URI;
Service = OWLFactory.createURI(URI + "Service");
presentedBy = OWLFactory.createURI(URI + "presentedBy");
presents = OWLFactory.createURI(URI + "presents");
describedBy = OWLFactory.createURI(URI + "describedBy");
describes = OWLFactory.createURI(URI + "describes");
supportedBy = OWLFactory.createURI(URI + "supportedBy");
supports = OWLFactory.createURI(URI + "supports");
}
}
public class Profile {
public String URI;
public URI Profile;
public URI serviceName;
public URI textDescription;
public URI ServiceParameter;
public URI serviceParameter;
public URI sParameter;
public URI ServiceCategory;
public URI serviceCategory;
public URI categoryName;
public URI taxonomy;
public URI value;
public URI code;
Profile(String URI) {
this.URI = URI;
Profile = OWLFactory.createURI(URI + "Profile");
serviceName = OWLFactory.createURI(URI + "serviceName");
textDescription = OWLFactory.createURI(URI + "textDescription");
ServiceParameter = OWLFactory.createURI(URI + "ServiceParameter");
serviceParameter = OWLFactory.createURI(URI + "serviceParameter");
sParameter = OWLFactory.createURI(URI + "sParameter");
ServiceCategory = OWLFactory.createURI(URI + "ServiceCategory");
serviceCategory = OWLFactory.createURI(URI + "serviceCategory");
categoryName = OWLFactory.createURI(URI + "categoryName");
taxonomy = OWLFactory.createURI(URI + "taxonomy");
value = OWLFactory.createURI(URI + "value");
code = OWLFactory.createURI(URI + "code");
}
}
public class Process {
public String URI;
public URI ProcessModel;
public URI Process;
public URI AtomicProcess;
public URI CompositeProcess;
public URI SimpleProcess;
public URI Sequence;
public URI Unordered;
public URI Choice;
public URI IfThenElse;
public URI Split;
public URI SplitJoin;
public URI ValueOf;
public URI hasProcess;
public URI composedOf;
public URI components;
public URI sameValues;
public URI atClass;
public URI theProperty;
Process(String URI) {
this.URI = URI;
ProcessModel = OWLFactory.createURI(URI + "ProcessModel");
Process = OWLFactory.createURI(URI + "Process");
AtomicProcess = OWLFactory.createURI(URI + "AtomicProcess");
CompositeProcess = OWLFactory.createURI(URI + "CompositeProcess");
SimpleProcess = OWLFactory.createURI(URI + "SimpleProcess");
Sequence = OWLFactory.createURI(URI + "Sequence");
Unordered = OWLFactory.createURI(URI + "Unordered");
Choice = OWLFactory.createURI(URI + "Choice");
IfThenElse = OWLFactory.createURI(URI + "If-Then-Else");
Split = OWLFactory.createURI(URI + "Split");
SplitJoin = OWLFactory.createURI(URI + "Split-Join");
ValueOf = OWLFactory.createURI(URI + "ValueOf");
hasProcess = OWLFactory.createURI(URI + "hasProcess");
composedOf = OWLFactory.createURI(URI + "composedOf");
components = OWLFactory.createURI(URI + "components");
sameValues = OWLFactory.createURI(URI + "sameValues");
atClass = OWLFactory.createURI(URI + "atClass");
theProperty = OWLFactory.createURI(URI + "theProperty");
}
}
public class Grounding {
public String URI;
public URI WsdlGrounding;
public URI WsdlAtomicProcessGrounding;
public URI WsdlOperationRef;
public URI hasAtomicProcessGrounding;
public URI wsdlDocument;
public URI wsdlOperation;
public URI portType;
public URI operation;
public URI owlsProcess;
public URI wsdlInputMessage;
public URI wsdlInputMessageParts;
public URI wsdlOutputMessage;
public URI wsdlOutputMessageParts;
public URI wsdlMessageMap;
public URI wsdlMessagePart;
public URI owlsParameter;
public URI xsltTransformation;
Grounding(String URI) {
this.URI = URI;
WsdlGrounding = OWLFactory.createURI(URI + "WsdlGrounding");
WsdlAtomicProcessGrounding = OWLFactory.createURI(URI + "WsdlAtomicProcessGrounding");
WsdlOperationRef = OWLFactory.createURI(URI + "WsdlOperationRef");
hasAtomicProcessGrounding = OWLFactory.createURI(URI + "hasAtomicProcessGrounding");
wsdlDocument = OWLFactory.createURI(URI + "wsdlDocument");
wsdlOperation = OWLFactory.createURI(URI + "wsdlOperation");
portType = OWLFactory.createURI(URI + "portType");
operation = OWLFactory.createURI(URI + "operation");
owlsProcess = OWLFactory.createURI(URI + "owlsProcess");
wsdlInputMessage = OWLFactory.createURI(URI + "wsdlInputMessage");
wsdlInputMessageParts = OWLFactory.createURI(URI + "wsdlInputMessageParts");
wsdlOutputMessage = OWLFactory.createURI(URI + "wsdlOutputMessage");
wsdlOutputMessageParts = OWLFactory.createURI(URI + "wsdlOutputMessageParts");
wsdlMessageMap = OWLFactory.createURI(URI + "wsdlMessageMap");
wsdlMessagePart = OWLFactory.createURI(URI + "wsdlMessagePart");
owlsParameter = OWLFactory.createURI(URI + "owlsParameter");
xsltTransformation = OWLFactory.createURI(URI + "xsltTransformation");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -