SensorML OGC 12-000
Copyright © 2014 Open Geospatial Consortium
115
8.2 Requirements Class: Simple Process Schema Requirements Class
http:www.opengis.netspecsensorml2.0reqxmlsimple-process
Target Type XML Instance Dependency
http:www.opengis.netspecsensorml2.0reqmodelsimple-process
Dependency
http:www.opengis.netspecsensorml2.0reqxmlcore-process
XML Schema elements and types defined in the “simple_process.xsd” schema file implement all classes defined respectively in the “simple-process” UML package defined
in Clause 7.3.
Requirement
http:www.opengis.netspecsensorml2.0reqxmlsimple-processschema-valid
Req 63. The XML instance shall be valid with respect to the XML grammar defined in the “simple_process.xsd”, as well as satisfy all Schematron patterns defined in
“simple_process.sch”.
The following XML snippet provides the appropriate header and import statements for the simple_process.xsd:
schema xmlns
= http:www.w3.org2001XMLSchema
xmlns:sml =
http:www.opengis.netsensorML2.0 xmlns:gml
= http:www.opengis.netgml3.2
xmlns:swe =
http:www.opengis.netswe2.0 targetNamespace
= http:www.opengis.netsensorML2.0
elementFormDefault =
qualified attributeFormDefault
= unqualified
annotation documentation
The elements of a concrete simple non-physical process derived from the core process model.
documentation annotation
import namespace
= http:www.opengis.netgml3.2
schemaLocation =
http:schemas.opengis.netgml3.2.1gml.xsd import
namespace =
http:www.opengis.netswe2.0 schemaLocation
= http:schemas.opengis.netsweCommon2.0swe.xsd
include schemaLocation
= core.xsd
8.2.1 Simple Process The “SimpleProcesss” element is the XML schema implementation of the
“SimpleProcess” UML class defined in clause 7.3.1. The schema snippet for this element and its corresponding complex type is shown below:
element name
= SimpleProcess
type =
sml:SimpleProcessType substitutionGroup
= sml:AbstractProcess
complexType name
= SimpleProcessType
complexContent
Copyright © 2014 Open Geospatial Consortium
116
extension base
= sml:AbstractProcessType
sequence element
name =
method type
= sml:ProcessMethodPropertyType
minOccurs =
maxOccurs =
1 sequence
extension complexContent
complexType complexType
name =
SimpleProcessPropertyType sequence
minOccurs =
element ref
= sml:SimpleProcess
sequence attributeGroup
ref =
gml:AssociationAttributeGroup attributeGroup
ref =
gml:OwnershipAttributeGroup complexType
The SimpleProcess element and complex type is derived from AbstractProcess and adds a method property to the properties inherited from AbstractProcess. The method property
takes a ProcessMethod element as its value.
8.2.2 Process Method
The “ProcessMethod” element is the XML schema implementation of the “ProcessMethod” UML class defined in clause 7.3.2. The schema snippet for this
element and its corresponding complex type is shown below:
element name
= ProcessMethod
type =
sml:ProcessMethodType substitutionGroup
= swe:AbstractSWEIdentifiable
annotation documentation
The method describes as an algorithm or text how the process takes the input and parameter values and generates output values.
documentation annotation
element complexType
name =
ProcessMethodType complexContent
extension base
= swe:AbstractSWEIdentifiableType
sequence element
name =
algorithm minOccurs
= maxOccurs
= unbounded
complexType sequence
element ref
= sml:AbstractAlgorithm
sequence complexType
element sequence
extension complexContent
complexType complexType
name =
ProcessMethodPropertyType sequence
minOccurs =
element ref
= sml:ProcessMethod
sequence attributeGroup
ref =
swe:AssociationAttributeGroup complexType
element name
= AbstractAlgorithm
type =
sml:AbstractAlgorithmType abstract
= true
substitutionGroup =
gml:AbstractObject
SensorML OGC 12-000
Copyright © 2014 Open Geospatial Consortium
117
complexType name
= AbstractAlgorithmType
abstract =
true sequence
attribute ref
= gml:id
use =
optional complexType
complexType name
= AbstractAlgorithmPropertyType
sequence minOccurs
= element
ref =
sml:AbstractAlgorithm sequence
attributeGroup ref
= swe:AssociationAttributeGroup
complexType
The ProcessMethod element is derived from SWEIdentifiableType and thus supports the swe:identifier, swe:label, and swe:description properties, as well as the swe:extension
property, which supports the ability to specify community-specific XML elements for describing the method.
Furthermore, ProcessMethod has an algorithm property that takes an AbstractAlgorithm element as its value. It is anticipated that profiles will be specified in separate
specifications that will support algorithms descriptions through schema such as MathML.
Copyright © 2014 Open Geospatial Consortium
118
8.3 Requirements Class: Aggregate Process Schema Requirements Class