diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100755 index 0000000..76c4f63 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + name: Build on Java ${{ matrix.java-version }} + + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + java-version: [8] + + steps: + - name: Check out repository + uses: actions/checkout@v2 + + - name: Set up Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: ${{ matrix.java-version }} + + - name: Store or retrieve Gradle caches + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: ${{ runner.os }}-gradle- + + - name: Build and test + run: ./gradlew check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100755 index 0000000..2f5f9ad --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,57 @@ +name: release + +on: + push: + tags: + - v* + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Checkout latest code + uses: actions/checkout@v2 + + - name: Set up JDK + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: 8 + + - name: Cache Gradle Wrapper + uses: actions/cache@v2 + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }} + + - name: Cache Gradle Caches + uses: actions/cache@v2 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle*') }} + restore-keys: ${{ runner.os }}-gradle-cache + + - name: Get tag version + id: get_version + uses: battila7/get-version-action@v2 + + - name: Publish artifacts to GitHub Packages + run: | + echo "New version: ${{ steps.get_version.outputs.version-without-v }}" + echo "Github username: ${GITHUB_ACTOR}" + ./gradlew -Pversion=${{ steps.get_version.outputs.version-without-v }} publish + env: + PROJECT_URL: ${{ github.event.repository.url }} + MAVEN_PUBLISH_URL: https://maven.pkg.github.com/${{ github.repository }} + MAVEN_PUBLISH_USERNAME: ${{ github.actor }} + MAVEN_PUBLISH_PASSWORD: ${{ github.token }} + + - name: Release with Changelog + uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + prerelease: false + title: "ONE.Record Ontology-Model Library ${{ steps.get_version.outputs.version }}" + files: | + build/libs/*.jar diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..0e295e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/build/ +*.iml +.idea/ +.gradle/ +.DS_Store diff --git a/LICENSE.md b/LICENSE.md new file mode 100755 index 0000000..344948f --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,18 @@ +Copyright (c) 2021 Riege Software International GmbH, https://www.riege.com + +The Universal Permissive License (UPL), Version 1.0 + +Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software, associated documentation and/or data (collectively the "Software"), free of charge and under any and all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or (ii) the Larger Works (as defined below), to deal in both + +(a) the Software, and + +(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software (each a “Larger Work” to which the Software is contributed by such licensors), + +without restriction, including without limitation the rights to copy, create derivative works of, display, perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and have sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other terms. + +This license is subject to the following condition: + +The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL must 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. + diff --git a/README.md b/README.md new file mode 100755 index 0000000..dd770de --- /dev/null +++ b/README.md @@ -0,0 +1,65 @@ +# one-record-ontologymodel + +## Introduction + +This repository contains **Java POJO classes for IATA ONE Record** (1R), as per +official IATA Ontology on GitHub at https://github.com/IATA-Cargo/ONE-Record. + +Note that the deliverable of this project contains POJO classes from the +Ontologies for "API-Security" _and_ "Data-Model". + +This repository additionally contains some assisting classes e.g., +in package `org.iata.cargo.codelists` which are not generated from the +Ontology but might be useful for fields where values are limited to code +lists. Please note the `codelists` packages are incomplete and do not +mirror all cods from the Ontology. +See also https://github.com/IATA-Cargo/ONE-Record/issues/92 for details about +"Standard values of enumerations". + +## How to use / Dependencies + +This repository aims use the most minimal dependencies, therefore also `build.gradle` +comes with disabled transitive dependency resolution. The declared project +dependencies resolve the POJO annocations. + +See these examples about the POJOs used in projects: + +* https://github.com/riege/one-record-converter (using this library) +* https://github.com/IATA-Cargo/one-record-server-java (original from IATA) + +## Used Ontology / Data model version + +In general, the official IATA Ontology determines the 1R data model. The IATA Ontology is available in various versions at GitHub. +The IATA Cargo Operations and Technology Board (COTB, https://www.iata.org/en/programs/workgroups/cotb/) +approved various Ontology versions. + +Ontologies prior version 1.1 +(https://github.com/IATA-Cargo/ONE-Record/tree/master/June-2021-standard-COTB-endorsed) +have not been covered enought data fields required used by forwarders in the CargoIMP/XMP (X)FWB. + +This project aims to keeps it's releases and versioning in synchronization with the IATA Ontologies, starting with IATA ONE Record Ontology version 1.1. + +## Question and Feedback + +For any issues or questions with the ONE Record Ontology and data model as such, +please refer to or create new issues with the IATA-Cargo project on GitHub under +https://github.com/IATA-Cargo/ONE-Record/issues. + +## Generation from a new Ontology + +Generation of Java domain classes from the Ontology is part of the IATA Sandbox implementation, see https://github.com/IATA-Cargo/one-record-server-java/blob/master/README.md. + +Updating file `iata.ttl` in this project and applying step "Generate ONE Record cargo related data model" from the README generates the POJOs. + +It is recommended to remove directory `src/main/generated-sources/org/iata/cargo` prior generation. + +Example for generation from IATA-Cargo/one-record-server-java main directory on Linux/macOS with Ontology 1.1 (June 2021): + + rm -rf src/main/generated-sources/org/iata/cargo + curl -o iata.ttl https://raw.githubusercontent.com/IATA-Cargo/ONE-Record/master/June-2021-standard-COTB-endorsed/Data-Model/IATA-1R-DM-Ontology-vCOTB-Jun2021.ttl + mvn package -Dbuild=cargo + +Compile might fail now but ```src/main/generated-sources/org/iata/cargo``` contains the freshly generated POJO files which required adoption of annotations +prior updating this the one-record-ontologymodel project with them. + +P.S.: As per 2021-Mar-18, the Ontology has various open issues which are likely to be adopted in upcoming versions e.g., https://github.com/IATA-Cargo/ONE-Record/issues/85 or https://github.com/IATA-Cargo/ONE-Record/issues/111 diff --git a/RELEASE-HINTS.md b/RELEASE-HINTS.md new file mode 100755 index 0000000..a045112 --- /dev/null +++ b/RELEASE-HINTS.md @@ -0,0 +1,14 @@ +# Developer internal info for release strategy + +This library project started with the "latest" working draft which was developed out of Ontology version 1.0. +Therefore first release got tagged as `v1.0-workingdraft2021mar`. + +Further releases should follow the IATA versioning pattern of IATA approved ONE Record Ontogogies, e.g. `v1.1`. + +Prior a new release the project should be checked to generate javadoc without errors via + + ./gradlew javadoc + +Reason is that the Ontology might contain characters which are invalid in Javadoc, e.g. the & character. + +A new release requires to be branched and tagged with `v`. diff --git a/build.gradle b/build.gradle new file mode 100755 index 0000000..793a73d --- /dev/null +++ b/build.gradle @@ -0,0 +1,64 @@ +plugins { + id 'java' + id 'maven-publish' + id 'idea' +} + +sourceCompatibility = JavaVersion.VERSION_1_8 +targetCompatibility = JavaVersion.VERSION_1_8 + +group 'com.riege' +version '1.1.0' + +repositories { + mavenCentral() +} + +configurations.all { + // Disabling transitive resolution of dependencies + // https://docs.gradle.org/current/userguide/resolution_rules.html#sec:disabling_resolution_transitive_dependencies + transitive = false +} + +dependencies { + implementation "com.fasterxml.jackson.core:jackson-annotations:2.11.4" + implementation "cz.cvut.kbss.jopa:jopa-api:0.16.5" + implementation "net.sourceforge.owlapi:owlapi-api:5.1.17" + implementation "org.apache.commons:commons-rdf-api:0.5.0" + implementation "io.swagger:swagger-annotations:1.5.24" + implementation "org.springframework.data:spring-data-mongodb:3.0.9.RELEASE" + implementation "org.springframework.data:spring-data-commons:2.3.9.RELEASE" + + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2' +} + +java { + withSourcesJar() // to get a "sourcesJar" task + withJavadocJar() // to get a "javadocJar" task +} + +test { + useJUnitPlatform() +} + +publishing { + publications { + maven(MavenPublication) { + from components.java + pom { + name = "Riege Software International ONE.Record Ontology-Model Library" + url = System.getenv("PROJECT_URL") + } + } + } + repositories { + maven { + url = System.getenv("MAVEN_PUBLISH_URL") + credentials { + username = System.getenv("MAVEN_PUBLISH_USERNAME") + password = System.getenv("MAVEN_PUBLISH_PASSWORD") + } + } + } +} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100755 index 0000000..e708b1c Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100755 index 0000000..ffed3a2 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..4f906e0 --- /dev/null +++ b/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100755 index 0000000..ac1b06f --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/settings.gradle b/settings.gradle new file mode 100755 index 0000000..fa9afc1 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,2 @@ +rootProject.name = 'one-record-ontologymodel' + diff --git a/src/main/java/org/iata/api/Vocabulary.java b/src/main/java/org/iata/api/Vocabulary.java new file mode 100755 index 0000000..2cba5a4 --- /dev/null +++ b/src/main/java/org/iata/api/Vocabulary.java @@ -0,0 +1,518 @@ + +package org.iata.api; + +import org.semanticweb.owlapi.model.IRI; + + +/** + * This class was generated by OWL2Java 0.16.4 + * + */ +public class Vocabulary { + + public final static String ONTOLOGY_IRI_onerecord_dot_iata_dot_org_generated = "https://onerecord.iata.org-generated"; + public final static String ONTOLOGY_IRI_ = "https://onerecord.iata.org/api/"; + public final static String s_c_Thing = "http://www.w3.org/2002/07/owl#Thing"; + public final static IRI c_Thing = IRI.create(s_c_Thing); + /** + * Audit trail of a Logistics Object + * + */ + public final static String s_c_AuditTrail = "https://onerecord.iata.org/api/AuditTrail"; + public final static IRI c_AuditTrail = IRI.create(s_c_AuditTrail); + /** + * Change Request for the audit trail + * + */ + public final static String s_c_ChangeRequest = "https://onerecord.iata.org/api/ChangeRequest"; + public final static IRI c_ChangeRequest = IRI.create(s_c_ChangeRequest); + + /** + * Company information in the Internet of Logistics + * + */ + public final static String s_c_CompanyInformation = "https://onerecord.iata.org/api/CompanyInformation"; + public final static IRI c_CompanyInformation = IRI.create(s_c_CompanyInformation); + /** + * Delegation Request to 3rd parties + * + */ + public final static String s_c_DelegationRequest = "https://onerecord.iata.org/api/DelegationRequest"; + public final static IRI c_DelegationRequest = IRI.create(s_c_DelegationRequest); + /** + * Error details + * + */ + public final static String s_c_Details = "https://onerecord.iata.org/api/Details"; + public final static IRI c_Details = IRI.create(s_c_Details); + /** + * Error model + * + */ + public final static String s_c_Error = "https://onerecord.iata.org/api/Error"; + public final static IRI c_Error = IRI.create(s_c_Error); + + /** + * Reference to a Logistics Object + * + */ + public final static String s_c_LogisticsObjectRef = "https://onerecord.iata.org/api/LogisticsObjectRef"; + public final static IRI c_LogisticsObjectRef = IRI.create(s_c_LogisticsObjectRef); + /** + * Version of a Logistics Object + * + */ + public final static String s_c_Memento = "https://onerecord.iata.org/api/Memento"; + public final static IRI c_Memento = IRI.create(s_c_Memento); + /** + * Memento entry from the time map + * + */ + public final static String s_c_MementoEntry = "https://onerecord.iata.org/api/MementoEntry"; + public final static IRI c_MementoEntry = IRI.create(s_c_MementoEntry); + /** + * Memento list model + * + */ + public final static String s_c_MementoList = "https://onerecord.iata.org/api/MementoList"; + public final static IRI c_MementoList = IRI.create(s_c_MementoList); + /** + * Memento list model + * + */ + public final static String s_c_Mementos = "https://onerecord.iata.org/api/Mementos"; + public final static IRI c_Mementos = IRI.create(s_c_Mementos); + /** + * Notification sent by the publisher to the subscriber + * + */ + public final static String s_c_Notification = "https://onerecord.iata.org/api/Notification"; + public final static IRI c_Notification = IRI.create(s_c_Notification); + /** + * Operation Request contained in the PATCH body + * + */ + public final static String s_c_Operation = "https://onerecord.iata.org/api/Operation"; + public final static IRI c_Operation = IRI.create(s_c_Operation); + /** + * Object to modify in the PATCH request + * + */ + public final static String s_c_OperationObject = "https://onerecord.iata.org/api/OperationObject"; + public final static IRI c_OperationObject = IRI.create(s_c_OperationObject); + /** + * PATCH Request body containing updates on a Logistics Object + * + */ + public final static String s_c_PatchRequest = "https://onerecord.iata.org/api/PatchRequest"; + public final static IRI c_PatchRequest = IRI.create(s_c_PatchRequest); + /** + * Subscription information sent to the publisher + * + */ + public final static String s_c_Subscription = "https://onerecord.iata.org/api/Subscription"; + public final static IRI c_Subscription = IRI.create(s_c_Subscription); + /** + * Timemap of a Logistics Object containing mementos and timegate URI + * + */ + public final static String s_c_Timemap = "https://onerecord.iata.org/api/Timemap"; + public final static IRI c_Timemap = IRI.create(s_c_Timemap); + public final static String s_c_Branch_A = "https://onerecord.iata.org/cargo/Branch"; + public final static IRI c_Branch_A = IRI.create(s_c_Branch_A); + public final static String s_c_Company_A = "https://onerecord.iata.org/cargo/Company"; + public final static IRI c_Company_A = IRI.create(s_c_Company_A); + /** + * List of change requests that were sent as PATCH on for a Logistics Object + * + */ + public final static String s_p_changeRequests = "https://onerecord.iata.org/api/AuditTrail#changeRequests"; + public final static IRI p_changeRequests = IRI.create(s_p_changeRequests); + /** + * Non mandatory error details + * + */ + public final static String s_p_errors = "https://onerecord.iata.org/api/AuditTrail#errors"; + public final static IRI p_errors = IRI.create(s_p_errors); + /** + * Initial content of the Logistics Object at the creation moment, represented via a Memento + * + */ + public final static String s_p_loInitialSnapshot = "https://onerecord.iata.org/api/AuditTrail#loInitialSnapshot"; + public final static IRI p_loInitialSnapshot = IRI.create(s_p_loInitialSnapshot); + /** + * Logistics Object Reference for which the audit trail applies + * + */ + public final static String s_p_logisticsObjectRef = "https://onerecord.iata.org/api/AuditTrail#logisticsObjectRef"; + public final static IRI p_logisticsObjectRef = IRI.create(s_p_logisticsObjectRef); + /** + * PATCH body of a change request sent for a specific Logistics Object + * + */ + public final static String s_p_patchRequest = "https://onerecord.iata.org/api/ChangeRequest#patchRequest"; + public final static IRI p_patchRequest = IRI.create(s_p_patchRequest); + /** + * The party that has requested the change request + * + */ + public final static String s_p_requestingParty = "https://onerecord.iata.org/api/ChangeRequest#requestingParty"; + public final static IRI p_requestingParty = IRI.create(s_p_requestingParty); + /** + * Company details + * + */ + public final static String s_p_company = "https://onerecord.iata.org/api/CompanyInformation#company"; + public final static IRI p_company = IRI.create(s_p_company); + /** + * Non mandatory error details + * + */ + public final static String s_p_errors_A = "https://onerecord.iata.org/api/CompanyInformation#errors"; + public final static IRI p_errors_A = IRI.create(s_p_errors_A); + /** + * Identifiers of the logistics objects to which the access is requested + * + */ + public final static String s_p_targetLogisticsObjects = "https://onerecord.iata.org/api/DelegationRequest#targetLogisticsObjects"; + public final static IRI p_targetLogisticsObjects = IRI.create(s_p_targetLogisticsObjects); + /** + * Error details + * + */ + public final static String s_p_details = "https://onerecord.iata.org/api/Error#details"; + public final static IRI p_details = IRI.create(s_p_details); + /** + * Link to the memento + * + */ + public final static String s_p_memento = "https://onerecord.iata.org/api/MementoEntry#memento"; + public final static IRI p_memento = IRI.create(s_p_memento); + /** + * List of mementos of a Logistics Object + * + */ + public final static String s_p_mementoEntry = "https://onerecord.iata.org/api/MementoList#mementoEntry"; + public final static IRI p_mementoEntry = IRI.create(s_p_mementoEntry); + /** + * List of mementos of a Logistics Object + * + */ + public final static String s_p_list = "https://onerecord.iata.org/api/Mementos#list"; + public final static IRI p_list = IRI.create(s_p_list); + /** + * Logistics Object for which the notification is sent + * + */ + public final static String s_p_logisticsObject = "https://onerecord.iata.org/api/Notification#logisticsObject"; + public final static IRI p_logisticsObject = IRI.create(s_p_logisticsObject); + /** + * PATCH object to modify + * + */ + public final static String s_p_o = "https://onerecord.iata.org/api/Operation#o"; + public final static IRI p_o = IRI.create(s_p_o); + /** + * Reference of the Logistics Object to which the change request is applied to + * + */ + public final static String s_p_logisticsObjectRef_A = "https://onerecord.iata.org/api/PatchRequest#logisticsObjectRef"; + public final static IRI p_logisticsObjectRef_A = IRI.create(s_p_logisticsObjectRef_A); + /** + * List of operations to apply as PATCH on a Logistics Object + * + */ + public final static String s_p_operations = "https://onerecord.iata.org/api/PatchRequest#operations"; + public final static IRI p_operations = IRI.create(s_p_operations); + /** + * Non mandatory error details + * + */ + public final static String s_p_errors_A_A = "https://onerecord.iata.org/api/Subscription#errors"; + public final static IRI p_errors_A_A = IRI.create(s_p_errors_A_A); + /** + * List of mementos of a Logistics Object + * + */ + public final static String s_p_mementos = "https://onerecord.iata.org/api/Timemap#mementos"; + public final static IRI p_mementos = IRI.create(s_p_mementos); + /** + * Company which sent the change request + * + */ + public final static String s_p_companyId = "https://onerecord.iata.org/api/ChangeRequest#companyId"; + public final static IRI p_companyId = IRI.create(s_p_companyId); + /** + * ACCEPTED or REJECTED + * + */ + public final static String s_p_status = "https://onerecord.iata.org/api/ChangeRequest#status"; + public final static IRI p_status = IRI.create(s_p_status); + /** + * Timestamp of the change request + * + */ + public final static String s_p_timestamp = "https://onerecord.iata.org/api/ChangeRequest#timestamp"; + public final static IRI p_timestamp = IRI.create(s_p_timestamp); + /** + * Company Id, for example airline code. + * + */ + public final static String s_p_companyId_A = "https://onerecord.iata.org/api/CompanyInformation#companyId"; + public final static IRI p_companyId_A = IRI.create(s_p_companyId_A); + /** + * Endpoint of the company in the Internet of Logistics + * + */ + public final static String s_p_serverEndpoint = "https://onerecord.iata.org/api/CompanyInformation#serverEndpoint"; + public final static IRI p_serverEndpoint = IRI.create(s_p_serverEndpoint); + /** + * Supported content types of the server + * + */ + public final static String s_p_supportedContentTypes = "https://onerecord.iata.org/api/CompanyInformation#supportedContentTypes"; + public final static IRI p_supportedContentTypes = IRI.create(s_p_supportedContentTypes); + /** + * Supported logistics object types on the server + * + */ + public final static String s_p_supportedLogisticsObjects = "https://onerecord.iata.org/api/CompanyInformation#supportedLogisticsObjects"; + public final static IRI p_supportedLogisticsObjects = IRI.create(s_p_supportedLogisticsObjects); + /** + * REVOKE or DELEGATE + * + */ + public final static String s_p_action = "https://onerecord.iata.org/api/DelegationRequest#action"; + public final static IRI p_action = IRI.create(s_p_action); + /** + * GET or PATCH + * + */ + public final static String s_p_operations_A = "https://onerecord.iata.org/api/DelegationRequest#operations"; + public final static IRI p_operations_A = IRI.create(s_p_operations_A); + /** + * Parties that receive the delegated rights + * + */ + public final static String s_p_targetCompanies = "https://onerecord.iata.org/api/DelegationRequest#targetCompanies"; + public final static IRI p_targetCompanies = IRI.create(s_p_targetCompanies); + /** + * Field of the object for which the error applies + * + */ + public final static String s_p_attribute = "https://onerecord.iata.org/api/Details#attribute"; + public final static IRI p_attribute = IRI.create(s_p_attribute); + /** + * Error code + * + */ + public final static String s_p_code = "https://onerecord.iata.org/api/Details#code"; + public final static IRI p_code = IRI.create(s_p_code); + /** + * Message of the error + * + */ + public final static String s_p_message = "https://onerecord.iata.org/api/Details#message"; + public final static IRI p_message = IRI.create(s_p_message); + /** + * Object for which the error applies + * + */ + public final static String s_p_resource = "https://onerecord.iata.org/api/Details#resource"; + public final static IRI p_resource = IRI.create(s_p_resource); + /** + * Brief description of the error + * + */ + public final static String s_p_title = "https://onerecord.iata.org/api/Error#title"; + public final static IRI p_title = IRI.create(s_p_title); + /** + * Id of the reference Logistics Object + * + */ + public final static String s_p_logisticsObjectId = "https://onerecord.iata.org/api/LogisticsObjectRef#logisticsObjectId"; + public final static IRI p_logisticsObjectId = IRI.create(s_p_logisticsObjectId); + /** + * Type of the reference Logistics Object + * + */ + public final static String s_p_logisticsObjectType = "https://onerecord.iata.org/api/LogisticsObjectRef#logisticsObjectType"; + public final static IRI p_logisticsObjectType = IRI.create(s_p_logisticsObjectType); + /** + * Date and time of the memento creation + * + */ + public final static String s_p_created = "https://onerecord.iata.org/api/Memento#created"; + public final static IRI p_created = IRI.create(s_p_created); + /** + * Name of the memento creator + * + */ + public final static String s_p_createdBy = "https://onerecord.iata.org/api/Memento#createdBy"; + public final static IRI p_createdBy = IRI.create(s_p_createdBy); + /** + * Label of the memento + * + */ + public final static String s_p_label = "https://onerecord.iata.org/api/Memento#label"; + public final static IRI p_label = IRI.create(s_p_label); + /** + * First version of the Logistics Object + * + */ + public final static String s_p_original = "https://onerecord.iata.org/api/Memento#original"; + public final static IRI p_original = IRI.create(s_p_original); + /** + * Creation date of the memento + * + */ + public final static String s_p_datetime = "https://onerecord.iata.org/api/MementoEntry#datetime"; + public final static IRI p_datetime = IRI.create(s_p_datetime); + /** + * Non mandatory label of the memento + * + */ + public final static String s_p_label_A = "https://onerecord.iata.org/api/MementoEntry#label"; + public final static IRI p_label_A = IRI.create(s_p_label_A); + /** + * First memento of the Logistics Object + * + */ + public final static String s_p_firstMemento = "https://onerecord.iata.org/api/Mementos#firstMemento"; + public final static IRI p_firstMemento = IRI.create(s_p_firstMemento); + /** + * Last memento of the Logistics Object + * + */ + public final static String s_p_lastMemento = "https://onerecord.iata.org/api/Mementos#lastMemento"; + public final static IRI p_lastMemento = IRI.create(s_p_lastMemento); + /** + * OBJECT_CREATED or OBJECT_UPDATED + * + */ + public final static String s_p_eventType = "https://onerecord.iata.org/api/Notification#eventType"; + public final static IRI p_eventType = IRI.create(s_p_eventType); + /** + * Type of Logistics Object + * + */ + public final static String s_p_topic = "https://onerecord.iata.org/api/Notification#topic"; + public final static IRI p_topic = IRI.create(s_p_topic); + /** + * Operation objects must have exactly one op (operation) member; this value indicates which operation is to be performed. The value must be one of add or del; all other values result in an error + * + */ + public final static String s_p_op = "https://onerecord.iata.org/api/Operation#op"; + public final static IRI p_op = IRI.create(s_p_op); + /** + * Operations objects must have exactly one p, predicate, member. The value of this member must be an IRI + * + */ + public final static String s_p_p = "https://onerecord.iata.org/api/Operation#p"; + public final static IRI p_p = IRI.create(s_p_p); + /** + * Data type of the field to update + * + */ + public final static String s_p_datatype = "https://onerecord.iata.org/api/OperationObject#datatype"; + public final static IRI p_datatype = IRI.create(s_p_datatype); + /** + * Value to update + * + */ + public final static String s_p_value = "https://onerecord.iata.org/api/OperationObject#value"; + public final static IRI p_value = IRI.create(s_p_value); + /** + * Reason for the change (optional) + * + */ + public final static String s_p_description = "https://onerecord.iata.org/api/PatchRequest#description"; + public final static IRI p_description = IRI.create(s_p_description); + /** + * The company identifier of the entity that is requesting the change request + * + */ + public final static String s_p_requestorCompanyIdentifier = "https://onerecord.iata.org/api/PatchRequest#requestorCompanyIdentifier"; + public final static IRI p_requestorCompanyIdentifier = IRI.create(s_p_requestorCompanyIdentifier); + /** + * Revision number of the Logistics Object + * + */ + public final static String s_p_revision = "https://onerecord.iata.org/api/PatchRequest#revision"; + public final static IRI p_revision = IRI.create(s_p_revision); + /** + * Duration of the period to cache the subscription information in seconds + * + */ + public final static String s_p_cacheFor = "https://onerecord.iata.org/api/Subscription#cacheFor"; + public final static IRI p_cacheFor = IRI.create(s_p_cacheFor); + /** + * Callback URL of the Client Subscription API where the subscriber receives Logistics Objects + * + */ + public final static String s_p_callbackUrl = "https://onerecord.iata.org/api/Subscription#callbackUrl"; + public final static IRI p_callbackUrl = IRI.create(s_p_callbackUrl); + /** + * Content types that the subscriber wants to receive in the notifications + * + */ + public final static String s_p_contentTypes = "https://onerecord.iata.org/api/Subscription#contentTypes"; + public final static IRI p_contentTypes = IRI.create(s_p_contentTypes); + /** + * The company identifier from the Internet of Logistics of my company. + * + */ + public final static String s_p_myCompanyIdentifier = "https://onerecord.iata.org/api/Subscription#myCompanyIdentifier"; + public final static IRI p_myCompanyIdentifier = IRI.create(s_p_myCompanyIdentifier); + /** + * Either a secret or API Key that ensures that only companies with this subscription information can POST to the subscriber callback endpoint + * + */ + public final static String s_p_secret = "https://onerecord.iata.org/api/Subscription#secret"; + public final static IRI p_secret = IRI.create(s_p_secret); + /** + * Flag specifying if the publisher should send the whole logistics object or not in the notification object + * + */ + public final static String s_p_sendLogisticsObjectBody = "https://onerecord.iata.org/api/Subscription#sendLogisticsObjectBody"; + public final static IRI p_sendLogisticsObjectBody = IRI.create(s_p_sendLogisticsObjectBody); + /** + * Flag specifying if the subscriber wants to receive updates for a Logistics Object + * + */ + public final static String s_p_subscribeToStatusUpdates = "https://onerecord.iata.org/api/Subscription#subscribeToStatusUpdates"; + public final static IRI p_subscribeToStatusUpdates = IRI.create(s_p_subscribeToStatusUpdates); + /** + * Company Identifier of the company the subscriber wants to subscribe to (delegation scenario). + * + */ + public final static String s_p_subscribedTo = "https://onerecord.iata.org/api/Subscription#subscribedTo"; + public final static IRI p_subscribedTo = IRI.create(s_p_subscribedTo); + /** + * The Logistics Object type to which the subscriber wants subscribe to + * + */ + public final static String s_p_topic_A = "https://onerecord.iata.org/api/Subscription#topic"; + public final static IRI p_topic_A = IRI.create(s_p_topic_A); + /** + * Link to the initial version of the Logistics Object + * + */ + public final static String s_p_original_A = "https://onerecord.iata.org/api/Timemap#original"; + public final static IRI p_original_A = IRI.create(s_p_original_A); + /** + * Link to the time gate of the Logistics Object, if applicable + * + */ + public final static String s_p_timegate = "https://onerecord.iata.org/api/Timemap#timegate"; + public final static IRI p_timegate = IRI.create(s_p_timegate); + public final static String s_p_description_A = "http://purl.org/dc/elements/1.1/description"; + public final static IRI p_description_A = IRI.create(s_p_description_A); + public final static String s_p_title_A = "http://purl.org/dc/elements/1.1/title"; + public final static IRI p_title_A = IRI.create(s_p_title_A); + public final static String s_p_comment = "http://www.w3.org/2000/01/rdf-schema#comment"; + public final static IRI p_comment = IRI.create(s_p_comment); + public final static String s_p_label_A_A = "http://www.w3.org/2000/01/rdf-schema#label"; + public final static IRI p_label_A_A = IRI.create(s_p_label_A_A); + +} diff --git a/src/main/java/org/iata/api/model/AuditTrail.java b/src/main/java/org/iata/api/model/AuditTrail.java new file mode 100755 index 0000000..ab148d9 --- /dev/null +++ b/src/main/java/org/iata/api/model/AuditTrail.java @@ -0,0 +1,185 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; +import org.springframework.data.mongodb.core.mapping.Document; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Audit trail of a Logistics Object + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_AuditTrail) +@Document(collection = "auditTrails") +@ApiModel +public class AuditTrail + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_AuditTrail) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * List of change requests that were sent as PATCH on for a Logistics Object + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_changeRequests) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_changeRequests) + protected Set changeRequests; + /** + * Non mandatory error details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_errors) + @JsonProperty(Vocabulary.s_p_errors) + protected Set errors; + /** + * Initial content of the Logistics Object at the creation moment, represented via a Memento + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_loInitialSnapshot) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_loInitialSnapshot) + protected Memento loInitialSnapshot; + /** + * Logistics Object Reference for which the audit trail applies + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_logisticsObjectRef) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_logisticsObjectRef) + protected LogisticsObjectRef logisticsObjectRef; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("AuditTrail {"+ name)+"<")+ id)+">")+"}"); + } + + public void setChangeRequests(Set changeRequests) { + this.changeRequests = changeRequests; + } + + public Set getChangeRequests() { + return changeRequests; + } + + public void setErrors(Set errors) { + this.errors = errors; + } + + public Set getErrors() { + return errors; + } + + public void setLoInitialSnapshot(Memento loInitialSnapshot) { + this.loInitialSnapshot = loInitialSnapshot; + } + + public Memento getLoInitialSnapshot() { + return loInitialSnapshot; + } + + public void setLogisticsObjectRef(LogisticsObjectRef logisticsObjectRef) { + this.logisticsObjectRef = logisticsObjectRef; + } + + public LogisticsObjectRef getLogisticsObjectRef() { + return logisticsObjectRef; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/ChangeRequest.java b/src/main/java/org/iata/api/model/ChangeRequest.java new file mode 100755 index 0000000..3dd4803 --- /dev/null +++ b/src/main/java/org/iata/api/model/ChangeRequest.java @@ -0,0 +1,208 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; +import org.iata.cargo.model.Branch; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Change Request for the audit trail + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_ChangeRequest) +public class ChangeRequest + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_ChangeRequest) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * PATCH body of a change request sent for a specific Logistics Object + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_patchRequest) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_patchRequest) + protected PatchRequest patchRequest; + /** + * The party that has requested the change request + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_requestingParty) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_requestingParty) + protected Branch requestingParty; + /** + * Company which sent the change request + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_companyId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_companyId) + protected String companyId; + /** + * ACCEPTED or REJECTED + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_status) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_status) + protected String status; + /** + * Timestamp of the change request + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_timestamp) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_timestamp) + protected Date timestamp; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("ChangeRequest {"+ name)+"<")+ id)+">")+"}"); + } + + public void setPatchRequest(PatchRequest patchRequest) { + this.patchRequest = patchRequest; + } + + public PatchRequest getPatchRequest() { + return patchRequest; + } + + public void setRequestingParty(Branch requestingParty) { + this.requestingParty = requestingParty; + } + + public Branch getRequestingParty() { + return requestingParty; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getCompanyId() { + return companyId; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getStatus() { + return status; + } + + public void setTimestamp(Date timestamp) { + this.timestamp = timestamp; + } + + public Date getTimestamp() { + return timestamp; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/CompanyInformation.java b/src/main/java/org/iata/api/model/CompanyInformation.java new file mode 100755 index 0000000..1ac5184 --- /dev/null +++ b/src/main/java/org/iata/api/model/CompanyInformation.java @@ -0,0 +1,216 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; +import org.iata.cargo.model.Company; +import org.springframework.data.mongodb.core.mapping.Document; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.*; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Company information in the Internet of Logistics + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_CompanyInformation) +@Document(collection = "companies") +@ApiModel +public class CompanyInformation + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @ApiModelProperty(allowableValues = Vocabulary.s_c_CompanyInformation) + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Company details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_company) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_company) + protected Company company; + /** + * Non mandatory error details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_errors_A) + @JsonProperty(Vocabulary.s_p_errors_A) + protected Set errors; + /** + * Company Id, for example airline code. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_companyId_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_companyId_A) + protected String companyId; + /** + * Endpoint of the company in the Internet of Logistics + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_serverEndpoint) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_serverEndpoint) + protected String serverEndpoint; + /** + * Supported content types of the server + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_supportedContentTypes) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_supportedContentTypes) + protected Set supportedContentTypes; + /** + * Supported logistics object types on the server + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_supportedLogisticsObjects) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_supportedLogisticsObjects) + protected Set supportedLogisticsObjects; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("CompanyInformation {"+ name)+"<")+ id)+">")+"}"); + } + + public void setCompany(Company company) { + this.company = company; + } + + public Company getCompany() { + return company; + } + + public void setErrors(Set errors) { + this.errors = errors; + } + + public Set getErrors() { + return errors; + } + + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + public String getCompanyId() { + return companyId; + } + + public void setServerEndpoint(String serverEndpoint) { + this.serverEndpoint = serverEndpoint; + } + + public String getServerEndpoint() { + return serverEndpoint; + } + + public void setSupportedContentTypes(Set supportedContentTypes) { + this.supportedContentTypes = supportedContentTypes; + } + + public Set getSupportedContentTypes() { + return supportedContentTypes; + } + + public void setSupportedLogisticsObjects(Set supportedLogisticsObjects) { + this.supportedLogisticsObjects = supportedLogisticsObjects; + } + + public Set getSupportedLogisticsObjects() { + return supportedLogisticsObjects; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/DelegationRequest.java b/src/main/java/org/iata/api/model/DelegationRequest.java new file mode 100755 index 0000000..98f14fd --- /dev/null +++ b/src/main/java/org/iata/api/model/DelegationRequest.java @@ -0,0 +1,188 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; +import org.springframework.data.mongodb.core.mapping.Document; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Delegation Request to 3rd parties + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_DelegationRequest) +@Document(collection = "delegationRequests") +@ApiModel +public class DelegationRequest + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_DelegationRequest) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Identifiers of the logistics objects to which the access is requested + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_targetLogisticsObjects) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_targetLogisticsObjects) + protected Set targetLogisticsObjects; + /** + * REVOKE or DELEGATE + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_action) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_action) + protected String action; + /** + * GET or PATCH + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_operations_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_operations_A) + protected Set operations; + /** + * Parties that receive the delegated rights + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_targetCompanies) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_targetCompanies) + protected Set targetCompanies; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("DelegationRequest {"+ name)+"<")+ id)+">")+"}"); + } + + public void setTargetLogisticsObjects(Set targetLogisticsObjects) { + this.targetLogisticsObjects = targetLogisticsObjects; + } + + public Set getTargetLogisticsObjects() { + return targetLogisticsObjects; + } + + public void setAction(String action) { + this.action = action; + } + + public String getAction() { + return action; + } + + public void setOperations(Set operations) { + this.operations = operations; + } + + public Set getOperations() { + return operations; + } + + public void setTargetCompanies(Set targetCompanies) { + this.targetCompanies = targetCompanies; + } + + public Set getTargetCompanies() { + return targetCompanies; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/Details.java b/src/main/java/org/iata/api/model/Details.java new file mode 100755 index 0000000..f7bfbc0 --- /dev/null +++ b/src/main/java/org/iata/api/model/Details.java @@ -0,0 +1,183 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Error details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Details) +public class Details + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @ApiModelProperty(allowableValues = Vocabulary.s_c_Details) + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Field of the object for which the error applies + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_attribute) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_attribute) + protected String attribute; + /** + * Error code + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_code) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_code) + protected String code; + /** + * Message of the error + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_message) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_message) + protected String message; + /** + * Object for which the error applies + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_resource) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_resource) + protected String resource; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Details {"+ name)+"<")+ id)+">")+"}"); + } + + public void setAttribute(String attribute) { + this.attribute = attribute; + } + + public String getAttribute() { + return attribute; + } + + public void setCode(String code) { + this.code = code; + } + + public String getCode() { + return code; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getMessage() { + return message; + } + + public void setResource(String resource) { + this.resource = resource; + } + + public String getResource() { + return resource; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/Error.java b/src/main/java/org/iata/api/model/Error.java new file mode 100755 index 0000000..c28612b --- /dev/null +++ b/src/main/java/org/iata/api/model/Error.java @@ -0,0 +1,148 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Error model + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Error) +public class Error + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Error) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Error details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_details) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_details) + protected Set
details; + /** + * Brief description of the error + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_title) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_title) + protected String title; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Error {"+ name)+"<")+ id)+">")+"}"); + } + + public void setDetails(Set
details) { + this.details = details; + } + + public Set
getDetails() { + return details; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getTitle() { + return title; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/LogisticsObjectRef.java b/src/main/java/org/iata/api/model/LogisticsObjectRef.java new file mode 100755 index 0000000..cdfd92a --- /dev/null +++ b/src/main/java/org/iata/api/model/LogisticsObjectRef.java @@ -0,0 +1,148 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Reference to a Logistics Object + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_LogisticsObjectRef) +public class LogisticsObjectRef + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_LogisticsObjectRef) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Id of the reference Logistics Object + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_logisticsObjectId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_logisticsObjectId) + protected String logisticsObjectId; + /** + * Type of the reference Logistics Object + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_logisticsObjectType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_logisticsObjectType) + protected String logisticsObjectType; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("LogisticsObjectRef {"+ name)+"<")+ id)+">")+"}"); + } + + public void setLogisticsObjectId(String logisticsObjectId) { + this.logisticsObjectId = logisticsObjectId; + } + + public String getLogisticsObjectId() { + return logisticsObjectId; + } + + public void setLogisticsObjectType(String logisticsObjectType) { + this.logisticsObjectType = logisticsObjectType; + } + + public String getLogisticsObjectType() { + return logisticsObjectType; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/Memento.java b/src/main/java/org/iata/api/model/Memento.java new file mode 100755 index 0000000..a01030e --- /dev/null +++ b/src/main/java/org/iata/api/model/Memento.java @@ -0,0 +1,190 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; +import org.springframework.data.mongodb.core.mapping.Document; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Version of a Logistics Object + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Memento) +@Document(collection = "mementos") +@ApiModel +public class Memento + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @ApiModelProperty(allowableValues = Vocabulary.s_c_Memento) + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Date and time of the memento creation + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_created) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_created) + protected Date created; + /** + * Name of the memento creator + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_createdBy) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_createdBy) + protected String createdBy; + /** + * Label of the memento + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_label) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_label) + protected String label; + /** + * First version of the Logistics Object + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_original) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_original) + protected String original; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Memento {"+ name)+"<")+ id)+">")+"}"); + } + + public void setCreated(Date created) { + this.created = created; + } + + public Date getCreated() { + return created; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public String getCreatedBy() { + return createdBy; + } + + public void setLabel(String label) { + this.label = label; + } + + public String getLabel() { + return label; + } + + public void setOriginal(String original) { + this.original = original; + } + + public String getOriginal() { + return original; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/MementoEntry.java b/src/main/java/org/iata/api/model/MementoEntry.java new file mode 100755 index 0000000..55f8c4e --- /dev/null +++ b/src/main/java/org/iata/api/model/MementoEntry.java @@ -0,0 +1,168 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Memento entry from the time map + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_MementoEntry) +public class MementoEntry + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_MementoEntry) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Link to the memento + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_memento) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_memento) + protected Memento memento; + /** + * Creation date of the memento + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_datetime) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_datetime) + protected Date datetime; + /** + * Non mandatory label of the memento + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_label_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_label_A) + protected String label; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("MementoEntry {"+ name)+"<")+ id)+">")+"}"); + } + + public void setMemento(Memento memento) { + this.memento = memento; + } + + public Memento getMemento() { + return memento; + } + + public void setDatetime(Date datetime) { + this.datetime = datetime; + } + + public Date getDatetime() { + return datetime; + } + + public void setLabel(String label) { + this.label = label; + } + + public String getLabel() { + return label; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/MementoList.java b/src/main/java/org/iata/api/model/MementoList.java new file mode 100755 index 0000000..ca2a3cd --- /dev/null +++ b/src/main/java/org/iata/api/model/MementoList.java @@ -0,0 +1,128 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Memento list model + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_MementoList) +public class MementoList + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @ApiModelProperty(allowableValues = Vocabulary.s_c_MementoList) + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * List of mementos of a Logistics Object + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_mementoEntry) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_mementoEntry) + protected Set mementoEntry; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("MementoList {"+ name)+"<")+ id)+">")+"}"); + } + + public void setMementoEntry(Set mementoEntry) { + this.mementoEntry = mementoEntry; + } + + public Set getMementoEntry() { + return mementoEntry; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/Mementos.java b/src/main/java/org/iata/api/model/Mementos.java new file mode 100755 index 0000000..0613763 --- /dev/null +++ b/src/main/java/org/iata/api/model/Mementos.java @@ -0,0 +1,168 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Memento list model + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Mementos) +public class Mementos + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @ApiModelProperty(allowableValues = Vocabulary.s_c_Mementos) + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * List of mementos of a Logistics Object + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_list) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_list) + protected MementoList list; + /** + * First memento of the Logistics Object + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_firstMemento) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_firstMemento) + protected String firstMemento; + /** + * Last memento of the Logistics Object + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_lastMemento) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_lastMemento) + protected String lastMemento; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Mementos {"+ name)+"<")+ id)+">")+"}"); + } + + public void setList(MementoList list) { + this.list = list; + } + + public MementoList getList() { + return list; + } + + public void setFirstMemento(String firstMemento) { + this.firstMemento = firstMemento; + } + + public String getFirstMemento() { + return firstMemento; + } + + public void setLastMemento(String lastMemento) { + this.lastMemento = lastMemento; + } + + public String getLastMemento() { + return lastMemento; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/Notification.java b/src/main/java/org/iata/api/model/Notification.java new file mode 100755 index 0000000..f80591e --- /dev/null +++ b/src/main/java/org/iata/api/model/Notification.java @@ -0,0 +1,173 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; +import org.iata.cargo.model.LogisticsObject; +import org.springframework.data.mongodb.core.mapping.Document; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Notification sent by the publisher to the subscriber + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Notification) +@Document(collection = "notifications") +@ApiModel +public class Notification + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @ApiModelProperty(allowableValues = Vocabulary.s_c_Notification) + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Logistics Object for which the notification is sent + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_logisticsObject) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_logisticsObject) + protected LogisticsObject logisticsObject; + /** + * OBJECT_CREATED or OBJECT_UPDATED + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_eventType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_eventType) + protected String eventType; + /** + * Type of Logistics Object + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_topic) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_topic) + protected String topic; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Notification {"+ name)+"<")+ id)+">")+"}"); + } + + public void setLogisticsObject(LogisticsObject logisticsObject) { + this.logisticsObject = logisticsObject; + } + + public LogisticsObject getLogisticsObject() { + return logisticsObject; + } + + public void setEventType(String eventType) { + this.eventType = eventType; + } + + public String getEventType() { + return eventType; + } + + public void setTopic(String topic) { + this.topic = topic; + } + + public String getTopic() { + return topic; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/Operation.java b/src/main/java/org/iata/api/model/Operation.java new file mode 100755 index 0000000..a98e4f6 --- /dev/null +++ b/src/main/java/org/iata/api/model/Operation.java @@ -0,0 +1,168 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Operation Request contained in the PATCH body + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Operation) +public class Operation + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Operation) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * PATCH object to modify + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_o) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_o) + protected OperationObject o; + /** + * Operation objects must have exactly one op (operation) member; this value indicates which operation is to be performed. The value must be one of add or del; all other values result in an error + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_op) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_op) + protected String op; + /** + * Operations objects must have exactly one p, predicate, member. The value of this member must be an IRI + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_p) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_p) + protected String p; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Operation {"+ name)+"<")+ id)+">")+"}"); + } + + public void setO(OperationObject o) { + this.o = o; + } + + public OperationObject getO() { + return o; + } + + public void setOp(String op) { + this.op = op; + } + + public String getOp() { + return op; + } + + public void setP(String p) { + this.p = p; + } + + public String getP() { + return p; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/OperationObject.java b/src/main/java/org/iata/api/model/OperationObject.java new file mode 100755 index 0000000..549c39a --- /dev/null +++ b/src/main/java/org/iata/api/model/OperationObject.java @@ -0,0 +1,148 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Object to modify in the PATCH request + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_OperationObject) +public class OperationObject + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_OperationObject) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Data type of the field to update + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_datatype) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_datatype) + protected String datatype; + /** + * Value to update + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_value) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_value) + protected String value; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("OperationObject {"+ name)+"<")+ id)+">")+"}"); + } + + public void setDatatype(String datatype) { + this.datatype = datatype; + } + + public String getDatatype() { + return datatype; + } + + public void setValue(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/PatchRequest.java b/src/main/java/org/iata/api/model/PatchRequest.java new file mode 100755 index 0000000..56eaae3 --- /dev/null +++ b/src/main/java/org/iata/api/model/PatchRequest.java @@ -0,0 +1,204 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * PATCH Request body containing updates on a Logistics Object + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_PatchRequest) +public class PatchRequest + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_PatchRequest) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Reference of the Logistics Object to which the change request is applied to + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_logisticsObjectRef_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_logisticsObjectRef_A) + protected LogisticsObjectRef logisticsObjectRef; + /** + * List of operations to apply as PATCH on a Logistics Object + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_operations) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_operations) + protected Set operations; + /** + * Reason for the change (optional) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_description) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_description) + protected String description1; + /** + * The company identifier of the entity that is requesting the change request + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_requestorCompanyIdentifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_requestorCompanyIdentifier) + protected String requestorCompanyIdentifier; + /** + * Revision number of the Logistics Object + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_revision) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_revision) + protected String revision; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("PatchRequest {"+ name)+"<")+ id)+">")+"}"); + } + + public void setLogisticsObjectRef(LogisticsObjectRef logisticsObjectRef) { + this.logisticsObjectRef = logisticsObjectRef; + } + + public LogisticsObjectRef getLogisticsObjectRef() { + return logisticsObjectRef; + } + + public void setOperations(Set operations) { + this.operations = operations; + } + + public Set getOperations() { + return operations; + } + + public void setDescription1(String description1) { + this.description1 = description1; + } + + public String getDescription1() { + return description1; + } + + public void setRequestorCompanyIdentifier(String requestorCompanyIdentifier) { + this.requestorCompanyIdentifier = requestorCompanyIdentifier; + } + + public String getRequestorCompanyIdentifier() { + return requestorCompanyIdentifier; + } + + public void setRevision(String revision) { + this.revision = revision; + } + + public String getRevision() { + return revision; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/Subscription.java b/src/main/java/org/iata/api/model/Subscription.java new file mode 100755 index 0000000..9fbbefc --- /dev/null +++ b/src/main/java/org/iata/api/model/Subscription.java @@ -0,0 +1,293 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; +import org.springframework.data.mongodb.core.mapping.Document; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Subscription information sent to the publisher + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Subscription) +@Document(collection = "subscriptions") +@ApiModel +public class Subscription + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Subscription) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Non mandatory error details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_errors_A_A) + @JsonProperty(Vocabulary.s_p_errors_A_A) + protected Set errors; + /** + * Duration of the period to cache the subscription information in seconds + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_cacheFor) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_cacheFor) + protected String cacheFor; + /** + * Callback URL of the Client Subscription API where the subscriber receives Logistics Objects + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_callbackUrl) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_callbackUrl) + protected String callbackUrl; + /** + * Content types that the subscriber wants to receive in the notifications + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_contentTypes) + @JsonProperty(Vocabulary.s_p_contentTypes) + protected Set contentTypes; + /** + * The company identifier from the Internet of Logistics of my company. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_myCompanyIdentifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_myCompanyIdentifier) + protected String myCompanyIdentifier; + /** + * Either a secret or API Key that ensures that only companies with this subscription information can POST to the subscriber callback endpoint + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_secret) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_secret) + protected String secret; + /** + * Flag specifying if the publisher should send the whole logistics object or not in the notification object + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_sendLogisticsObjectBody) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_sendLogisticsObjectBody) + protected Boolean sendLogisticsObjectBody; + /** + * Flag specifying if the subscriber wants to receive updates for a Logistics Object + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_subscribeToStatusUpdates) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_subscribeToStatusUpdates) + protected Boolean subscribeToStatusUpdates; + /** + * Company Identifier of the company the subscriber wants to subscribe to (delegation scenario). + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_subscribedTo) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_subscribedTo) + protected String subscribedTo; + /** + * The Logistics Object type to which the subscriber wants subscribe to + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_topic_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_topic_A) + protected String topic; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Subscription {"+ name)+"<")+ id)+">")+"}"); + } + + public void setErrors(Set errors) { + this.errors = errors; + } + + public Set getErrors() { + return errors; + } + + public void setCacheFor(String cacheFor) { + this.cacheFor = cacheFor; + } + + public String getCacheFor() { + return cacheFor; + } + + public void setCallbackUrl(String callbackUrl) { + this.callbackUrl = callbackUrl; + } + + public String getCallbackUrl() { + return callbackUrl; + } + + public void setContentTypes(Set contentTypes) { + this.contentTypes = contentTypes; + } + + public Set getContentTypes() { + return contentTypes; + } + + public void setMyCompanyIdentifier(String myCompanyIdentifier) { + this.myCompanyIdentifier = myCompanyIdentifier; + } + + public String getMyCompanyIdentifier() { + return myCompanyIdentifier; + } + + public void setSecret(String secret) { + this.secret = secret; + } + + public String getSecret() { + return secret; + } + + public void setSendLogisticsObjectBody(Boolean sendLogisticsObjectBody) { + this.sendLogisticsObjectBody = sendLogisticsObjectBody; + } + + public Boolean getSendLogisticsObjectBody() { + return sendLogisticsObjectBody; + } + + public void setSubscribeToStatusUpdates(Boolean subscribeToStatusUpdates) { + this.subscribeToStatusUpdates = subscribeToStatusUpdates; + } + + public Boolean getSubscribeToStatusUpdates() { + return subscribeToStatusUpdates; + } + + public void setSubscribedTo(String subscribedTo) { + this.subscribedTo = subscribedTo; + } + + public String getSubscribedTo() { + return subscribedTo; + } + + public void setTopic(String topic) { + this.topic = topic; + } + + public String getTopic() { + return topic; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/Thing.java b/src/main/java/org/iata/api/model/Thing.java new file mode 100755 index 0000000..ba68bc8 --- /dev/null +++ b/src/main/java/org/iata/api/model/Thing.java @@ -0,0 +1,104 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Thing) +public class Thing + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Thing) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Thing {"+ name)+"<")+ id)+">")+"}"); + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/api/model/Timemap.java b/src/main/java/org/iata/api/model/Timemap.java new file mode 100755 index 0000000..a426b9b --- /dev/null +++ b/src/main/java/org/iata/api/model/Timemap.java @@ -0,0 +1,171 @@ + +package org.iata.api.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.api.Vocabulary; +import org.springframework.data.mongodb.core.mapping.Document; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Timemap of a Logistics Object containing mementos and timegate URI + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Timemap) +@Document(collection = "timemaps") +@ApiModel +public class Timemap + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Timemap) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * List of mementos of a Logistics Object + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_mementos) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_mementos) + protected Mementos mementos; + /** + * Link to the initial version of the Logistics Object + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_original_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_original_A) + protected String original; + /** + * Link to the time gate of the Logistics Object, if applicable + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_timegate) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_timegate) + protected String timegate; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Timemap {"+ name)+"<")+ id)+">")+"}"); + } + + public void setMementos(Mementos mementos) { + this.mementos = mementos; + } + + public Mementos getMementos() { + return mementos; + } + + public void setOriginal(String original) { + this.original = original; + } + + public String getOriginal() { + return original; + } + + public void setTimegate(String timegate) { + this.timegate = timegate; + } + + public String getTimegate() { + return timegate; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/cargo/Vocabulary.java b/src/main/java/org/iata/cargo/Vocabulary.java new file mode 100755 index 0000000..580363c --- /dev/null +++ b/src/main/java/org/iata/cargo/Vocabulary.java @@ -0,0 +1,3398 @@ + +package org.iata.cargo; + +import org.semanticweb.owlapi.model.IRI; + + +/** + * This class was generated by OWL2Java 0.16.4 + * + */ +public class Vocabulary { + + public final static String ONTOLOGY_IRI_ = "https://onerecord.iata.org/"; + public final static String ONTOLOGY_IRI_cargo_generated = "https://onerecord.iata.org/cargo-generated"; + public final static String s_c_Thing = "http://www.w3.org/2002/07/owl#Thing"; + public final static IRI c_Thing = IRI.create(s_c_Thing); + /** + * Address details + * + */ + public final static String s_c_Address = "https://onerecord.iata.org/Address"; + public final static IRI c_Address = IRI.create(s_c_Address); + /** + * Booking details - Deprecated, BookingOption should be used instead + * + */ + public final static String s_c_Booking = "https://onerecord.iata.org/Booking"; + public final static IRI c_Booking = IRI.create(s_c_Booking); + /** + * Booking details + * + */ + public final static String s_c_BookingOption = "https://onerecord.iata.org/BookingOption"; + public final static IRI c_BookingOption = IRI.create(s_c_BookingOption); + /** + * Request object, refers to the Quote request or Booking request + * + */ + public final static String s_c_BookingOptionRequest = "https://onerecord.iata.org/BookingOptionRequest"; + public final static IRI c_BookingOptionRequest = IRI.create(s_c_BookingOptionRequest); + /** + * Booking Segment refers to the arrival and location details of a Booking Option Request or a Booking Option (offer or actual booking) + * + */ + public final static String s_c_BookingSegment = "https://onerecord.iata.org/BookingSegment"; + public final static IRI c_BookingSegment = IRI.create(s_c_BookingSegment); + /** + * Previsouly called Schedule. This object refers to times used for the Booking Option Request (preferences part of the request) or the Booking Option (times sur as LAT where there is a commitment from the carrier) + * + */ + public final static String s_c_BookingTimes = "https://onerecord.iata.org/BookingTimes"; + public final static IRI c_BookingTimes = IRI.create(s_c_BookingTimes); + /** + * Company branches + * + */ + public final static String s_c_Branch = "https://onerecord.iata.org/Branch"; + public final static IRI c_Branch = IRI.create(s_c_Branch); + /** + * CO2 calculation methods + * + */ + public final static String s_c_CO2CalcMethod = "https://onerecord.iata.org/CO2CalcMethod"; + public final static IRI c_CO2CalcMethod = IRI.create(s_c_CO2CalcMethod); + /** + * CO2 Calculation + * + */ + public final static String s_c_CO2Emissions = "https://onerecord.iata.org/CO2Emissions"; + public final static IRI c_CO2Emissions = IRI.create(s_c_CO2Emissions); + /** + * Company details of carriers + * + */ + public final static String s_c_Carrier = "https://onerecord.iata.org/Carrier"; + public final static IRI c_Carrier = IRI.create(s_c_Carrier); + /** + * Carrier product details + * + */ + public final static String s_c_CarrierProduct = "https://onerecord.iata.org/CarrierProduct"; + public final static IRI c_CarrierProduct = IRI.create(s_c_CarrierProduct); + /** + * Product additional details + * + */ + public final static String s_c_Characteristics = "https://onerecord.iata.org/Characteristics"; + public final static IRI c_Characteristics = IRI.create(s_c_Characteristics); + /** + * Company details + * + */ + public final static String s_c_Company = "https://onerecord.iata.org/Company"; + public final static IRI c_Company = IRI.create(s_c_Company); + /** + * Company branches + * + */ + public final static String s_c_CompanyBranch = "https://onerecord.iata.org/CompanyBranch"; + public final static IRI c_CompanyBranch = IRI.create(s_c_CompanyBranch); + /** + * Contact details + * + */ + public final static String s_c_Contact = "https://onerecord.iata.org/Contact"; + public final static IRI c_Contact = IRI.create(s_c_Contact); + /** + * Other contact options e.g. Skype, Whatsapp, Viber, Fax etc + * + */ + public final static String s_c_ContactOther = "https://onerecord.iata.org/ContactOther"; + public final static IRI c_ContactOther = IRI.create(s_c_ContactOther); + /** + * Country details + * + */ + public final static String s_c_Country = "https://onerecord.iata.org/Country"; + public final static IRI c_Country = IRI.create(s_c_Country); + /** + * Customs information details + * + */ + public final static String s_c_CustomsInfo = "https://onerecord.iata.org/CustomsInfo"; + public final static IRI c_CustomsInfo = IRI.create(s_c_CustomsInfo); + /** + * Dangerous goods declaration + * + */ + public final static String s_c_DgDeclaration = "https://onerecord.iata.org/DgDeclaration"; + public final static IRI c_DgDeclaration = IRI.create(s_c_DgDeclaration); + /** + * Details of the radioactive products + * + */ + public final static String s_c_DgProductRadioactive = "https://onerecord.iata.org/DgProductRadioactive"; + public final static IRI c_DgProductRadioactive = IRI.create(s_c_DgProductRadioactive); + /** + * Details of the radioactive isotope contained in the product + * + */ + public final static String s_c_DgRadioactiveIsotope = "https://onerecord.iata.org/DgRadioactiveIsotope"; + public final static IRI c_DgRadioactiveIsotope = IRI.create(s_c_DgRadioactiveIsotope); + /** + * Dimension details + * + */ + public final static String s_c_Dimensions = "https://onerecord.iata.org/Dimensions"; + public final static IRI c_Dimensions = IRI.create(s_c_Dimensions); + /** + * Details of the pieces (Live animals) of the permit and specific information such as quantity measured and used to date quota + * + */ + public final static String s_c_EpermitConsignment = "https://onerecord.iata.org/EpermitConsignment"; + public final static IRI c_EpermitConsignment = IRI.create(s_c_EpermitConsignment); + /** + * Signature details of the Epermit for Live Animals + * + */ + public final static String s_c_EpermitSignature = "https://onerecord.iata.org/EpermitSignature"; + public final static IRI c_EpermitSignature = IRI.create(s_c_EpermitSignature); + /** + * Event details + * + */ + public final static String s_c_Event = "https://onerecord.iata.org/Event"; + public final static IRI c_Event = IRI.create(s_c_Event); + /** + * Subtype of Event + * + */ + public final static String s_c_EventUld = "https://onerecord.iata.org/EventUld"; + public final static IRI c_EventUld = IRI.create(s_c_EventUld); + /** + * Reference documents details + * + */ + public final static String s_c_ExternalReference = "https://onerecord.iata.org/ExternalReference"; + public final static IRI c_ExternalReference = IRI.create(s_c_ExternalReference); + /** + * Geolocation details - e.g. for drones, automated vehicles... + * + */ + public final static String s_c_Geolocation = "https://onerecord.iata.org/Geolocation"; + public final static IRI c_Geolocation = IRI.create(s_c_Geolocation); + /** + * Insurance details + * + */ + public final static String s_c_Insurance = "https://onerecord.iata.org/Insurance"; + public final static IRI c_Insurance = IRI.create(s_c_Insurance); + /** + * IoT Device details + * + */ + public final static String s_c_IotDevice = "https://onerecord.iata.org/IotDevice"; + public final static IRI c_IotDevice = IRI.create(s_c_IotDevice); + /** + * Item details + * + */ + public final static String s_c_Item = "https://onerecord.iata.org/Item"; + public final static IRI c_Item = IRI.create(s_c_Item); + /** + * Dangerous Goods subtype of Item + * + */ + public final static String s_c_ItemDg = "https://onerecord.iata.org/ItemDg"; + public final static IRI c_ItemDg = IRI.create(s_c_ItemDg); + /** + * Epermit for Live Animals details + * + */ + public final static String s_c_LiveAnimalsEpermit = "https://onerecord.iata.org/LiveAnimalsEpermit"; + public final static IRI c_LiveAnimalsEpermit = IRI.create(s_c_LiveAnimalsEpermit); + /** + * Loading location details + * + */ + public final static String s_c_Location = "https://onerecord.iata.org/Location"; + public final static IRI c_Location = IRI.create(s_c_Location); + /** + * Logistics Object prent class, containing all common properties for logistics objects. + * + */ + public final static String s_c_LogisticsObject = "https://onerecord.iata.org/LogisticsObject"; + public final static IRI c_LogisticsObject = IRI.create(s_c_LogisticsObject); + /** + * Measurements details for Sensors, either generic or geolocation measurements are recorded + * + */ + public final static String s_c_Measurements = "https://onerecord.iata.org/Measurements"; + public final static IRI c_Measurements = IRI.create(s_c_Measurements); + /** + * Measurements details for Geolocation sensors + * + */ + public final static String s_c_MeasurementsGeoloc = "https://onerecord.iata.org/MeasurementsGeoloc"; + public final static IRI c_MeasurementsGeoloc = IRI.create(s_c_MeasurementsGeoloc); + /** + * Measurements details for sensors that are not geolocation sensors + * + */ + public final static String s_c_MeasurementsOther = "https://onerecord.iata.org/MeasurementsOther"; + public final static IRI c_MeasurementsOther = IRI.create(s_c_MeasurementsOther); + /** + * Times refering to Transport Movements, used to describe specfic times such as Actual Departure time, etc. + * + */ + public final static String s_c_MovementTimes = "https://onerecord.iata.org/MovementTimes"; + public final static IRI c_MovementTimes = IRI.create(s_c_MovementTimes); + /** + * Other identifiers + * + */ + public final static String s_c_OtherIdentifier = "https://onerecord.iata.org/OtherIdentifier"; + public final static IRI c_OtherIdentifier = IRI.create(s_c_OtherIdentifier); + /** + * Company details + * + */ + public final static String s_c_OtherParty = "https://onerecord.iata.org/OtherParty"; + public final static IRI c_OtherParty = IRI.create(s_c_OtherParty); + /** + * Packaging details + * + */ + public final static String s_c_PackagingType = "https://onerecord.iata.org/PackagingType"; + public final static IRI c_PackagingType = IRI.create(s_c_PackagingType); + /** + * Refers to a Company and its role in a specific context, e.g Company A as shipper. Cargo-XML Code List 1.15 can be used as a reference with the addition of "Notify Party" + * + */ + public final static String s_c_Party = "https://onerecord.iata.org/Party"; + public final static IRI c_Party = IRI.create(s_c_Party); + /** + * Person details + * + */ + public final static String s_c_Person = "https://onerecord.iata.org/Person"; + public final static IRI c_Person = IRI.create(s_c_Person); + /** + * Individual piece or virtual grouping of pieces + * + */ + public final static String s_c_Piece = "https://onerecord.iata.org/Piece"; + public final static IRI c_Piece = IRI.create(s_c_Piece); + /** + * Dangerous Goods subtype of Piece + * + */ + public final static String s_c_PieceDg = "https://onerecord.iata.org/PieceDg"; + public final static IRI c_PieceDg = IRI.create(s_c_PieceDg); + /** + * LiveAnimals subclass of Piece + * + */ + public final static String s_c_PieceLiveAnimals = "https://onerecord.iata.org/PieceLiveAnimals"; + public final static IRI c_PieceLiveAnimals = IRI.create(s_c_PieceLiveAnimals); + /** + * Price associated to the offer/booking + * + */ + public final static String s_c_Price = "https://onerecord.iata.org/Price"; + public final static IRI c_Price = IRI.create(s_c_Price); + /** + * Product details + * + */ + public final static String s_c_Product = "https://onerecord.iata.org/Product"; + public final static IRI c_Product = IRI.create(s_c_Product); + /** + * Dangerous Goods subtype of Product + * + */ + public final static String s_c_ProductDg = "https://onerecord.iata.org/ProductDg"; + public final static IRI c_ProductDg = IRI.create(s_c_ProductDg); + /** + * Ranges details + * + */ + public final static String s_c_Ranges = "https://onerecord.iata.org/Ranges"; + public final static IRI c_Ranges = IRI.create(s_c_Ranges); + /** + * Ratings details + * + */ + public final static String s_c_Ratings = "https://onerecord.iata.org/Ratings"; + public final static IRI c_Ratings = IRI.create(s_c_Ratings); + /** + * Regulated Entity + * + */ + public final static String s_c_RegulatedEntity = "https://onerecord.iata.org/RegulatedEntity"; + public final static IRI c_RegulatedEntity = IRI.create(s_c_RegulatedEntity); + /** + * Request object, refers to the Quote request or Booking request + * + */ + public final static String s_c_Request = "https://onerecord.iata.org/Request"; + public final static IRI c_Request = IRI.create(s_c_Request); + /** + * Routing details + * + */ + public final static String s_c_Routing = "https://onerecord.iata.org/Routing"; + public final static IRI c_Routing = IRI.create(s_c_Routing); + /** + * Scheduling details + * + */ + public final static String s_c_Schedule = "https://onerecord.iata.org/Schedule"; + public final static IRI c_Schedule = IRI.create(s_c_Schedule); + /** + * Security declaration details + * + */ + public final static String s_c_SecurityDeclaration = "https://onerecord.iata.org/SecurityDeclaration"; + public final static IRI c_SecurityDeclaration = IRI.create(s_c_SecurityDeclaration); + /** + * Sensor details and measurements, linked to Connected Devices + * + */ + public final static String s_c_Sensor = "https://onerecord.iata.org/Sensor"; + public final static IRI c_Sensor = IRI.create(s_c_Sensor); + /** + * Sensor measurements details for Geolocation sensors (sensorType = "Geolocation") + * + */ + public final static String s_c_SensorGeoloc = "https://onerecord.iata.org/SensorGeoloc"; + public final static IRI c_SensorGeoloc = IRI.create(s_c_SensorGeoloc); + /** + * Sensor measurements details for sensors other than Geolocation sensors (sensorType != "Geolocation") + * + */ + public final static String s_c_SensorOther = "https://onerecord.iata.org/SensorOther"; + public final static IRI c_SensorOther = IRI.create(s_c_SensorOther); + /** + * Service request details + * + */ + public final static String s_c_ServiceRequest = "https://onerecord.iata.org/ServiceRequest"; + public final static IRI c_ServiceRequest = IRI.create(s_c_ServiceRequest); + /** + * Shipment details + * + */ + public final static String s_c_Shipment = "https://onerecord.iata.org/Shipment"; + public final static IRI c_Shipment = IRI.create(s_c_Shipment); + /** + * Special handling details + * + */ + public final static String s_c_SpecialHandling = "https://onerecord.iata.org/SpecialHandling"; + public final static IRI c_SpecialHandling = IRI.create(s_c_SpecialHandling); + /** + * Transport means details + * + */ + public final static String s_c_TransportMeans = "https://onerecord.iata.org/TransportMeans"; + public final static IRI c_TransportMeans = IRI.create(s_c_TransportMeans); + /** + * Transport movement details, replaces the TransportSegment in v1.1 and above + * + */ + public final static String s_c_TransportMovement = "https://onerecord.iata.org/TransportMovement"; + public final static IRI c_TransportMovement = IRI.create(s_c_TransportMovement); + /** + * Transport segment details + * + */ + public final static String s_c_TransportSegment = "https://onerecord.iata.org/TransportSegment"; + public final static IRI c_TransportSegment = IRI.create(s_c_TransportSegment); + /** + * Unit Load Device details + * + */ + public final static String s_c_ULD = "https://onerecord.iata.org/ULD"; + public final static IRI c_ULD = IRI.create(s_c_ULD); + /** + * Volumetric weight details + * + */ + public final static String s_c_Value = "https://onerecord.iata.org/Value"; + public final static IRI c_Value = IRI.create(s_c_Value); + /** + * Unit of measurement details + * + */ + public final static String s_c_VolumetricWeight = "https://onerecord.iata.org/VolumetricWeight"; + public final static IRI c_VolumetricWeight = IRI.create(s_c_VolumetricWeight); + /** + * Waybill details + * + */ + public final static String s_c_Waybill = "https://onerecord.iata.org/Waybill"; + public final static IRI c_Waybill = IRI.create(s_c_Waybill); + public final static String s_p_topObjectProperty = "http://www.w3.org/2002/07/owl#topObjectProperty"; + public final static IRI p_topObjectProperty = IRI.create(s_p_topObjectProperty); + /** + * Country details + * + */ + public final static String s_p_country = "https://onerecord.iata.org/Address#country"; + public final static IRI p_country = IRI.create(s_p_country); + /** + * Carrier details + * + */ + public final static String s_p_carrier = "https://onerecord.iata.org/Booking#carrier"; + public final static IRI p_carrier = IRI.create(s_p_carrier); + /** + * Reference to the Carrier products included in the offer + * + */ + public final static String s_p_carrierProductInfo = "https://onerecord.iata.org/Booking#carrierProductInfo"; + public final static IRI p_carrierProductInfo = IRI.create(s_p_carrierProductInfo); + /** + * Consignee details + * + */ + public final static String s_p_consignee = "https://onerecord.iata.org/Booking#consignee"; + public final static IRI p_consignee = IRI.create(s_p_consignee); + /** + * Freight Forwarder details + * + */ + public final static String s_p_freightForwarder = "https://onerecord.iata.org/Booking#freightForwarder"; + public final static IRI p_freightForwarder = IRI.create(s_p_freightForwarder); + /** + * Other parties to be notified of the booking evolution + * + */ + public final static String s_p_notifyParty = "https://onerecord.iata.org/Booking#notifyParty"; + public final static IRI p_notifyParty = IRI.create(s_p_notifyParty); + /** + * Price of the Booking (if different from the offer) + * + */ + public final static String s_p_price = "https://onerecord.iata.org/Booking#price"; + public final static IRI p_price = IRI.create(s_p_price); + /** + * Reference to the Request + * + */ + public final static String s_p_requestRef = "https://onerecord.iata.org/Booking#requestRef"; + public final static IRI p_requestRef = IRI.create(s_p_requestRef); + /** + * Routing details of the offer, to be compared with routing preferences of the quote request + * + */ + public final static String s_p_routing = "https://onerecord.iata.org/Booking#routing"; + public final static IRI p_routing = IRI.create(s_p_routing); + /** + * Details of the shipement that is to be shipped + * + */ + public final static String s_p_shipmentDetails = "https://onerecord.iata.org/Booking#shipmentDetails"; + public final static IRI p_shipmentDetails = IRI.create(s_p_shipmentDetails); + /** + * Shipper information + * + */ + public final static String s_p_shipper = "https://onerecord.iata.org/Booking#shipper"; + public final static IRI p_shipper = IRI.create(s_p_shipper); + /** + * Transport segment linked to the offer, including the Departure and Arrival locations + * + */ + public final static String s_p_transportMovement = "https://onerecord.iata.org/Booking#transportMovement"; + public final static IRI p_transportMovement = IRI.create(s_p_transportMovement); + /** + * House or Master Waybill unique identifier + * + */ + public final static String s_p_waybillNumber = "https://onerecord.iata.org/Booking#waybillNumber"; + public final static IRI p_waybillNumber = IRI.create(s_p_waybillNumber); + /** + * Booking Segment of the Booking Option + * + */ + public final static String s_p_bookingSegment = "https://onerecord.iata.org/BookingOption#bookingSegment"; + public final static IRI p_bookingSegment = IRI.create(s_p_bookingSegment); + /** + * booking times details of the Booking Option (proposed or actual) + * + */ + public final static String s_p_bookingTimes = "https://onerecord.iata.org/BookingOption#bookingTimes"; + public final static IRI p_bookingTimes = IRI.create(s_p_bookingTimes); + /** + * Carrier details + * + */ + public final static String s_p_carrier_A = "https://onerecord.iata.org/BookingOption#carrier"; + public final static IRI p_carrier_A = IRI.create(s_p_carrier_A); + /** + * Reference to the Carrier products included in the offer + * + */ + public final static String s_p_carrierProductInfo_A = "https://onerecord.iata.org/BookingOption#carrierProductInfo"; + public final static IRI p_carrierProductInfo_A = IRI.create(s_p_carrierProductInfo_A); + /** + * Consignee details + * + */ + public final static String s_p_consignee_A = "https://onerecord.iata.org/BookingOption#consignee"; + public final static IRI p_consignee_A = IRI.create(s_p_consignee_A); + /** + * Freight forwarder details + * + */ + public final static String s_p_freightForwarder_A = "https://onerecord.iata.org/BookingOption#freightForwarder"; + public final static IRI p_freightForwarder_A = IRI.create(s_p_freightForwarder_A); + /** + * Other parties to be notified of the booking evolution + * + */ + public final static String s_p_notifyParty_A = "https://onerecord.iata.org/BookingOption#notifyParty"; + public final static IRI p_notifyParty_A = IRI.create(s_p_notifyParty_A); + /** + * Parties involved in the Booking Option (e.g. shipper, forwarder, ...) + * + */ + public final static String s_p_parties = "https://onerecord.iata.org/BookingOption#parties"; + public final static IRI p_parties = IRI.create(s_p_parties); + /** + * Price of the Booking (if different from the offer) + * + */ + public final static String s_p_price_A = "https://onerecord.iata.org/BookingOption#price"; + public final static IRI p_price_A = IRI.create(s_p_price_A); + /** + * Reference to the Booking option request + * + */ + public final static String s_p_requestRef_A = "https://onerecord.iata.org/BookingOption#requestRef"; + public final static IRI p_requestRef_A = IRI.create(s_p_requestRef_A); + /** + * Routing details of the offer, to be compared with routing preferences of the quote request + * + */ + public final static String s_p_routing_A = "https://onerecord.iata.org/BookingOption#routing"; + public final static IRI p_routing_A = IRI.create(s_p_routing_A); + /** + * Schedule details of the Booking Option (proposed or actual) + * + */ + public final static String s_p_schedule = "https://onerecord.iata.org/BookingOption#schedule"; + public final static IRI p_schedule = IRI.create(s_p_schedule); + /** + * Details of the shipement that is to be shipped + * + */ + public final static String s_p_shipmentDetails_A = "https://onerecord.iata.org/BookingOption#shipmentDetails"; + public final static IRI p_shipmentDetails_A = IRI.create(s_p_shipmentDetails_A); + /** + * Shipper details + * + */ + public final static String s_p_shipper_A = "https://onerecord.iata.org/BookingOption#shipper"; + public final static IRI p_shipper_A = IRI.create(s_p_shipper_A); + /** + * Transport segment linked to the offer, including the Departure and Arrival locations + * + */ + public final static String s_p_transportMovement_A = "https://onerecord.iata.org/BookingOption#transportMovement"; + public final static IRI p_transportMovement_A = IRI.create(s_p_transportMovement_A); + /** + * House or Master Waybill unique identifier + * + */ + public final static String s_p_waybillNumber_A = "https://onerecord.iata.org/BookingOption#waybillNumber"; + public final static IRI p_waybillNumber_A = IRI.create(s_p_waybillNumber_A); + /** + * The Booking Segment linked to the Booking Optio Request + * + */ + public final static String s_p_bookingSegment_A = "https://onerecord.iata.org/BookingOptionRequest#bookingSegment"; + public final static IRI p_bookingSegment_A = IRI.create(s_p_bookingSegment_A); + /** + * Parties involved if known + * + */ + public final static String s_p_parties_A = "https://onerecord.iata.org/BookingOptionRequest#parties"; + public final static IRI p_parties_A = IRI.create(s_p_parties_A); + /** + * Ratings preferences of the request + * + */ + public final static String s_p_ratingsPreference = "https://onerecord.iata.org/BookingOptionRequest#ratingsPreference"; + public final static IRI p_ratingsPreference = IRI.create(s_p_ratingsPreference); + /** + * Routing details that are part of the request, these details will be used to determine if the offer is a perfect match + * + */ + public final static String s_p_routingPreferences = "https://onerecord.iata.org/BookingOptionRequest#routingPreferences"; + public final static IRI p_routingPreferences = IRI.create(s_p_routingPreferences); + /** + * Schedule preferences of the request + * + */ + public final static String s_p_schedulePreferences = "https://onerecord.iata.org/BookingOptionRequest#schedulePreferences"; + public final static IRI p_schedulePreferences = IRI.create(s_p_schedulePreferences); + /** + * Details of the shipement that is to be shipped + * + */ + public final static String s_p_shipmentDetails_A_A = "https://onerecord.iata.org/BookingOptionRequest#shipmentDetails"; + public final static IRI p_shipmentDetails_A_A = IRI.create(s_p_shipmentDetails_A_A); + /** + * Schedule preferences of the request + * + */ + public final static String s_p_timePreferences = "https://onerecord.iata.org/BookingOptionRequest#timePreferences"; + public final static IRI p_timePreferences = IRI.create(s_p_timePreferences); + /** + * Transport segment linked to the request, including the Departure and Arrival locations requested + * + */ + public final static String s_p_transportMovement_A_A = "https://onerecord.iata.org/BookingOptionRequest#transportMovement"; + public final static IRI p_transportMovement_A_A = IRI.create(s_p_transportMovement_A_A); + /** + * Unit preferences of the request (e.g. kg or cm) + * + */ + public final static String s_p_unitsPreference = "https://onerecord.iata.org/BookingOptionRequest#unitsPreference"; + public final static IRI p_unitsPreference = IRI.create(s_p_unitsPreference); + /** + * The arrival location of the Booking Segment + * + */ + public final static String s_p_arrivalLocation = "https://onerecord.iata.org/BookingSegment#arrivalLocation"; + public final static IRI p_arrivalLocation = IRI.create(s_p_arrivalLocation); + /** + * The Booking Option linked to the Booking Segment + * + */ + public final static String s_p_bookingOptions = "https://onerecord.iata.org/BookingSegment#bookingOptions"; + public final static IRI p_bookingOptions = IRI.create(s_p_bookingOptions); + /** + * The departure location of the Booking Segment + * + */ + public final static String s_p_departureLocation = "https://onerecord.iata.org/BookingSegment#departureLocation"; + public final static IRI p_departureLocation = IRI.create(s_p_departureLocation); + /** + * The BookingOptionRequest linked to the Booking Segment + * + */ + public final static String s_p_requests = "https://onerecord.iata.org/BookingSegment#requests"; + public final static IRI p_requests = IRI.create(s_p_requests); + /** + * Reference to the BookingOption where the booking times are used + * + */ + public final static String s_p_bookingOption = "https://onerecord.iata.org/BookingTimes#bookingOption"; + public final static IRI p_bookingOption = IRI.create(s_p_bookingOption); + /** + * Reference to the BookingOptionRequest where the booking times are used + * + */ + public final static String s_p_bookingOptionRequest = "https://onerecord.iata.org/BookingTimes#bookingOptionRequest"; + public final static IRI p_bookingOptionRequest = IRI.create(s_p_bookingOptionRequest); + /** + * Refers to the mother company of the branch + * + */ + public final static String s_p_company = "https://onerecord.iata.org/Branch#company"; + public final static IRI p_company = IRI.create(s_p_company); + /** + * Contact person details + * + */ + public final static String s_p_contactPerson = "https://onerecord.iata.org/Branch#contactPerson"; + public final static IRI p_contactPerson = IRI.create(s_p_contactPerson); + /** + * Location and address details + * + */ + public final static String s_p_location = "https://onerecord.iata.org/Branch#location"; + public final static IRI p_location = IRI.create(s_p_location); + /** + * Other identifiers (e.g. LEI (Legal Entity Identifier), TIN (Trader Identification Number), PIMA address, Account number, VAT/Tax id, Legal Registration id, DUNS number, etc) + * + */ + public final static String s_p_otherIdentifier = "https://onerecord.iata.org/Branch#otherIdentifier"; + public final static IRI p_otherIdentifier = IRI.create(s_p_otherIdentifier); + /** + * CO2 emissions calculated + * + */ + public final static String s_p_calculatedEmissions = "https://onerecord.iata.org/CO2Emissions#calculatedEmissions"; + public final static IRI p_calculatedEmissions = IRI.create(s_p_calculatedEmissions); + /** + * Transport Movement linked to the CO2 Emissions object + * + */ + public final static String s_p_transportMovement_A_A_A = "https://onerecord.iata.org/CO2Emissions#transportMovement"; + public final static IRI p_transportMovement_A_A_A = IRI.create(s_p_transportMovement_A_A_A); + /** + * Reference to the BookingOption where the carrier product is used + * + */ + public final static String s_p_bookingOption_A = "https://onerecord.iata.org/CarrierProduct#bookingOption"; + public final static IRI p_bookingOption_A = IRI.create(s_p_bookingOption_A); + /** + * Reference to the product + * + */ + public final static String s_p_product = "https://onerecord.iata.org/Characteristics#product"; + public final static IRI p_product = IRI.create(s_p_product); + /** + * Company branches + * + */ + public final static String s_p_branch = "https://onerecord.iata.org/Company#branch"; + public final static IRI p_branch = IRI.create(s_p_branch); + /** + * Refers to the mother company of the branch + * + */ + public final static String s_p_company_A = "https://onerecord.iata.org/CompanyBranch#company"; + public final static IRI p_company_A = IRI.create(s_p_company_A); + /** + * Contact person details + * + */ + public final static String s_p_contactPersons = "https://onerecord.iata.org/CompanyBranch#contactPersons"; + public final static IRI p_contactPersons = IRI.create(s_p_contactPersons); + /** + * Location and address details + * + */ + public final static String s_p_location_A = "https://onerecord.iata.org/CompanyBranch#location"; + public final static IRI p_location_A = IRI.create(s_p_location_A); + /** + * Other identifiers (e.g. LEI (Legal Entity Identifier), TIN (Trader Identification Number), PIMA address, Account number, VAT/Tax id, Legal Registration id, DUNS number, etc) + * + */ + public final static String s_p_otherIdentifiers = "https://onerecord.iata.org/CompanyBranch#otherIdentifiers"; + public final static IRI p_otherIdentifiers = IRI.create(s_p_otherIdentifiers); + /** + * Other contact options e.g. Skype, Whatsapp, Viber, Fax etc + * + */ + public final static String s_p_other = "https://onerecord.iata.org/Contact#other"; + public final static IRI p_other = IRI.create(s_p_other); + /** + * Piece on which the Customs Info is applicable + * + */ + public final static String s_p_piece = "https://onerecord.iata.org/CustomsInfo#piece"; + public final static IRI p_piece = IRI.create(s_p_piece); + /** + * DgRadioactiveIsotope. + * + */ + public final static String s_p_isotopes = "https://onerecord.iata.org/DgProductRadioactive#isotopes"; + public final static IRI p_isotopes = IRI.create(s_p_isotopes); + /** + * Height + * + */ + public final static String s_p_height = "https://onerecord.iata.org/Dimensions#height"; + public final static IRI p_height = IRI.create(s_p_height); + /** + * Length + * + */ + public final static String s_p_length = "https://onerecord.iata.org/Dimensions#length"; + public final static IRI p_length = IRI.create(s_p_length); + /** + * Volume + * + */ + public final static String s_p_volume = "https://onerecord.iata.org/Dimensions#volume"; + public final static IRI p_volume = IRI.create(s_p_volume); + /** + * Width + * + */ + public final static String s_p_width = "https://onerecord.iata.org/Dimensions#width"; + public final static IRI p_width = IRI.create(s_p_width); + /** + * Reference to te pieces (Live Animals) of the permit + * + */ + public final static String s_p_consignmentItems = "https://onerecord.iata.org/EpermitConsignment#consignmentItems"; + public final static IRI p_consignmentItems = IRI.create(s_p_consignmentItems); + /** + * Quatity measured by the examining authority (box 14) + * + */ + public final static String s_p_examiningQuantity = "https://onerecord.iata.org/EpermitConsignment#examiningQuantity"; + public final static IRI p_examiningQuantity = IRI.create(s_p_examiningQuantity); + /** + * Signatory company name + * + */ + public final static String s_p_signatoryCompany = "https://onerecord.iata.org/EpermitSignature#signatoryCompany"; + public final static IRI p_signatoryCompany = IRI.create(s_p_signatoryCompany); + /** + * Refers to the URI of the linked object(s) + * + */ + public final static String s_p_linkedObject = "https://onerecord.iata.org/Event#linkedObject"; + public final static IRI p_linkedObject = IRI.create(s_p_linkedObject); + /** + * Location of event + * + */ + public final static String s_p_location_A_A = "https://onerecord.iata.org/Event#location"; + public final static IRI p_location_A_A = IRI.create(s_p_location_A_A); + /** + * Party performing the event + * + */ + public final static String s_p_performedBy = "https://onerecord.iata.org/Event#performedBy"; + public final static IRI p_performedBy = IRI.create(s_p_performedBy); + public final static String s_p_performedByPerson = "https://onerecord.iata.org/Event#performedByPerson"; + public final static IRI p_performedByPerson = IRI.create(s_p_performedByPerson); + /** + * Document originator details and contacts + * + */ + public final static String s_p_documentOriginator = "https://onerecord.iata.org/ExternalReference#documentOriginator"; + public final static IRI p_documentOriginator = IRI.create(s_p_documentOriginator); + /** + * Location of the document, e.g. location where the document was emitted + * + */ + public final static String s_p_location_A_A_A = "https://onerecord.iata.org/ExternalReference#location"; + public final static IRI p_location_A_A_A = IRI.create(s_p_location_A_A_A); + /** + * Elevation from sea level - Change of data type to Value as of ontology v1.1 + * + */ + public final static String s_p_elevation = "https://onerecord.iata.org/Geolocation#elevation"; + public final static IRI p_elevation = IRI.create(s_p_elevation); + /** + * Party covering the insurance + * + */ + public final static String s_p_coveringParty = "https://onerecord.iata.org/Insurance#coveringParty"; + public final static IRI p_coveringParty = IRI.create(s_p_coveringParty); + /** + * Insured amount - amount covered by the insurance policy + * + */ + public final static String s_p_insuranceAmount = "https://onerecord.iata.org/Insurance#insuranceAmount"; + public final static IRI p_insuranceAmount = IRI.create(s_p_insuranceAmount); + /** + * Reference to the shipment insured + * + */ + public final static String s_p_insuranceShipment = "https://onerecord.iata.org/Insurance#insuranceShipment"; + public final static IRI p_insuranceShipment = IRI.create(s_p_insuranceShipment); + /** + * Manufacturer of the device + * + */ + public final static String s_p_deviceManufacturer = "https://onerecord.iata.org/IotDevice#deviceManufacturer"; + public final static IRI p_deviceManufacturer = IRI.create(s_p_deviceManufacturer); + /** + * Reference to the sensors linked to the device + * + */ + public final static String s_p_sensors = "https://onerecord.iata.org/IotDevice#sensors"; + public final static IRI p_sensors = IRI.create(s_p_sensors); + /** + * Dimensions of the item + * + */ + public final static String s_p_dimensions = "https://onerecord.iata.org/Item#dimensions"; + public final static IRI p_dimensions = IRI.create(s_p_dimensions); + /** + * URI of the PIECE that contains the Item + * + */ + public final static String s_p_isInPiece = "https://onerecord.iata.org/Item#isInPiece"; + public final static IRI p_isInPiece = IRI.create(s_p_isInPiece); + /** + * Other identifier details + * + */ + public final static String s_p_otherIdentifiers_A = "https://onerecord.iata.org/Item#otherIdentifiers"; + public final static IRI p_otherIdentifiers_A = IRI.create(s_p_otherIdentifiers_A); + /** + * URI of the product + * + */ + public final static String s_p_product_A = "https://onerecord.iata.org/Item#product"; + public final static IRI p_product_A = IRI.create(s_p_product_A); + /** + * Production country details + * + */ + public final static String s_p_productionCountry = "https://onerecord.iata.org/Item#productionCountry"; + public final static IRI p_productionCountry = IRI.create(s_p_productionCountry); + /** + * Quantity of the item when applicable, witth associated units of measure + * + */ + public final static String s_p_quantity = "https://onerecord.iata.org/Item#quantity"; + public final static IRI p_quantity = IRI.create(s_p_quantity); + /** + * Item target country + * + */ + public final static String s_p_targetCountry = "https://onerecord.iata.org/Item#targetCountry"; + public final static IRI p_targetCountry = IRI.create(s_p_targetCountry); + /** + * Product price per unit in the base + * + */ + public final static String s_p_unitPrice = "https://onerecord.iata.org/Item#unitPrice"; + public final static IRI p_unitPrice = IRI.create(s_p_unitPrice); + /** + * Weight of the item + * + */ + public final static String s_p_weight = "https://onerecord.iata.org/Item#weight"; + public final static IRI p_weight = IRI.create(s_p_weight); + /** + * Contains the Emergency contact name (e.g. the name of the agency) and phone number (min required) + * + */ + public final static String s_p_emergencyContact = "https://onerecord.iata.org/ItemDg#emergencyContact"; + public final static IRI p_emergencyContact = IRI.create(s_p_emergencyContact); + /** + * The total net weight of dangerous goods transported of this line item. For air transport the value must be the volume or mass in each package. + * + */ + public final static String s_p_netWeightMeasure = "https://onerecord.iata.org/ItemDg#netWeightMeasure"; + public final static IRI p_netWeightMeasure = IRI.create(s_p_netWeightMeasure); + /** + * Consignee company details, including complete name and address (box 3) + * + */ + public final static String s_p_consignee_A_A = "https://onerecord.iata.org/LiveAnimalsEpermit#consignee"; + public final static IRI p_consignee_A_A = IRI.create(s_p_consignee_A_A); + /** + * Reference to the pieces and properties linked to the Permit (box 7 to 12) + * + */ + public final static String s_p_consignments = "https://onerecord.iata.org/LiveAnimalsEpermit#consignments"; + public final static IRI p_consignments = IRI.create(s_p_consignments); + /** + * List of all the signatures of the Epermit (applicant box 4, issuing authority box 6, issuer box 13 and examining authority box 14) + * + */ + public final static String s_p_signatures = "https://onerecord.iata.org/LiveAnimalsEpermit#signatures"; + public final static IRI p_signatures = IRI.create(s_p_signatures); + /** + * Address details + * + */ + public final static String s_p_address = "https://onerecord.iata.org/Location#address"; + public final static IRI p_address = IRI.create(s_p_address); + /** + * Geolocation details + * + */ + public final static String s_p_geolocation = "https://onerecord.iata.org/Location#geolocation"; + public final static IRI p_geolocation = IRI.create(s_p_geolocation); + /** + * Events object + * + */ + public final static String s_p_events = "https://onerecord.iata.org/LogisticsObject#events"; + public final static IRI p_events = IRI.create(s_p_events); + /** + * Allows to link Logistic Objects with IoT Devices + * + */ + public final static String s_p_iotDevices = "https://onerecord.iata.org/LogisticsObject#iotDevices"; + public final static IRI p_iotDevices = IRI.create(s_p_iotDevices); + /** + * Geolocation measurements details + * + */ + public final static String s_p_geolocationMeasurement = "https://onerecord.iata.org/MeasurementsGeoloc#geolocationMeasurement"; + public final static IRI p_geolocationMeasurement = IRI.create(s_p_geolocationMeasurement); + /** + * Value for measurements other than Geolocation, includes value and unit of measure as described in the Interactive Cargo RP + * + */ + public final static String s_p_genericMeasurement = "https://onerecord.iata.org/MeasurementsOther#genericMeasurement"; + public final static IRI p_genericMeasurement = IRI.create(s_p_genericMeasurement); + /** + * Company details + * + */ + public final static String s_p_companyDetails = "https://onerecord.iata.org/OtherParty#companyDetails"; + public final static IRI p_companyDetails = IRI.create(s_p_companyDetails); + /** + * Piece on which the Packaging type is applicable + * + */ + public final static String s_p_piece_A = "https://onerecord.iata.org/PackagingType#piece"; + public final static IRI p_piece_A = IRI.create(s_p_piece_A); + /** + * Reference to the Company + * + */ + public final static String s_p_partyDetails = "https://onerecord.iata.org/Party#partyDetails"; + public final static IRI p_partyDetails = IRI.create(s_p_partyDetails); + /** + * Refers to the Branch the person is associated with + * + */ + public final static String s_p_associatedBranch = "https://onerecord.iata.org/Person#associatedBranch"; + public final static IRI p_associatedBranch = IRI.create(s_p_associatedBranch); + /** + * Contact details + * + */ + public final static String s_p_contact = "https://onerecord.iata.org/Person#contact"; + public final static IRI p_contact = IRI.create(s_p_contact); + /** + * Linked documents to the person, e.g. driver's license, ID, etc. + * + */ + public final static String s_p_documents = "https://onerecord.iata.org/Person#documents"; + public final static IRI p_documents = IRI.create(s_p_documents); + /** + * Reference to the item(s) contained in the piece + * + */ + public final static String s_p_containedItems = "https://onerecord.iata.org/Piece#containedItems"; + public final static IRI p_containedItems = IRI.create(s_p_containedItems); + /** + * Details of contained piece(s) + * + */ + public final static String s_p_containedPieces = "https://onerecord.iata.org/Piece#containedPieces"; + public final static IRI p_containedPieces = IRI.create(s_p_containedPieces); + /** + * Customs details + * + */ + public final static String s_p_customsInfo = "https://onerecord.iata.org/Piece#customsInfo"; + public final static IRI p_customsInfo = IRI.create(s_p_customsInfo); + /** + * Dimensions details + * + */ + public final static String s_p_dimensions_A = "https://onerecord.iata.org/Piece#dimensions"; + public final static IRI p_dimensions_A = IRI.create(s_p_dimensions_A); + /** + * Reference documents details + * + */ + public final static String s_p_externalReferences = "https://onerecord.iata.org/Piece#externalReferences"; + public final static IRI p_externalReferences = IRI.create(s_p_externalReferences); + /** + * Weight details + * + */ + public final static String s_p_grossWeight = "https://onerecord.iata.org/Piece#grossWeight"; + public final static IRI p_grossWeight = IRI.create(s_p_grossWeight); + /** + * Other piece identification ( e.g. Shipping Marks, Seal) + * + */ + public final static String s_p_otherIdentifiers_A_A = "https://onerecord.iata.org/Piece#otherIdentifiers"; + public final static IRI p_otherIdentifiers_A_A = IRI.create(s_p_otherIdentifiers_A_A); + /** + * Other party company details - e.g. the party to be notified + * + */ + public final static String s_p_otherParty = "https://onerecord.iata.org/Piece#otherParty"; + public final static IRI p_otherParty = IRI.create(s_p_otherParty); + /** + * Packaging details + * + */ + public final static String s_p_packagingType = "https://onerecord.iata.org/Piece#packagingType"; + public final static IRI p_packagingType = IRI.create(s_p_packagingType); + /** + * Other party company details - e.g. the party to be notified + * + */ + public final static String s_p_parties_A_A = "https://onerecord.iata.org/Piece#parties"; + public final static IRI p_parties_A_A = IRI.create(s_p_parties_A_A); + /** + * Product of the piece, mandatory when there are no items + * + */ + public final static String s_p_product_A_A = "https://onerecord.iata.org/Piece#product"; + public final static IRI p_product_A_A = IRI.create(s_p_product_A_A); + /** + * Goods production country, mandatory when there are no Items + * + */ + public final static String s_p_productionCountry_A = "https://onerecord.iata.org/Piece#productionCountry"; + public final static IRI p_productionCountry_A = IRI.create(s_p_productionCountry_A); + /** + * Security details of the piece + * + */ + public final static String s_p_securityDeclaration = "https://onerecord.iata.org/Piece#securityDeclaration"; + public final static IRI p_securityDeclaration = IRI.create(s_p_securityDeclaration); + /** + * Security details + * + */ + public final static String s_p_securityStatus = "https://onerecord.iata.org/Piece#securityStatus"; + public final static IRI p_securityStatus = IRI.create(s_p_securityStatus); + /** + * Security requests + * + */ + public final static String s_p_serviceRequest = "https://onerecord.iata.org/Piece#serviceRequest"; + public final static IRI p_serviceRequest = IRI.create(s_p_serviceRequest); + /** + * Shipment on which the piece is assigned to + * + */ + public final static String s_p_shipment = "https://onerecord.iata.org/Piece#shipment"; + public final static IRI p_shipment = IRI.create(s_p_shipment); + /** + * Shipper company details - e.g. the party shipping the piece + * + */ + public final static String s_p_shipper_A_A = "https://onerecord.iata.org/Piece#shipper"; + public final static IRI p_shipper_A_A = IRI.create(s_p_shipper_A_A); + /** + * Special Handling details + * + */ + public final static String s_p_specialHandling = "https://onerecord.iata.org/Piece#specialHandling"; + public final static IRI p_specialHandling = IRI.create(s_p_specialHandling); + /** + * Transport Movements on which the piece is transported + * + */ + public final static String s_p_transportMovements = "https://onerecord.iata.org/Piece#transportMovements"; + public final static IRI p_transportMovements = IRI.create(s_p_transportMovements); + /** + * Segment related to the transport status + * + */ + public final static String s_p_transportSegments = "https://onerecord.iata.org/Piece#transportSegments"; + public final static IRI p_transportSegments = IRI.create(s_p_transportSegments); + /** + * ULD on which the (virtual) piece has been loaded into - URIs of the ULD + * + */ + public final static String s_p_uldReference = "https://onerecord.iata.org/Piece#uldReference"; + public final static IRI p_uldReference = IRI.create(s_p_uldReference); + /** + * Volumetric weight details + * + */ + public final static String s_p_volumetricWeight = "https://onerecord.iata.org/Piece#volumetricWeight"; + public final static IRI p_volumetricWeight = IRI.create(s_p_volumetricWeight); + /** + * Reference to the Dangerous Goods declaration + * + */ + public final static String s_p_dgDeclaration = "https://onerecord.iata.org/PieceDg#dgDeclaration"; + public final static IRI p_dgDeclaration = IRI.create(s_p_dgDeclaration); + /** + * Reference to the permits associated with the Live Animals + * + */ + public final static String s_p_associatedEpermit = "https://onerecord.iata.org/PieceLiveAnimals#associatedEpermit"; + public final static IRI p_associatedEpermit = IRI.create(s_p_associatedEpermit); + /** + * Country of last re-export (box 12a) + * + */ + public final static String s_p_exportTradeCountry = "https://onerecord.iata.org/PieceLiveAnimals#exportTradeCountry"; + public final static IRI p_exportTradeCountry = IRI.create(s_p_exportTradeCountry); + /** + * country of origin (box 12) + * + */ + public final static String s_p_originTradeCountry = "https://onerecord.iata.org/PieceLiveAnimals#originTradeCountry"; + public final static IRI p_originTradeCountry = IRI.create(s_p_originTradeCountry); + /** + * Reference to the Booking or Offer + * + */ + public final static String s_p_bookingOption_A_A = "https://onerecord.iata.org/Price#bookingOption"; + public final static IRI p_bookingOption_A_A = IRI.create(s_p_bookingOption_A_A); + /** + * Reference to the Booking or Offer + * + */ + public final static String s_p_bookingRef = "https://onerecord.iata.org/Price#bookingRef"; + public final static IRI p_bookingRef = IRI.create(s_p_bookingRef); + /** + * Rating used for pricing + * + */ + public final static String s_p_ratings = "https://onerecord.iata.org/Price#ratings"; + public final static IRI p_ratings = IRI.create(s_p_ratings); + /** + * Charateristics of the product + * + */ + public final static String s_p_characteristics = "https://onerecord.iata.org/Product#characteristics"; + public final static IRI p_characteristics = IRI.create(s_p_characteristics); + /** + * Reference to the Items in which the product can be found. + * + */ + public final static String s_p_isInItems = "https://onerecord.iata.org/Product#isInItems"; + public final static IRI p_isInItems = IRI.create(s_p_isInItems); + /** + * Reference to the pieces where the product can be found. This needs to be filled in case there is no Item + * + */ + public final static String s_p_isInPieces = "https://onerecord.iata.org/Product#isInPieces"; + public final static IRI p_isInPieces = IRI.create(s_p_isInPieces); + /** + * Manufacturing company details and contacts + * + */ + public final static String s_p_manufacturer = "https://onerecord.iata.org/Product#manufacturer"; + public final static IRI p_manufacturer = IRI.create(s_p_manufacturer); + /** + * Other product identifier (e.g. Bar code, UPC, EAN, Amazon) + * + */ + public final static String s_p_otherIdentifier_A = "https://onerecord.iata.org/Product#otherIdentifier"; + public final static IRI p_otherIdentifier_A = IRI.create(s_p_otherIdentifier_A); + /** + * Dg Radioactive Material + * + */ + public final static String s_p_dgRadioactiveMaterial = "https://onerecord.iata.org/ProductDg#dgRadioactiveMaterial"; + public final static IRI p_dgRadioactiveMaterial = IRI.create(s_p_dgRadioactiveMaterial); + /** + * Reference to the ranges + * + */ + public final static String s_p_ranges = "https://onerecord.iata.org/Ratings#ranges"; + public final static IRI p_ranges = IRI.create(s_p_ranges); + /** + * Branch/Company + * + */ + public final static String s_p_entity = "https://onerecord.iata.org/RegulatedEntity#entity"; + public final static IRI p_entity = IRI.create(s_p_entity); + /** + * Regulated entity identifier (e.g. Regulated Agent Identifier) is mandatory + * + */ + public final static String s_p_regulatedEntityIdentifier = "https://onerecord.iata.org/RegulatedEntity#regulatedEntityIdentifier"; + public final static IRI p_regulatedEntityIdentifier = IRI.create(s_p_regulatedEntityIdentifier); + /** + * Parties involved if known + * + */ + public final static String s_p_parties_A_A_A = "https://onerecord.iata.org/Request#parties"; + public final static IRI p_parties_A_A_A = IRI.create(s_p_parties_A_A_A); + /** + * Ratings preferences of the request + * + */ + public final static String s_p_ratingsPreference_A = "https://onerecord.iata.org/Request#ratingsPreference"; + public final static IRI p_ratingsPreference_A = IRI.create(s_p_ratingsPreference_A); + /** + * Details of the shipement that is to be shipped + * + */ + public final static String s_p_shipmentDetails_A_A_A = "https://onerecord.iata.org/Request#shipmentDetails"; + public final static IRI p_shipmentDetails_A_A_A = IRI.create(s_p_shipmentDetails_A_A_A); + /** + * Transport segment linked to the request, including the Departure and Arrival locations requested + * + */ + public final static String s_p_transportMovement_A_A_A_A = "https://onerecord.iata.org/Request#transportMovement"; + public final static IRI p_transportMovement_A_A_A_A = IRI.create(s_p_transportMovement_A_A_A_A); + /** + * Unit preferences of the request (e.g. kg or cm) + * + */ + public final static String s_p_unitsPreference_A = "https://onerecord.iata.org/Request#unitsPreference"; + public final static IRI p_unitsPreference_A = IRI.create(s_p_unitsPreference_A); + /** + * Reference to the BookingOption where the Routing is used + * + */ + public final static String s_p_bookingOption_A_A_A = "https://onerecord.iata.org/Routing#bookingOption"; + public final static IRI p_bookingOption_A_A_A = IRI.create(s_p_bookingOption_A_A_A); + /** + * Name of person (or employee ID) who issued the security status + * + */ + public final static String s_p_issuedBy = "https://onerecord.iata.org/SecurityDeclaration#issuedBy"; + public final static IRI p_issuedBy = IRI.create(s_p_issuedBy); + /** + * Any other regulated entity that accepts custody of the cargo and accepts the security status originally issued + * + */ + public final static String s_p_otherRegulatedEntity = "https://onerecord.iata.org/SecurityDeclaration#otherRegulatedEntity"; + public final static IRI p_otherRegulatedEntity = IRI.create(s_p_otherRegulatedEntity); + /** + * Piece linked to the Security Declaration + * + */ + public final static String s_p_piece_A_A = "https://onerecord.iata.org/SecurityDeclaration#piece"; + public final static IRI p_piece_A_A = IRI.create(s_p_piece_A_A); + /** + * Regulated entity that tendered the consignment + * + */ + public final static String s_p_receivedFrom = "https://onerecord.iata.org/SecurityDeclaration#receivedFrom"; + public final static IRI p_receivedFrom = IRI.create(s_p_receivedFrom); + /** + * Regulated entity issuing the Security Declaration + * + */ + public final static String s_p_regulatedEntityIssuer = "https://onerecord.iata.org/SecurityDeclaration#regulatedEntityIssuer"; + public final static IRI p_regulatedEntityIssuer = IRI.create(s_p_regulatedEntityIssuer); + /** + * Reference to the IoT Device to which the sensor is linked + * + */ + public final static String s_p_iotDevice = "https://onerecord.iata.org/Sensor#iotDevice"; + public final static IRI p_iotDevice = IRI.create(s_p_iotDevice); + /** + * Reference to the measurements recorded by the geolocation sensor + * + */ + public final static String s_p_val = "https://onerecord.iata.org/SensorGeoloc#val"; + public final static IRI p_val = IRI.create(s_p_val); + /** + * Reference to the measurements recorded by the sensor + * + */ + public final static String s_p_val_A = "https://onerecord.iata.org/SensorOther#val"; + public final static IRI p_val_A = IRI.create(s_p_val_A); + /** + * Details of contained piece(s) + * + */ + public final static String s_p_containedPiece = "https://onerecord.iata.org/Shipment#containedPiece"; + public final static IRI p_containedPiece = IRI.create(s_p_containedPiece); + /** + * Name and UN/LOCODE code of the point or port of departure, shipment or destination, as required under the applicable delivery term + * + */ + public final static String s_p_deliveryLocation = "https://onerecord.iata.org/Shipment#deliveryLocation"; + public final static IRI p_deliveryLocation = IRI.create(s_p_deliveryLocation); + /** + * Dimensions details + * + */ + public final static String s_p_dimensions_A_A = "https://onerecord.iata.org/Shipment#dimensions"; + public final static IRI p_dimensions_A_A = IRI.create(s_p_dimensions_A_A); + /** + * Reference document details + * + */ + public final static String s_p_externalReferences_A = "https://onerecord.iata.org/Shipment#externalReferences"; + public final static IRI p_externalReferences_A = IRI.create(s_p_externalReferences_A); + /** + * Reference to the freight forwarder + * + */ + public final static String s_p_freightForwarder_A_A = "https://onerecord.iata.org/Shipment#freightForwarder"; + public final static IRI p_freightForwarder_A_A = IRI.create(s_p_freightForwarder_A_A); + /** + * Insurance details + * + */ + public final static String s_p_insurance = "https://onerecord.iata.org/Shipment#insurance"; + public final static IRI p_insurance = IRI.create(s_p_insurance); + /** + * Parties details + * + */ + public final static String s_p_parties_A_A_A_A = "https://onerecord.iata.org/Shipment#parties"; + public final static IRI p_parties_A_A_A_A = IRI.create(s_p_parties_A_A_A_A); + /** + * Reference to the shipper + * + */ + public final static String s_p_shipper_A_A_A = "https://onerecord.iata.org/Shipment#shipper"; + public final static IRI p_shipper_A_A_A = IRI.create(s_p_shipper_A_A_A); + /** + * Weight details + * + */ + public final static String s_p_totalGrossWeight = "https://onerecord.iata.org/Shipment#totalGrossWeight"; + public final static IRI p_totalGrossWeight = IRI.create(s_p_totalGrossWeight); + /** + * Volumetric weight details + * + */ + public final static String s_p_volumetricWeight_A = "https://onerecord.iata.org/Shipment#volumetricWeight"; + public final static IRI p_volumetricWeight_A = IRI.create(s_p_volumetricWeight_A); + /** + * Waybill unique identifier (AWB or HWB) + * + */ + public final static String s_p_waybillNumber_A_A = "https://onerecord.iata.org/Shipment#waybillNumber"; + public final static IRI p_waybillNumber_A_A = IRI.create(s_p_waybillNumber_A_A); + /** + * Company operating the transport means + * + */ + public final static String s_p_transportCompany = "https://onerecord.iata.org/TransportMeans#transportCompany"; + public final static IRI p_transportCompany = IRI.create(s_p_transportCompany); + /** + * Transport Movement on which the Transport Means is used + * + */ + public final static String s_p_transportMovement_A_A_A_A_A = "https://onerecord.iata.org/TransportMeans#transportMovement"; + public final static IRI p_transportMovement_A_A_A_A_A = IRI.create(s_p_transportMovement_A_A_A_A_A); + /** + * Associated transport segment + * + */ + public final static String s_p_transportSegment = "https://onerecord.iata.org/TransportMeans#transportSegment"; + public final static IRI p_transportSegment = IRI.create(s_p_transportSegment); + /** + * Required for some CO2 calculations + * + */ + public final static String s_p_typicalCO2Coefficient = "https://onerecord.iata.org/TransportMeans#typicalCO2Coefficient"; + public final static IRI p_typicalCO2Coefficient = IRI.create(s_p_typicalCO2Coefficient); + /** + * Typical fuel comsumption (e.g. 20 000L / 1 000nm) + * + */ + public final static String s_p_typicalFuelConsumption = "https://onerecord.iata.org/TransportMeans#typicalFuelConsumption"; + public final static IRI p_typicalFuelConsumption = IRI.create(s_p_typicalFuelConsumption); + /** + * Arrival location details + * + */ + public final static String s_p_arrivalLocation_A = "https://onerecord.iata.org/TransportMovement#arrivalLocation"; + public final static IRI p_arrivalLocation_A = IRI.create(s_p_arrivalLocation_A); + /** + * Method of calculation of the CO2 emissions + * + */ + public final static String s_p_co2CalculationMethod = "https://onerecord.iata.org/TransportMovement#co2CalculationMethod"; + public final static IRI p_co2CalculationMethod = IRI.create(s_p_co2CalculationMethod); + /** + * Amount of CO2 emitted (e.g. 34 kg/km) + * + */ + public final static String s_p_co2Emissions = "https://onerecord.iata.org/TransportMovement#co2Emissions"; + public final static IRI p_co2Emissions = IRI.create(s_p_co2Emissions); + /** + * Departure location details + * + */ + public final static String s_p_departureLocation_A = "https://onerecord.iata.org/TransportMovement#departureLocation"; + public final static IRI p_departureLocation_A = IRI.create(s_p_departureLocation_A); + /** + * Distance calculated if distance measured is not available + * + */ + public final static String s_p_distanceCalculated = "https://onerecord.iata.org/TransportMovement#distanceCalculated"; + public final static IRI p_distanceCalculated = IRI.create(s_p_distanceCalculated); + /** + * Distance measured + * + */ + public final static String s_p_distanceMeasured = "https://onerecord.iata.org/TransportMovement#distanceMeasured"; + public final static IRI p_distanceMeasured = IRI.create(s_p_distanceMeasured); + /** + * Reference to document or logistics object (URI) + * + */ + public final static String s_p_externalReferences_A_A = "https://onerecord.iata.org/TransportMovement#externalReferences"; + public final static IRI p_externalReferences_A_A = IRI.create(s_p_externalReferences_A_A); + /** + * calculated fuel consumption, if measured not available + * + */ + public final static String s_p_fuelAmountCalculated = "https://onerecord.iata.org/TransportMovement#fuelAmountCalculated"; + public final static IRI p_fuelAmountCalculated = IRI.create(s_p_fuelAmountCalculated); + /** + * actual measured fuel consumption + * + */ + public final static String s_p_fuelAmountMeasured = "https://onerecord.iata.org/TransportMovement#fuelAmountMeasured"; + public final static IRI p_fuelAmountMeasured = IRI.create(s_p_fuelAmountMeasured); + /** + * Actual payload for the transport + * + */ + public final static String s_p_payload = "https://onerecord.iata.org/TransportMovement#payload"; + public final static IRI p_payload = IRI.create(s_p_payload); + /** + * Transport means details + * + */ + public final static String s_p_transportMeans = "https://onerecord.iata.org/TransportMovement#transportMeans"; + public final static IRI p_transportMeans = IRI.create(s_p_transportMeans); + /** + * Name of the person operating the transport means (e.g. aircraft captain, truck driver) + * + */ + public final static String s_p_transportMeansOperators = "https://onerecord.iata.org/TransportMovement#transportMeansOperators"; + public final static IRI p_transportMeansOperators = IRI.create(s_p_transportMeansOperators); + /** + * Pieces assigned to the transport segment + * + */ + public final static String s_p_transportedPieces = "https://onerecord.iata.org/TransportMovement#transportedPieces"; + public final static IRI p_transportedPieces = IRI.create(s_p_transportedPieces); + /** + * ULDs assigned to the transport segment + * + */ + public final static String s_p_transportedUlds = "https://onerecord.iata.org/TransportMovement#transportedUlds"; + public final static IRI p_transportedUlds = IRI.create(s_p_transportedUlds); + /** + * Reference documents details + * + */ + public final static String s_p_externalReference = "https://onerecord.iata.org/ULD#externalReference"; + public final static IRI p_externalReference = IRI.create(s_p_externalReference); + /** + * Tare weight of the empty ULD + * + */ + public final static String s_p_tareWeight = "https://onerecord.iata.org/ULD#tareWeight"; + public final static IRI p_tareWeight = IRI.create(s_p_tareWeight); + /** + * Transport Movements on which the ULD are transported + * + */ + public final static String s_p_transportMovements_A = "https://onerecord.iata.org/ULD#transportMovements"; + public final static IRI p_transportMovements_A = IRI.create(s_p_transportMovements_A); + /** + * Segment related to the ULD movement + * + */ + public final static String s_p_transportSegments_A = "https://onerecord.iata.org/ULD#transportSegments"; + public final static IRI p_transportSegments_A = IRI.create(s_p_transportSegments_A); + /** + * Details of contained (virtual) piece(s) + * + */ + public final static String s_p_upid = "https://onerecord.iata.org/ULD#upid"; + public final static IRI p_upid = IRI.create(s_p_upid); + /** + * Chargeable weight + * + */ + public final static String s_p_chargeableWeight = "https://onerecord.iata.org/VolumetricWeight#chargeableWeight"; + public final static IRI p_chargeableWeight = IRI.create(s_p_chargeableWeight); + /** + * Volume to weight conversion factor + * + */ + public final static String s_p_conversionFactor = "https://onerecord.iata.org/VolumetricWeight#conversionFactor"; + public final static IRI p_conversionFactor = IRI.create(s_p_conversionFactor); + /** + * Refers to the Booking option + * + */ + public final static String s_p_booking = "https://onerecord.iata.org/Waybill#booking"; + public final static IRI p_booking = IRI.create(s_p_booking); + /** + * Refers to the Booking + * + */ + public final static String s_p_bookingRef_A = "https://onerecord.iata.org/Waybill#bookingRef"; + public final static IRI p_bookingRef_A = IRI.create(s_p_bookingRef_A); + /** + * Refers to the Waybill(s) contained + * + */ + public final static String s_p_containedWaybills = "https://onerecord.iata.org/Waybill#containedWaybills"; + public final static IRI p_containedWaybills = IRI.create(s_p_containedWaybills); + public final static String s_p_topDataProperty = "http://www.w3.org/2002/07/owl#topDataProperty"; + public final static IRI p_topDataProperty = IRI.create(s_p_topDataProperty); + /** + * Address identifier using special coding systems e.g. US CBP FIRMS code + * + */ + public final static String s_p_addressCode = "https://onerecord.iata.org/Address#addressCode"; + public final static IRI p_addressCode = IRI.create(s_p_addressCode); + /** + * Type of address code e.g. US CBP FIRMS + * + */ + public final static String s_p_addressCodeType = "https://onerecord.iata.org/Address#addressCodeType"; + public final static IRI p_addressCodeType = IRI.create(s_p_addressCodeType); + /** + * UN/LOCODE city code (5 letter) or IATA city code (3 letter) + * + */ + public final static String s_p_cityCode = "https://onerecord.iata.org/Address#cityCode"; + public final static IRI p_cityCode = IRI.create(s_p_cityCode); + /** + * If no CityCode provided, full name of the city + * + */ + public final static String s_p_cityName = "https://onerecord.iata.org/Address#cityName"; + public final static IRI p_cityName = IRI.create(s_p_cityName); + /** + * Post Office box number / code + * + */ + public final static String s_p_poBox = "https://onerecord.iata.org/Address#poBox"; + public final static IRI p_poBox = IRI.create(s_p_poBox); + /** + * Postal / ZIP code + * + */ + public final static String s_p_postalCode = "https://onerecord.iata.org/Address#postalCode"; + public final static IRI p_postalCode = IRI.create(s_p_postalCode); + /** + * Region/ State / Department. Refer ISO 3166-2 + * + */ + public final static String s_p_regionCode = "https://onerecord.iata.org/Address#regionCode"; + public final static IRI p_regionCode = IRI.create(s_p_regionCode); + /** + * If no StateCode provided, full name of the region / state / province / canton + * + */ + public final static String s_p_regionName = "https://onerecord.iata.org/Address#regionName"; + public final static IRI p_regionName = IRI.create(s_p_regionName); + /** + * Street address including street name, street number, building number, apartment etc + * + */ + public final static String s_p_street = "https://onerecord.iata.org/Address#street"; + public final static IRI p_street = IRI.create(s_p_street); + /** + * Status of the Booking with regards to the step in the Quote and Book process: Quoted, Booked + * + */ + public final static String s_p_bookingStatus = "https://onerecord.iata.org/Booking#bookingStatus"; + public final static IRI p_bookingStatus = IRI.create(s_p_bookingStatus); + /** + * Latest Acceptance time as per CargoIQ definition + * + */ + public final static String s_p_latestAcceptanceTime = "https://onerecord.iata.org/Booking#latestAcceptanceTime"; + public final static IRI p_latestAcceptanceTime = IRI.create(s_p_latestAcceptanceTime); + /** + * Indicates if the offer is a perfect match to the quote request (boolean) + * + */ + public final static String s_p_requestMatchInd = "https://onerecord.iata.org/Booking#requestMatchInd"; + public final static IRI p_requestMatchInd = IRI.create(s_p_requestMatchInd); + /** + * Indicate the secruty state of the shipment, screened or not + * + */ + public final static String s_p_shipmentSecurityStatus = "https://onerecord.iata.org/Booking#shipmentSecurityStatus"; + public final static IRI p_shipmentSecurityStatus = IRI.create(s_p_shipmentSecurityStatus); + /** + * Time of availability of the shipment as per CargoIQ definition + * + */ + public final static String s_p_timeOfAvailability = "https://onerecord.iata.org/Booking#timeOfAvailability"; + public final static IRI p_timeOfAvailability = IRI.create(s_p_timeOfAvailability); + /** + * Total transit time as per CargoIQ definition + * + */ + public final static String s_p_totalTransitTime = "https://onerecord.iata.org/Booking#totalTransitTime"; + public final static IRI p_totalTransitTime = IRI.create(s_p_totalTransitTime); + /** + * Status of the Booking with regards to the step in the Quote and Book process: Quoted, Booked + * + */ + public final static String s_p_bookingStatus_A = "https://onerecord.iata.org/BookingOption#bookingStatus"; + public final static IRI p_bookingStatus_A = IRI.create(s_p_bookingStatus_A); + /** + * Starting datetime of availability of the booking option + * + */ + public final static String s_p_offerValidFrom = "https://onerecord.iata.org/BookingOption#offerValidFrom"; + public final static IRI p_offerValidFrom = IRI.create(s_p_offerValidFrom); + /** + * Ending datetime of availability of the booking option + * + */ + public final static String s_p_offerValidTo = "https://onerecord.iata.org/BookingOption#offerValidTo"; + public final static IRI p_offerValidTo = IRI.create(s_p_offerValidTo); + /** + * Indicates if the offer is a perfect match to the quote request (boolean) + * + */ + public final static String s_p_requestMatchInd_A = "https://onerecord.iata.org/BookingOption#requestMatchInd"; + public final static IRI p_requestMatchInd_A = IRI.create(s_p_requestMatchInd_A); + /** + * Indicate the secruty state of the shipment, screened or not + * + */ + public final static String s_p_shipmentSecurityStatus_A = "https://onerecord.iata.org/BookingOption#shipmentSecurityStatus"; + public final static IRI p_shipmentSecurityStatus_A = IRI.create(s_p_shipmentSecurityStatus_A); + /** + * Reference to the Allotment as per the contracts between forwarders and carriers + * + */ + public final static String s_p_allotment = "https://onerecord.iata.org/BookingOptionRequest#allotment"; + public final static IRI p_allotment = IRI.create(s_p_allotment); + /** + * Expected commodity for quote request purposes only. To be defined by MCD + * + */ + public final static String s_p_expectedCommodities = "https://onerecord.iata.org/BookingOptionRequest#expectedCommodities"; + public final static IRI p_expectedCommodities = IRI.create(s_p_expectedCommodities); + /** + * Identification of the request type: Quote or Booking + * + */ + public final static String s_p_requestType = "https://onerecord.iata.org/BookingOptionRequest#requestType"; + public final static IRI p_requestType = IRI.create(s_p_requestType); + /** + * Requested handling information for quote request purposes only + * + */ + public final static String s_p_requestedHandling = "https://onerecord.iata.org/BookingOptionRequest#requestedHandling"; + public final static IRI p_requestedHandling = IRI.create(s_p_requestedHandling); + /** + * Indicate the security state of the shipment, screened or not + * + */ + public final static String s_p_shipmentSecurityStatus_A_A = "https://onerecord.iata.org/BookingOptionRequest#shipmentSecurityStatus"; + public final static IRI p_shipmentSecurityStatus_A_A = IRI.create(s_p_shipmentSecurityStatus_A_A); + /** + * When part of the Request it refers to the preferred Transport ID from the customer. When part of the BookingOption (offer or actual booking) it refers to the expected Transport ID or flight + * + */ + public final static String s_p_preferredTransportId = "https://onerecord.iata.org/BookingSegment#preferredTransportId"; + public final static IRI p_preferredTransportId = IRI.create(s_p_preferredTransportId); + /** + * Earliest acceptance date time (requested or proposed) + * + */ + public final static String s_p_earliestAcceptanceTime = "https://onerecord.iata.org/BookingTimes#earliestAcceptanceTime"; + public final static IRI p_earliestAcceptanceTime = IRI.create(s_p_earliestAcceptanceTime); + /** + * Latest Acceptance time as per CargoIQ definition (requested, proposed or actual) + * + */ + public final static String s_p_latestAcceptanceTime_A = "https://onerecord.iata.org/BookingTimes#latestAcceptanceTime"; + public final static IRI p_latestAcceptanceTime_A = IRI.create(s_p_latestAcceptanceTime_A); + /** + * Time of availability of the shipment as per CargoIQ definition + * + */ + public final static String s_p_timeOfAvailability_A = "https://onerecord.iata.org/BookingTimes#timeOfAvailability"; + public final static IRI p_timeOfAvailability_A = IRI.create(s_p_timeOfAvailability_A); + /** + * Total transit time as per CargoIQ definition, expressed as a duration + * + */ + public final static String s_p_totalTransitTime_A = "https://onerecord.iata.org/BookingTimes#totalTransitTime"; + public final static IRI p_totalTransitTime_A = IRI.create(s_p_totalTransitTime_A); + /** + * Company branch name + * + */ + public final static String s_p_branchName = "https://onerecord.iata.org/Branch#branchName"; + public final static IRI p_branchName = IRI.create(s_p_branchName); + /** + * IATA CASS cargo agent 4 digit branch number / location identifier + * + */ + public final static String s_p_iataCargoAgentLocationIdentifier = "https://onerecord.iata.org/Branch#iataCargoAgentLocationIdentifier"; + public final static IRI p_iataCargoAgentLocationIdentifier = IRI.create(s_p_iataCargoAgentLocationIdentifier); + /** + * Name of the CO2 calculation method + * + */ + public final static String s_p_methodName = "https://onerecord.iata.org/CO2CalcMethod#methodName"; + public final static IRI p_methodName = IRI.create(s_p_methodName); + /** + * Version of the CO2 calculation method + * + */ + public final static String s_p_methodVersion = "https://onerecord.iata.org/CO2CalcMethod#methodVersion"; + public final static IRI p_methodVersion = IRI.create(s_p_methodVersion); + /** + * Name of the CO2 calculation method + * + */ + public final static String s_p_methodName_A = "https://onerecord.iata.org/CO2Emissions#methodName"; + public final static IRI p_methodName_A = IRI.create(s_p_methodName_A); + /** + * Version used for the calculation + * + */ + public final static String s_p_methodVersion_A = "https://onerecord.iata.org/CO2Emissions#methodVersion"; + public final static IRI p_methodVersion_A = IRI.create(s_p_methodVersion_A); + /** + * IATA two-character airline code + * + */ + public final static String s_p_airlineCode = "https://onerecord.iata.org/Carrier#airlineCode"; + public final static IRI p_airlineCode = IRI.create(s_p_airlineCode); + /** + * IATA three-numeric airline prefix number + * + */ + public final static String s_p_airlinePrefix = "https://onerecord.iata.org/Carrier#airlinePrefix"; + public final static IRI p_airlinePrefix = IRI.create(s_p_airlinePrefix); + /** + * Official carrier name + * + */ + public final static String s_p_carrierName = "https://onerecord.iata.org/Carrier#carrierName"; + public final static IRI p_carrierName = IRI.create(s_p_carrierName); + /** + * Carrier short name if any + * + */ + public final static String s_p_carrierShortName = "https://onerecord.iata.org/Carrier#carrierShortName"; + public final static IRI p_carrierShortName = IRI.create(s_p_carrierShortName); + /** + * Carrier's product code + * + */ + public final static String s_p_productCode = "https://onerecord.iata.org/CarrierProduct#productCode"; + public final static IRI p_productCode = IRI.create(s_p_productCode); + /** + * Carrier's product description + * + */ + public final static String s_p_productDescription = "https://onerecord.iata.org/CarrierProduct#productDescription"; + public final static IRI p_productDescription = IRI.create(s_p_productDescription); + /** + * Product characteristics code - e.g. CLR - Color + * + */ + public final static String s_p_characteristicsType = "https://onerecord.iata.org/Characteristics#characteristicsType"; + public final static IRI p_characteristicsType = IRI.create(s_p_characteristicsType); + /** + * Product characteristics value / attribute - e.g. Blue... + * + */ + public final static String s_p_value = "https://onerecord.iata.org/Characteristics#value"; + public final static IRI p_value = IRI.create(s_p_value); + /** + * IATA two-character airline code + * + */ + public final static String s_p_airlineCode_A = "https://onerecord.iata.org/Company#airlineCode"; + public final static IRI p_airlineCode_A = IRI.create(s_p_airlineCode_A); + /** + * IATA three-numeric airline prefix number + * + */ + public final static String s_p_airlinePrefix_A = "https://onerecord.iata.org/Company#airlinePrefix"; + public final static IRI p_airlinePrefix_A = IRI.create(s_p_airlinePrefix_A); + /** + * Name of company or organization + * + */ + public final static String s_p_companyName = "https://onerecord.iata.org/Company#companyName"; + public final static IRI p_companyName = IRI.create(s_p_companyName); + /** + * IATA accredited cargo agent 7 digit number + * + */ + public final static String s_p_iataCargoAgentCode = "https://onerecord.iata.org/Company#iataCargoAgentCode"; + public final static IRI p_iataCargoAgentCode = IRI.create(s_p_iataCargoAgentCode); + /** + * Company branch name + * + */ + public final static String s_p_branchName_A = "https://onerecord.iata.org/CompanyBranch#branchName"; + public final static IRI p_branchName_A = IRI.create(s_p_branchName_A); + /** + * IATA CASS cargo agent 4 digit branch number / location identifier + * + */ + public final static String s_p_iataCargoAgentLocationIdentifier_A = "https://onerecord.iata.org/CompanyBranch#iataCargoAgentLocationIdentifier"; + public final static IRI p_iataCargoAgentLocationIdentifier_A = IRI.create(s_p_iataCargoAgentLocationIdentifier_A); + /** + * Type of the contact details, e.g. Phone number, Mail address + * + */ + public final static String s_p_contactType = "https://onerecord.iata.org/Contact#contactType"; + public final static IRI p_contactType = IRI.create(s_p_contactType); + /** + * Value of the contact detail, e.g. phone number + * + */ + public final static String s_p_contactValue = "https://onerecord.iata.org/Contact#contactValue"; + public final static IRI p_contactValue = IRI.create(s_p_contactValue); + /** + * E-mail address + * + */ + public final static String s_p_emailAddress = "https://onerecord.iata.org/Contact#emailAddress"; + public final static IRI p_emailAddress = IRI.create(s_p_emailAddress); + /** + * Phone number + * + */ + public final static String s_p_phoneNumber = "https://onerecord.iata.org/Contact#phoneNumber"; + public final static IRI p_phoneNumber = IRI.create(s_p_phoneNumber); + /** + * Contact details e.g. Skype ID + * + */ + public final static String s_p_detail = "https://onerecord.iata.org/ContactOther#detail"; + public final static IRI p_detail = IRI.create(s_p_detail); + /** + * Contact type - e.g. Skype + * + */ + public final static String s_p_otherType = "https://onerecord.iata.org/ContactOther#otherType"; + public final static IRI p_otherType = IRI.create(s_p_otherType); + /** + * Country ISO code. Refer ISO 3166-2 + * + */ + public final static String s_p_countryCode = "https://onerecord.iata.org/Country#countryCode"; + public final static IRI p_countryCode = IRI.create(s_p_countryCode); + /** + * Full country name + * + */ + public final static String s_p_countryName = "https://onerecord.iata.org/Country#countryName"; + public final static IRI p_countryName = IRI.create(s_p_countryName); + /** + * Customs content code. Refer CXML Code List 1.100, e.g. IST - Security Textual StatementNumber, M - Movement Reference Number + * + */ + public final static String s_p_customsInfoContentCode = "https://onerecord.iata.org/CustomsInfo#customsInfoContentCode"; + public final static IRI p_customsInfoContentCode = IRI.create(s_p_customsInfoContentCode); + /** + * Customs country code. + * + */ + public final static String s_p_customsInfoCountryCode = "https://onerecord.iata.org/CustomsInfo#customsInfoCountryCode"; + public final static IRI p_customsInfoCountryCode = IRI.create(s_p_customsInfoCountryCode); + /** + * Free text for customs remarks + * + */ + public final static String s_p_customsInfoNote = "https://onerecord.iata.org/CustomsInfo#customsInfoNote"; + public final static IRI p_customsInfoNote = IRI.create(s_p_customsInfoNote); + /** + * Customs subject code. Refer CXML Code List 1.19, e.g. IMP for import, EXP for export, AGT for Agent, ISS for The Regulated Agent Issuing the Security Status for rdf:type Consignment etc. At least one of the three elements (Country Code, Information Identifier or Customs, Security and Regulatory Control Information Identifier) must be completed + * + */ + public final static String s_p_customsInfoSubjectCode = "https://onerecord.iata.org/CustomsInfo#customsInfoSubjectCode"; + public final static IRI p_customsInfoSubjectCode = IRI.create(s_p_customsInfoSubjectCode); + /** + * Information for customs submission + * + */ + public final static String s_p_customsInformation = "https://onerecord.iata.org/CustomsInfo#customsInformation"; + public final static IRI p_customsInformation = IRI.create(s_p_customsInformation); + /** + * Contains the Special Handling Code related to the prescribed limitation. Hardcoded to PASSENGER AND CARGO AIRCRAFT or CARGO AIRCRAFT ONLY. This field is mandatory for air (Air) + * + */ + public final static String s_p_aircraftLimitationInformation = "https://onerecord.iata.org/DgDeclaration#aircraftLimitationInformation"; + public final static IRI p_aircraftLimitationInformation = IRI.create(s_p_aircraftLimitationInformation); + /** + * Contains the warning message complying with the regulations text note. This field is mandatory for air (Air) + * + */ + public final static String s_p_complianceDeclarationText = "https://onerecord.iata.org/DgDeclaration#complianceDeclarationText"; + public final static IRI p_complianceDeclarationText = IRI.create(s_p_complianceDeclarationText); + /** + * Indicates an exclusive use shipment + * + */ + public final static String s_p_exclusiveUseIndicator = "https://onerecord.iata.org/DgDeclaration#exclusiveUseIndicator"; + public final static IRI p_exclusiveUseIndicator = IRI.create(s_p_exclusiveUseIndicator); + /** + * Free text. This may include items such as Control temperature for substances stabilized by temperature control, name and telephone number of a responsible person for infectious substances. + * + */ + public final static String s_p_handlingInformation = "https://onerecord.iata.org/DgDeclaration#handlingInformation"; + public final static IRI p_handlingInformation = IRI.create(s_p_handlingInformation); + /** + * Contains the shipper's declaration to comply with the regulations text note. Free text . This field is mandatory for air (Air) + * + */ + public final static String s_p_shipperDeclarationText = "https://onerecord.iata.org/DgDeclaration#shipperDeclarationText"; + public final static IRI p_shipperDeclarationText = IRI.create(s_p_shipperDeclarationText); + /** + * The category of the package or all packed in one. Complete text to be transmitted: I-White, II-Yellow, III-Yellow instead of I, II, III + * + */ + public final static String s_p_dgRaTypeCode = "https://onerecord.iata.org/DgProductRadioactive#dgRaTypeCode"; + public final static IRI p_dgRaTypeCode = IRI.create(s_p_dgRaTypeCode); + /** + * Indicates if Fissile is excepted + * + */ + public final static String s_p_fissileExceptionIndicator = "https://onerecord.iata.org/DgProductRadioactive#fissileExceptionIndicator"; + public final static IRI p_fissileExceptionIndicator = IRI.create(s_p_fissileExceptionIndicator); + /** + * Fissile exception reference, mandatory if Fissile Exception Indicator is true. + * + */ + public final static String s_p_fissileExceptionReference = "https://onerecord.iata.org/DgProductRadioactive#fissileExceptionReference"; + public final static IRI p_fissileExceptionReference = IRI.create(s_p_fissileExceptionReference); + /** + * Radioactive Transport-Index value of the package or all packed in one. Conditionally mandator and applies to categories II-Yellow and III-Yellow only; field only contains the value, if printed, TI must be added as a prefix to the value to be printed in the Packing Instructions column + * + */ + public final static String s_p_transportIndexNumeric = "https://onerecord.iata.org/DgProductRadioactive#transportIndexNumeric"; + public final static IRI p_transportIndexNumeric = IRI.create(s_p_transportIndexNumeric); + /** + * Numeric expression of the activity of a radioactive Item + * + */ + public final static String s_p_activityLevelMeasure = "https://onerecord.iata.org/DgRadioactiveIsotope#activityLevelMeasure"; + public final static IRI p_activityLevelMeasure = IRI.create(s_p_activityLevelMeasure); + /** + * Applies to fissile material only, other than fissile excepted. A numeric value expressed to one decimal place preceded by the letters CSI. + * + */ + public final static String s_p_criticalitySafetyIndexNumeric = "https://onerecord.iata.org/DgRadioactiveIsotope#criticalitySafetyIndexNumeric"; + public final static IRI p_criticalitySafetyIndexNumeric = IRI.create(s_p_criticalitySafetyIndexNumeric); + /** + * Id of each radionuclide or for mixtures of radionuclides. + * + */ + public final static String s_p_isotopeId = "https://onerecord.iata.org/DgRadioactiveIsotope#isotopeId"; + public final static IRI p_isotopeId = IRI.create(s_p_isotopeId); + /** + * The name or symbol of each radionuclide or for mixtures of radionuclides, an appropriate general description, or a list of the most restrictive radionuclides. + * + */ + public final static String s_p_isotopeName = "https://onerecord.iata.org/DgRadioactiveIsotope#isotopeName"; + public final static IRI p_isotopeName = IRI.create(s_p_isotopeName); + /** + * A notation that the material is low dispersible radioactive material. + * + */ + public final static String s_p_lowDispersibleIndicator = "https://onerecord.iata.org/DgRadioactiveIsotope#lowDispersibleIndicator"; + public final static IRI p_lowDispersibleIndicator = IRI.create(s_p_lowDispersibleIndicator); + /** + * A description of the physical and chemical form of the material. + * + */ + public final static String s_p_physicalChemicalForm = "https://onerecord.iata.org/DgRadioactiveIsotope#physicalChemicalForm"; + public final static IRI p_physicalChemicalForm = IRI.create(s_p_physicalChemicalForm); + /** + * A notation that the material is special form + * + */ + public final static String s_p_specialFormIndicator = "https://onerecord.iata.org/DgRadioactiveIsotope#specialFormIndicator"; + public final static IRI p_specialFormIndicator = IRI.create(s_p_specialFormIndicator); + /** + * total number of specimens exported in the current calendar year and the current annuela quota for the species concerned (box 11a) + * + */ + public final static String s_p_usedToDateQuotaQuantity = "https://onerecord.iata.org/EpermitConsignment#usedToDateQuotaQuantity"; + public final static IRI p_usedToDateQuotaQuantity = IRI.create(s_p_usedToDateQuotaQuantity); + /** + * Security Stamp ID + * + */ + public final static String s_p_securityStampId = "https://onerecord.iata.org/EpermitSignature#securityStampId"; + public final static IRI p_securityStampId = IRI.create(s_p_securityStampId); + /** + * Role of the signatory with regards to the ePermit: Applicant, Permit issuer, Issuing Authority or Examining authority + * + */ + public final static String s_p_signatoryRole = "https://onerecord.iata.org/EpermitSignature#signatoryRole"; + public final static IRI p_signatoryRole = IRI.create(s_p_signatoryRole); + /** + * Date and time of the signature + * + */ + public final static String s_p_signatureDate = "https://onerecord.iata.org/EpermitSignature#signatureDate"; + public final static IRI p_signatureDate = IRI.create(s_p_signatureDate); + /** + * Signatory signature authentication text + * + */ + public final static String s_p_signatureStatement = "https://onerecord.iata.org/EpermitSignature#signatureStatement"; + public final static IRI p_signatureStatement = IRI.create(s_p_signatureStatement); + /** + * Code specifying a type of government action such asinspection, detention, fumigation, security. + * + */ + public final static String s_p_signatureTypeCode = "https://onerecord.iata.org/EpermitSignature#signatureTypeCode"; + public final static IRI p_signatureTypeCode = IRI.create(s_p_signatureTypeCode); + /** + * Date and time of the event + * + */ + public final static String s_p_dateTime = "https://onerecord.iata.org/Event#dateTime"; + public final static IRI p_dateTime = IRI.create(s_p_dateTime); + /** + * Movement or milestone code. Refer CXML Code List 1.18, e.g. DEP, ARR, FOH, RCS + * + */ + public final static String s_p_eventCode = "https://onerecord.iata.org/Event#eventCode"; + public final static IRI p_eventCode = IRI.create(s_p_eventCode); + /** + * If no EventCode provided, event name - e.g. Security clearance + * + */ + public final static String s_p_eventName = "https://onerecord.iata.org/Event#eventName"; + public final static IRI p_eventName = IRI.create(s_p_eventName); + /** + * Indicates type of event e.g. Scheduled, Estimated, Actual + * + */ + public final static String s_p_eventTypeIndicator = "https://onerecord.iata.org/Event#eventTypeIndicator"; + public final static IRI p_eventTypeIndicator = IRI.create(s_p_eventTypeIndicator); + /** + * Position of the shipment in the aircraft - e.g. lower or main deck + * + */ + public final static String s_p_loadingPosition = "https://onerecord.iata.org/EventUld#loadingPosition"; + public final static IRI p_loadingPosition = IRI.create(s_p_loadingPosition); + /** + * Checksum of the document to validate its integrity + * + */ + public final static String s_p_documentChecksum = "https://onerecord.iata.org/ExternalReference#documentChecksum"; + public final static IRI p_documentChecksum = IRI.create(s_p_documentChecksum); + /** + * Unique document identifier + * + */ + public final static String s_p_documentId = "https://onerecord.iata.org/ExternalReference#documentId"; + public final static IRI p_documentId = IRI.create(s_p_documentId); + /** + * Link to the document, e.g. URL of the file where it is hosted + * + */ + public final static String s_p_documentLink = "https://onerecord.iata.org/ExternalReference#documentLink"; + public final static IRI p_documentLink = IRI.create(s_p_documentLink); + /** + * If no DocumentType provided, name of the referenced document + * + */ + public final static String s_p_documentName = "https://onerecord.iata.org/ExternalReference#documentName"; + public final static IRI p_documentName = IRI.create(s_p_documentName); + /** + * Type of the referenced document . Refer UNEDIFACT 1001 e.g. 740 - Air Waybill + * + */ + public final static String s_p_documentType = "https://onerecord.iata.org/ExternalReference#documentType"; + public final static IRI p_documentType = IRI.create(s_p_documentType); + /** + * Document version number + * + */ + public final static String s_p_documentVersion = "https://onerecord.iata.org/ExternalReference#documentVersion"; + public final static IRI p_documentVersion = IRI.create(s_p_documentVersion); + /** + * Document expiry date + * + */ + public final static String s_p_expiryDate = "https://onerecord.iata.org/ExternalReference#expiryDate"; + public final static IRI p_expiryDate = IRI.create(s_p_expiryDate); + /** + * Document validity start date + * + */ + public final static String s_p_validFrom = "https://onerecord.iata.org/ExternalReference#validFrom"; + public final static IRI p_validFrom = IRI.create(s_p_validFrom); + /** + * re of the Geolocation coordinates, standard is Degree + * + */ + public final static String s_p_geolocationUnit = "https://onerecord.iata.org/Geolocation#geolocationUnit"; + public final static IRI p_geolocationUnit = IRI.create(s_p_geolocationUnit); + /** + * Location latitude - Change of data type to string as of version 1.2 + * + */ + public final static String s_p_latitude = "https://onerecord.iata.org/Geolocation#latitude"; + public final static IRI p_latitude = IRI.create(s_p_latitude); + /** + * Location longitude - Change of data type to string as of version 1.2 + * + */ + public final static String s_p_longitude = "https://onerecord.iata.org/Geolocation#longitude"; + public final static IRI p_longitude = IRI.create(s_p_longitude); + /** + * Reference of the Logistic Object to which the Connected Device is linked (URI) + * + */ + public final static String s_p_associatedObject = "https://onerecord.iata.org/IotDevice#associatedObject"; + public final static IRI p_associatedObject = IRI.create(s_p_associatedObject); + /** + * Natural language description of the device. It can describe how and where the device is attached. + * + */ + public final static String s_p_deviceDescription = "https://onerecord.iata.org/IotDevice#deviceDescription"; + public final static IRI p_deviceDescription = IRI.create(s_p_deviceDescription); + /** + * Commercial denomination of the device + * + */ + public final static String s_p_deviceModel = "https://onerecord.iata.org/IotDevice#deviceModel"; + public final static IRI p_deviceModel = IRI.create(s_p_deviceModel); + /** + * Name of the device defined by the device's owner + * + */ + public final static String s_p_deviceName = "https://onerecord.iata.org/IotDevice#deviceName"; + public final static IRI p_deviceName = IRI.create(s_p_deviceName); + /** + * Serial number that allows to uniquely identify the device + * + */ + public final static String s_p_deviceSerialNumber = "https://onerecord.iata.org/IotDevice#deviceSerialNumber"; + public final static IRI p_deviceSerialNumber = IRI.create(s_p_deviceSerialNumber); + /** + * Production batch number / reference + * + */ + public final static String s_p_batchNumber = "https://onerecord.iata.org/Item#batchNumber"; + public final static IRI p_batchNumber = IRI.create(s_p_batchNumber); + /** + * Production lot number / reference + * + */ + public final static String s_p_lotNumber = "https://onerecord.iata.org/Item#lotNumber"; + public final static IRI p_lotNumber = IRI.create(s_p_lotNumber); + /** + * Product expiry date - e.g. for perishables goods or goods with programmed obsolescence + * + */ + public final static String s_p_productExpiryDate = "https://onerecord.iata.org/Item#productExpiryDate"; + public final static IRI p_productExpiryDate = IRI.create(s_p_productExpiryDate); + /** + * Production date + * + */ + public final static String s_p_productionDate = "https://onerecord.iata.org/Item#productionDate"; + public final static IRI p_productionDate = IRI.create(s_p_productionDate); + /** + * Product quantity for unit price - e.g. 12 (eggs for one USD 1) + * + */ + public final static String s_p_quantityForUnitPrice = "https://onerecord.iata.org/Item#quantityForUnitPrice"; + public final static IRI p_quantityForUnitPrice = IRI.create(s_p_quantityForUnitPrice); + /** + * Reportable quantities, To and from the USA only + * + */ + public final static String s_p_reportableQuantity = "https://onerecord.iata.org/ItemDg#reportableQuantity"; + public final static IRI p_reportableQuantity = IRI.create(s_p_reportableQuantity); + /** + * Additional information that may be added in addition to the proper shipping name to more fully describe the goods or to identify a particular condition + * + */ + public final static String s_p_supplementaryInfoPrefix = "https://onerecord.iata.org/ItemDg#supplementaryInfoPrefix"; + public final static IRI p_supplementaryInfoPrefix = IRI.create(s_p_supplementaryInfoPrefix); + /** + * Additional information that may be added in addition to the proper shipping to more fully describe the goods or to identify a particular condition + * + */ + public final static String s_p_supplementaryInfoSuffix = "https://onerecord.iata.org/ItemDg#supplementaryInfoSuffix"; + public final static IRI p_supplementaryInfoSuffix = IRI.create(s_p_supplementaryInfoSuffix); + /** + * Indicates if the permit is a copy (true) or an original (false) (box 1) + * + */ + public final static String s_p_permitCopyIndicator = "https://onerecord.iata.org/LiveAnimalsEpermit#permitCopyIndicator"; + public final static IRI p_permitCopyIndicator = IRI.create(s_p_permitCopyIndicator); + /** + * The original number is a unique number allocated to each document by the relevant Management Authority. (box 1) + * + */ + public final static String s_p_permitNumber = "https://onerecord.iata.org/LiveAnimalsEpermit#permitNumber"; + public final static IRI p_permitNumber = IRI.create(s_p_permitNumber); + /** + * Code specifying the document name. (box 1) + * + */ + public final static String s_p_permitTypeCode = "https://onerecord.iata.org/LiveAnimalsEpermit#permitTypeCode"; + public final static IRI p_permitTypeCode = IRI.create(s_p_permitTypeCode); + /** + * Description if TypeCode is Other (box 1) + * + */ + public final static String s_p_permitTypeOther = "https://onerecord.iata.org/LiveAnimalsEpermit#permitTypeOther"; + public final static IRI p_permitTypeOther = IRI.create(s_p_permitTypeOther); + /** + * Permit Valid from (box 2) + * + */ + public final static String s_p_permitValidFrom = "https://onerecord.iata.org/LiveAnimalsEpermit#permitValidFrom"; + public final static IRI p_permitValidFrom = IRI.create(s_p_permitValidFrom); + /** + * Permit Valid until (box 2) + * + */ + public final static String s_p_permitValidUntil = "https://onerecord.iata.org/LiveAnimalsEpermit#permitValidUntil"; + public final static IRI p_permitValidUntil = IRI.create(s_p_permitValidUntil); + /** + * Special conditions (box 5) + * + */ + public final static String s_p_specialConditions = "https://onerecord.iata.org/LiveAnimalsEpermit#specialConditions"; + public final static IRI p_specialConditions = IRI.create(s_p_specialConditions); + /** + * Code indicating the purpose of the transaction (box 5a) + * + */ + public final static String s_p_transactionPurposeCode = "https://onerecord.iata.org/LiveAnimalsEpermit#transactionPurposeCode"; + public final static IRI p_transactionPurposeCode = IRI.create(s_p_transactionPurposeCode); + /** + * Purpose of the transaction in free text (box 5a) + * + */ + public final static String s_p_transactionPurposeText = "https://onerecord.iata.org/LiveAnimalsEpermit#transactionPurposeText"; + public final static IRI p_transactionPurposeText = IRI.create(s_p_transactionPurposeText); + /** + * Reference to the Air Waybill or other transport contract document (box 15) + * + */ + public final static String s_p_transportContractId = "https://onerecord.iata.org/LiveAnimalsEpermit#transportContractId"; + public final static IRI p_transportContractId = IRI.create(s_p_transportContractId); + /** + * Code specifying the transport document name (box 15) + * + */ + public final static String s_p_transportContractTypeCode = "https://onerecord.iata.org/LiveAnimalsEpermit#transportContractTypeCode"; + public final static IRI p_transportContractTypeCode = IRI.create(s_p_transportContractTypeCode); + /** + * Location code of airport, freight terminal, seaport, rail station. UN/LOCODE city code (5 letter) or IATA airport code (3 letter) + * + */ + public final static String s_p_code = "https://onerecord.iata.org/Location#code"; + public final static IRI p_code = IRI.create(s_p_code); + /** + * Full name of the location + * + */ + public final static String s_p_locationName = "https://onerecord.iata.org/Location#locationName"; + public final static IRI p_locationName = IRI.create(s_p_locationName); + /** + * Location type - e.g. Airport, Freight terminal, Rail station, Seaport, etc + * + */ + public final static String s_p_locationType = "https://onerecord.iata.org/Location#locationType"; + public final static IRI p_locationType = IRI.create(s_p_locationType); + /** + * Company identifier from the Internet of Logistics of the entity that hosts the Logistics Object. + * + */ + public final static String s_p_companyIdentifier = "https://onerecord.iata.org/LogisticsObject#companyIdentifier"; + public final static IRI p_companyIdentifier = IRI.create(s_p_companyIdentifier); + /** + * Timestamp for the measurement + * + */ + public final static String s_p_measurementTimestamp = "https://onerecord.iata.org/Measurements#measurementTimestamp"; + public final static IRI p_measurementTimestamp = IRI.create(s_p_measurementTimestamp); + /** + * Direction to indicate if it's Inbound or Outbound + * + */ + public final static String s_p_direction = "https://onerecord.iata.org/MovementTimes#direction"; + public final static IRI p_direction = IRI.create(s_p_direction); + /** + * The milestone list still needs to be defined, it includes elements from CXML Code List 1.92 but is not limited to those values, e.g. block-on and block-off times might be added as a comparison to wheels off and touchdown. + * + */ + public final static String s_p_movementMilestone = "https://onerecord.iata.org/MovementTimes#movementMilestone"; + public final static IRI p_movementMilestone = IRI.create(s_p_movementMilestone); + /** + * Timestamp (date and time) of the movement time. If the movement time is recorded asynchronously, the timestamp should reflect the actual time, not when the data was created. + * + */ + public final static String s_p_movementTimestamp = "https://onerecord.iata.org/MovementTimes#movementTimestamp"; + public final static IRI p_movementTimestamp = IRI.create(s_p_movementTimestamp); + /** + * The type of time can be Actual, Estimated ot Scheduled + * + */ + public final static String s_p_timeType = "https://onerecord.iata.org/MovementTimes#timeType"; + public final static IRI p_timeType = IRI.create(s_p_timeType); + /** + * Item identifier + * + */ + public final static String s_p_identifier = "https://onerecord.iata.org/OtherIdentifier#identifier"; + public final static IRI p_identifier = IRI.create(s_p_identifier); + /** + * Identifier type or description + * + */ + public final static String s_p_otherIdentifierType = "https://onerecord.iata.org/OtherIdentifier#otherIdentifierType"; + public final static IRI p_otherIdentifierType = IRI.create(s_p_otherIdentifierType); + /** + * Specifies the code of an additional party if required. Standard codes from UN/EDIFACT 3035 Party function code qualifier can be used. + * + */ + public final static String s_p_partyTypeCode = "https://onerecord.iata.org/OtherParty#partyTypeCode"; + public final static IRI p_partyTypeCode = IRI.create(s_p_partyTypeCode); + /** + * Role of other party - e.g. Notify party, Nominated agent, Customs broker, Manufacturer, Importer, Payer, Payee, ShipTo, ShipFrom, BillTo, BillFrom, RemitTo, RemitFrom + * + */ + public final static String s_p_roleName = "https://onerecord.iata.org/OtherParty#roleName"; + public final static IRI p_roleName = IRI.create(s_p_roleName); + /** + * Free Text. Describes the package type. + * + */ + public final static String s_p_packagingTypeDescription = "https://onerecord.iata.org/PackagingType#packagingTypeDescription"; + public final static IRI p_packagingTypeDescription = IRI.create(s_p_packagingTypeDescription); + /** + * Packaging type identifier as per UNECE Rec 21 Annex V and VI e.g. 1A - Drum, steel - Packaging material code. Identifies the Logistic Unit package type. UN Recommendation on Transport of Dangerous Goods, Model Regulations + * + */ + public final static String s_p_typeCode = "https://onerecord.iata.org/PackagingType#typeCode"; + public final static IRI p_typeCode = IRI.create(s_p_typeCode); + /** + * Role fo the Company in the context. Can refer to Code List 1.36 in the CXML Toolkit + * + */ + public final static String s_p_partyRole = "https://onerecord.iata.org/Party#partyRole"; + public final static IRI p_partyRole = IRI.create(s_p_partyRole); + /** + * Contact type - e.g. Emergency contact, Customs contact, Customer contact + * + */ + public final static String s_p_contactType_A = "https://onerecord.iata.org/Person#contactType"; + public final static IRI p_contactType_A = IRI.create(s_p_contactType_A); + /** + * Department / Division / Unit + * + */ + public final static String s_p_department = "https://onerecord.iata.org/Person#department"; + public final static IRI p_department = IRI.create(s_p_department); + /** + * Employee ID + * + */ + public final static String s_p_employeeId = "https://onerecord.iata.org/Person#employeeId"; + public final static IRI p_employeeId = IRI.create(s_p_employeeId); + /** + * First name / given name + * + */ + public final static String s_p_firstName = "https://onerecord.iata.org/Person#firstName"; + public final static IRI p_firstName = IRI.create(s_p_firstName); + /** + * Job title / position + * + */ + public final static String s_p_jobTitle = "https://onerecord.iata.org/Person#jobTitle"; + public final static IRI p_jobTitle = IRI.create(s_p_jobTitle); + /** + * Last name / family name / surname + * + */ + public final static String s_p_lastName = "https://onerecord.iata.org/Person#lastName"; + public final static IRI p_lastName = IRI.create(s_p_lastName); + /** + * Middle name/ other name + * + */ + public final static String s_p_middleName = "https://onerecord.iata.org/Person#middleName"; + public final static IRI p_middleName = IRI.create(s_p_middleName); + /** + * Salutation + * + */ + public final static String s_p_salutation = "https://onerecord.iata.org/Person#salutation"; + public final static IRI p_salutation = IRI.create(s_p_salutation); + /** + * Coload indicator for the pieces (boolean) + * + */ + public final static String s_p_coload = "https://onerecord.iata.org/Piece#coload"; + public final static IRI p_coload = IRI.create(s_p_coload); + /** + * The value of a shipment declared for carriage purposes , NVD if no value declared + * + */ + public final static String s_p_declaredValueForCarriage = "https://onerecord.iata.org/Piece#declaredValueForCarriage"; + public final static IRI p_declaredValueForCarriage = IRI.create(s_p_declaredValueForCarriage); + /** + * The value of a shipment declared for customs purposes , NVD if no value declared + * + */ + public final static String s_p_declaredValueForCustoms = "https://onerecord.iata.org/Piece#declaredValueForCustoms"; + public final static IRI p_declaredValueForCustoms = IRI.create(s_p_declaredValueForCustoms); + /** + * General goods description + * + */ + public final static String s_p_goodsDescription = "https://onerecord.iata.org/Piece#goodsDescription"; + public final static IRI p_goodsDescription = IRI.create(s_p_goodsDescription); + /** + * Specify how the piece will be delivered (bulk or ULD) + * + */ + public final static String s_p_loadType = "https://onerecord.iata.org/Piece#loadType"; + public final static IRI p_loadType = IRI.create(s_p_loadType); + /** + * Reference identifying how the package is marked. Field is hardcode to "SSCC-18", "UPC" or "Other" + * + */ + public final static String s_p_packageMarkCoded = "https://onerecord.iata.org/Piece#packageMarkCoded"; + public final static IRI p_packageMarkCoded = IRI.create(s_p_packageMarkCoded); + /** + * SSCC-18 code for the value of the package mark, company or bar code, free text, pallet code, etc. + * + */ + public final static String s_p_packagedeIdentifier = "https://onerecord.iata.org/Piece#packagedeIdentifier"; + public final static IRI p_packagedeIdentifier = IRI.create(s_p_packagedeIdentifier); + /** + * Shipping marks + * + */ + public final static String s_p_shippingMarks = "https://onerecord.iata.org/Piece#shippingMarks"; + public final static IRI p_shippingMarks = IRI.create(s_p_shippingMarks); + /** + * Shipper's Load And Count ( total contained piece count as provided by shipper) + * + */ + public final static String s_p_slac = "https://onerecord.iata.org/Piece#slac"; + public final static IRI p_slac = IRI.create(s_p_slac); + /** + * Stackable indicator for the pieces (boolean) + * + */ + public final static String s_p_stackable = "https://onerecord.iata.org/Piece#stackable"; + public final static IRI p_stackable = IRI.create(s_p_stackable); + /** + * Turnable indicator for the pieces (boolean) + * + */ + public final static String s_p_turnable = "https://onerecord.iata.org/Piece#turnable"; + public final static IRI p_turnable = IRI.create(s_p_turnable); + /** + * Unique Piece Identifier (UPID) of the piece. Refer IATA Recommended Practice 1689 + * + */ + public final static String s_p_upid_A = "https://onerecord.iata.org/Piece#upid"; + public final static IRI p_upid_A = IRI.create(s_p_upid_A); + /** + * A statement identifying that the dangerous goods listed above are all contained in the same outer packaging. Takes the form All packed in one aaaa (description of packaging type) x nn (number of packages). Applies to air transport only. (Air) + * + */ + public final static String s_p_allPackedInOneIndicator = "https://onerecord.iata.org/PieceDg#allPackedInOneIndicator"; + public final static IRI p_allPackedInOneIndicator = IRI.create(s_p_allPackedInOneIndicator); + /** + * Applies to fissile material only, other than fissile excepted. A numeric value expressed to one decimal place preceded by the letters CSI. + * + */ + public final static String s_p_overpackCriticalitySafetyIndexNumeric = "https://onerecord.iata.org/PieceDg#overpackCriticalitySafetyIndexNumeric"; + public final static IRI p_overpackCriticalitySafetyIndexNumeric = IRI.create(s_p_overpackCriticalitySafetyIndexNumeric); + /** + * Overpack indicator + * + */ + public final static String s_p_overpackIndicator = "https://onerecord.iata.org/PieceDg#overpackIndicator"; + public final static IRI p_overpackIndicator = IRI.create(s_p_overpackIndicator); + /** + * A single number assigned to a package, overpack or freight container to provide control over radiation exposure. + * + */ + public final static String s_p_overpackT1 = "https://onerecord.iata.org/PieceDg#overpackT1"; + public final static IRI p_overpackT1 = IRI.create(s_p_overpackT1); + /** + * Identifies the Logistic Unit package type. UN Recommendation on Transport of Dangerous Goods, Model Regulations + * + */ + public final static String s_p_overpackTypeCode = "https://onerecord.iata.org/PieceDg#overpackTypeCode"; + public final static IRI p_overpackTypeCode = IRI.create(s_p_overpackTypeCode); + /** + * Most instances of all packed in one will require the addition of the Q value which 1. Applies to air transport only. (Air) + * + */ + public final static String s_p_qValueNumeric = "https://onerecord.iata.org/PieceDg#qValueNumeric"; + public final static IRI p_qValueNumeric = IRI.create(s_p_qValueNumeric); + /** + * Defined in Resolution Conf. 13.6 and is required for pre-Convention specimens (box 12b) + * + */ + public final static String s_p_acquisitionDatetime = "https://onerecord.iata.org/PieceLiveAnimals#acquisitionDatetime"; + public final static IRI p_acquisitionDatetime = IRI.create(s_p_acquisitionDatetime); + /** + * total number of specimens exported in the current calendar year and the current annuela quota for the species concerned (box 11a) + * + */ + public final static String s_p_annualQuotaQuantity = "https://onerecord.iata.org/PieceLiveAnimals#annualQuotaQuantity"; + public final static IRI p_annualQuotaQuantity = IRI.create(s_p_annualQuotaQuantity); + /** + * Operations code ID. Refers to the number of the registered captive-breeding or artifical propagation operation (box 12b) + * + */ + public final static String s_p_categoryCode = "https://onerecord.iata.org/PieceLiveAnimals#categoryCode"; + public final static IRI p_categoryCode = IRI.create(s_p_categoryCode); + /** + * Appendix number of the convention (I, II or III) (box 10) + * + */ + public final static String s_p_goodsTypeCode = "https://onerecord.iata.org/PieceLiveAnimals#goodsTypeCode"; + public final static IRI p_goodsTypeCode = IRI.create(s_p_goodsTypeCode); + /** + * Appendix number of the convention (I, II or III) (box 10) + * + */ + public final static String s_p_goodsTypeExtensionCode = "https://onerecord.iata.org/PieceLiveAnimals#goodsTypeExtensionCode"; + public final static IRI p_goodsTypeExtensionCode = IRI.create(s_p_goodsTypeExtensionCode); + /** + * Issuing date for Origin reference permit or re-export reference Certificate (box 12) + * + */ + public final static String s_p_originReferencePermitDatetime = "https://onerecord.iata.org/PieceLiveAnimals#originReferencePermitDatetime"; + public final static IRI p_originReferencePermitDatetime = IRI.create(s_p_originReferencePermitDatetime); + /** + * identifier of Origin reference permit or re-export reference Certificate (box 12/12a) + * + */ + public final static String s_p_originReferencePermitId = "https://onerecord.iata.org/PieceLiveAnimals#originReferencePermitId"; + public final static IRI p_originReferencePermitId = IRI.create(s_p_originReferencePermitId); + /** + * Document type code of origin reference permit or re-export reference Certificate (box 12/12a) + * + */ + public final static String s_p_originReferencePermitTypeCode = "https://onerecord.iata.org/PieceLiveAnimals#originReferencePermitTypeCode"; + public final static IRI p_originReferencePermitTypeCode = IRI.create(s_p_originReferencePermitTypeCode); + /** + * Quantity including units (box 11) + * + */ + public final static String s_p_quantityAnimals = "https://onerecord.iata.org/PieceLiveAnimals#quantityAnimals"; + public final static IRI p_quantityAnimals = IRI.create(s_p_quantityAnimals); + /** + * Species common name (box 8) + * + */ + public final static String s_p_speciesCommonName = "https://onerecord.iata.org/PieceLiveAnimals#speciesCommonName"; + public final static IRI p_speciesCommonName = IRI.create(s_p_speciesCommonName); + /** + * Species scientific name (box 7) + * + */ + public final static String s_p_speciesScientificName = "https://onerecord.iata.org/PieceLiveAnimals#speciesScientificName"; + public final static IRI p_speciesScientificName = IRI.create(s_p_speciesScientificName); + /** + * Description of specimens, including age and sex if LA (box 9) + * + */ + public final static String s_p_specimenDescription = "https://onerecord.iata.org/PieceLiveAnimals#specimenDescription"; + public final static IRI p_specimenDescription = IRI.create(s_p_specimenDescription); + /** + * Description of specimens, CITES type code (box 9) + * + */ + public final static String s_p_specimenTypeCode = "https://onerecord.iata.org/PieceLiveAnimals#specimenTypeCode"; + public final static IRI p_specimenTypeCode = IRI.create(s_p_specimenTypeCode); + /** + * Charge code for carrier, eg. CA, CB, etc + * + */ + public final static String s_p_carrierChargeCode = "https://onerecord.iata.org/Price#carrierChargeCode"; + public final static IRI p_carrierChargeCode = IRI.create(s_p_carrierChargeCode); + /** + * Total price + * + */ + public final static String s_p_grandTotal = "https://onerecord.iata.org/Price#grandTotal"; + public final static IRI p_grandTotal = IRI.create(s_p_grandTotal); + /** + * Terms of validity + * + */ + public final static String s_p_validTo = "https://onerecord.iata.org/Price#validTo"; + public final static IRI p_validTo = IRI.create(s_p_validTo); + /** + * Indicates the specific commodity on which the rate class code is applied + * + */ + public final static String s_p_commodityItemNumber = "https://onerecord.iata.org/Product#commodityItemNumber"; + public final static IRI p_commodityItemNumber = IRI.create(s_p_commodityItemNumber); + /** + * Reference identifying the type of standard code to be used for the Commodity Classification (Brussels Tariff Nomenclature, EU Harmonized System Code, UN Standard International Trade Classification). Mandatory if the commodity code is more than 6 digits + * + */ + public final static String s_p_hsCode = "https://onerecord.iata.org/Product#hsCode"; + public final static IRI p_hsCode = IRI.create(s_p_hsCode); + /** + * Commodity description + * + */ + public final static String s_p_hsCommodityDescription = "https://onerecord.iata.org/Product#hsCommodityDescription"; + public final static IRI p_hsCommodityDescription = IRI.create(s_p_hsCommodityDescription); + /** + * If no Code provided, name of commodity + * + */ + public final static String s_p_hsCommodityName = "https://onerecord.iata.org/Product#hsCommodityName"; + public final static IRI p_hsCommodityName = IRI.create(s_p_hsCommodityName); + /** + * Issuer of the Commodity Code - e.g. Brussels Tariff Nomenclature, EU Harmonized System Code, UN Standard International Trade, etc. + * + */ + public final static String s_p_hsType = "https://onerecord.iata.org/Product#hsType"; + public final static IRI p_hsType = IRI.create(s_p_hsType); + /** + * Product description + * + */ + public final static String s_p_productDescription_A = "https://onerecord.iata.org/Product#productDescription"; + public final static IRI p_productDescription_A = IRI.create(s_p_productDescription_A); + /** + * Manufacturer's unique product identifier + * + */ + public final static String s_p_productIdentifier = "https://onerecord.iata.org/Product#productIdentifier"; + public final static IRI p_productIdentifier = IRI.create(s_p_productIdentifier); + /** + * Identifies the subsidiary hazard class / division identification containing a numeric field separated by a decimal. There may be 0, 1 or 2 subsidiary risk classes or divisions. If there is more than one, each should be separated by a comma. The subsidiary risk must be shown in parentheses. + * + */ + public final static String s_p_additionalHazardClassificationId = "https://onerecord.iata.org/ProductDg#additionalHazardClassificationId"; + public final static IRI p_additionalHazardClassificationId = IRI.create(s_p_additionalHazardClassificationId); + /** + * Contains additional information relating to an approval, permission or other specific detail applicable to the commodity (e.g. Dangerous Goods in excepted quantities) + * + */ + public final static String s_p_authorizationInformation = "https://onerecord.iata.org/ProductDg#authorizationInformation"; + public final static IRI p_authorizationInformation = IRI.create(s_p_authorizationInformation); + /** + * Specifies the reference to the group which identifies the kind of substances and articles that are deemed to be compatible. Mandatory field in case of transport of explosive articles or substances + * + */ + public final static String s_p_explosiveCompatibilityGroupCode = "https://onerecord.iata.org/ProductDg#explosiveCompatibilityGroupCode"; + public final static IRI p_explosiveCompatibilityGroupCode = IRI.create(s_p_explosiveCompatibilityGroupCode); + /** + * Identifies the hazard class / division identification containing a numeric field separated by a decimal + * + */ + public final static String s_p_hazardClassificationId = "https://onerecord.iata.org/ProductDg#hazardClassificationId"; + public final static IRI p_hazardClassificationId = IRI.create(s_p_hazardClassificationId); + /** + * Packing group, If used must reference I, II or III + * + */ + public final static String s_p_packagingDangerLevelCode = "https://onerecord.iata.org/ProductDg#packagingDangerLevelCode"; + public final static IRI p_packagingDangerLevelCode = IRI.create(s_p_packagingDangerLevelCode); + /** + * The packing instruction number applicable to the UN number / proper shipping name entry. A three-numeric value which may be preceded by the letter Y. Mandatory field for air transport (Air) + * + */ + public final static String s_p_packingInstructionNumber = "https://onerecord.iata.org/ProductDg#packingInstructionNumber"; + public final static IRI p_packingInstructionNumber = IRI.create(s_p_packingInstructionNumber); + /** + * The name used to describe the particular article or substance as shown in the UN Model Regulations Dangerous Goods List + * + */ + public final static String s_p_properShippingName = "https://onerecord.iata.org/ProductDg#properShippingName"; + public final static IRI p_properShippingName = IRI.create(s_p_properShippingName); + /** + * For Air Mode: Special Provision may show a single, double or triple digit number preceded by the letter A, against appropriate entries in the List of Dangerous Goods + * + */ + public final static String s_p_specialProvisionId = "https://onerecord.iata.org/ProductDg#specialProvisionId"; + public final static IRI p_specialProvisionId = IRI.create(s_p_specialProvisionId); + /** + * This is additional chemical name(s) required for some proper shipping names. When added the technical must be shown in parentheses immediately following the proper shipping name. + * + */ + public final static String s_p_technicalName = "https://onerecord.iata.org/ProductDg#technicalName"; + public final static IRI p_technicalName = IRI.create(s_p_technicalName); + /** + * Reference identifying the United Nations Dangerous Goods serial number assigned within the UN to substances and articles contained in a list of the dangerous goods most commonly carried. e.g. 1189 - Ethylene glycol monomethyl ether acetate + * + */ + public final static String s_p_unNumber = "https://onerecord.iata.org/ProductDg#unNumber"; + public final static IRI p_unNumber = IRI.create(s_p_unNumber); + /** + * Amount + * + */ + public final static String s_p_amount = "https://onerecord.iata.org/Ranges#amount"; + public final static IRI p_amount = IRI.create(s_p_amount); + /** + * Maximum quantity + * + */ + public final static String s_p_maximumQuantity = "https://onerecord.iata.org/Ranges#maximumQuantity"; + public final static IRI p_maximumQuantity = IRI.create(s_p_maximumQuantity); + /** + * Minimum quantity + * + */ + public final static String s_p_minimumQuantity = "https://onerecord.iata.org/Ranges#minimumQuantity"; + public final static IRI p_minimumQuantity = IRI.create(s_p_minimumQuantity); + /** + * Rate class code e.g. Q + * + */ + public final static String s_p_rateClassCode = "https://onerecord.iata.org/Ranges#rateClassCode"; + public final static IRI p_rateClassCode = IRI.create(s_p_rateClassCode); + /** + * rating type - list uldRatingType + * + */ + public final static String s_p_ratingType = "https://onerecord.iata.org/Ranges#ratingType"; + public final static IRI p_ratingType = IRI.create(s_p_ratingType); + /** + * Specific commodity rates linked to commodity + * + */ + public final static String s_p_scr = "https://onerecord.iata.org/Ranges#scr"; + public final static IRI p_scr = IRI.create(s_p_scr); + /** + * Specific commodity code linked to commodity + * + */ + public final static String s_p_unitBasis = "https://onerecord.iata.org/Ranges#unitBasis"; + public final static IRI p_unitBasis = IRI.create(s_p_unitBasis); + /** + * Code of the charge e.g. MY, SC, etc. + * + */ + public final static String s_p_chargeCode = "https://onerecord.iata.org/Ratings#chargeCode"; + public final static IRI p_chargeCode = IRI.create(s_p_chargeCode); + /** + * Description of the charge e.g. Airfreight, fuel, etc. + * + */ + public final static String s_p_chargeDescription = "https://onerecord.iata.org/Ratings#chargeDescription"; + public final static IRI p_chargeDescription = IRI.create(s_p_chargeDescription); + /** + * Indicates if charge is prepaid or collect (S, P) + * + */ + public final static String s_p_chargePaymentType = "https://onerecord.iata.org/Ratings#chargePaymentType"; + public final static IRI p_chargePaymentType = IRI.create(s_p_chargePaymentType); + /** + * Type of charge e.g. Freight, Surcharges, etc. + * + */ + public final static String s_p_chargeType = "https://onerecord.iata.org/Ratings#chargeType"; + public final static IRI p_chargeType = IRI.create(s_p_chargeType); + /** + * Specification of the price e.g. Street, Group, Spot, etc. + * + */ + public final static String s_p_priceSpecification = "https://onerecord.iata.org/Ratings#priceSpecification"; + public final static IRI p_priceSpecification = IRI.create(s_p_priceSpecification); + /** + * Reference of price specifications + * + */ + public final static String s_p_priceSpecificationRef = "https://onerecord.iata.org/Ratings#priceSpecificationRef"; + public final static IRI p_priceSpecificationRef = IRI.create(s_p_priceSpecificationRef); + /** + * IATA 3-letter code of the rate combination point + * + */ + public final static String s_p_rcp = "https://onerecord.iata.org/Ratings#rcp"; + public final static IRI p_rcp = IRI.create(s_p_rcp); + /** + * Subtotal of the charge + * + */ + public final static String s_p_subTotal = "https://onerecord.iata.org/Ratings#subTotal"; + public final static IRI p_subTotal = IRI.create(s_p_subTotal); + /** + * Expiry date 4 digits month/year + * + */ + public final static String s_p_expiryDate_A = "https://onerecord.iata.org/RegulatedEntity#expiryDate"; + public final static IRI p_expiryDate_A = IRI.create(s_p_expiryDate_A); + /** + * Party type - e.g. RA - Regulated Agent, KC - Known Consignor, AO - Aircraft Operator, RC - Regulated Carrier + * + */ + public final static String s_p_regulatedEntityCategory = "https://onerecord.iata.org/RegulatedEntity#regulatedEntityCategory"; + public final static IRI p_regulatedEntityCategory = IRI.create(s_p_regulatedEntityCategory); + /** + * Reference to the Allotment as per the contracts between forwarders and carriers + * + */ + public final static String s_p_allotment_A = "https://onerecord.iata.org/Request#allotment"; + public final static IRI p_allotment_A = IRI.create(s_p_allotment_A); + /** + * Identification of the request type: Quote or Booking + * + */ + public final static String s_p_requestType_A = "https://onerecord.iata.org/Request#requestType"; + public final static IRI p_requestType_A = IRI.create(s_p_requestType_A); + /** + * Indicate the security state of the shipment, screened or not + * + */ + public final static String s_p_shipmentSecurityStatus_A_A_A = "https://onerecord.iata.org/Request#shipmentSecurityStatus"; + public final static IRI p_shipmentSecurityStatus_A_A_A = IRI.create(s_p_shipmentSecurityStatus_A_A_A); + /** + * Aircraft possibility code + * + */ + public final static String s_p_aircraftPossibilityCode = "https://onerecord.iata.org/Routing#aircraftPossibilityCode"; + public final static IRI p_aircraftPossibilityCode = IRI.create(s_p_aircraftPossibilityCode); + /** + * Latest Arrival date time (requested or proposed) + * + */ + public final static String s_p_latestArrivalDateTime = "https://onerecord.iata.org/Routing#latestArrivalDateTime"; + public final static IRI p_latestArrivalDateTime = IRI.create(s_p_latestArrivalDateTime); + /** + * Maximum number of connections of the transport movement (requested or proposed) + * + */ + public final static String s_p_maxConnections = "https://onerecord.iata.org/Routing#maxConnections"; + public final static IRI p_maxConnections = IRI.create(s_p_maxConnections); + /** + * Indicates interlining (requested or proposed) + * + */ + public final static String s_p_onlineInd = "https://onerecord.iata.org/Routing#onlineInd"; + public final static IRI p_onlineInd = IRI.create(s_p_onlineInd); + /** + * Indicates if RFS (Road Feeder Services) is included (requested or proposed) + * + */ + public final static String s_p_rfsInd = "https://onerecord.iata.org/Routing#rfsInd"; + public final static IRI p_rfsInd = IRI.create(s_p_rfsInd); + /** + * arliest acceptance date time (requested or proposed) + * + */ + public final static String s_p_earliestAcceptanceTime_A = "https://onerecord.iata.org/Schedule#earliestAcceptanceTime"; + public final static IRI p_earliestAcceptanceTime_A = IRI.create(s_p_earliestAcceptanceTime_A); + /** + * Latest Acceptance time as per CargoIQ definition (requested, proposed or actual) + * + */ + public final static String s_p_latestAcceptanceTime_A_A = "https://onerecord.iata.org/Schedule#latestAcceptanceTime"; + public final static IRI p_latestAcceptanceTime_A_A = IRI.create(s_p_latestAcceptanceTime_A_A); + /** + * Time of availability of the shipment as per CargoIQ definition + * + */ + public final static String s_p_timeOfAvailability_A_A = "https://onerecord.iata.org/Schedule#timeOfAvailability"; + public final static IRI p_timeOfAvailability_A_A = IRI.create(s_p_timeOfAvailability_A_A); + /** + * Total transit time as per CargoIQ definition + * + */ + public final static String s_p_totalTransitTime_A_A = "https://onerecord.iata.org/Schedule#totalTransitTime"; + public final static IRI p_totalTransitTime_A_A = IRI.create(s_p_totalTransitTime_A_A); + /** + * Any additional information that may be required by an ICAO Member State + * + */ + public final static String s_p_additionalSecurityInformation = "https://onerecord.iata.org/SecurityDeclaration#additionalSecurityInformation"; + public final static IRI p_additionalSecurityInformation = IRI.create(s_p_additionalSecurityInformation); + /** + * Exemption code - e.g. BIOM- Bio-Medical Samples + * + */ + public final static String s_p_groundsForExemption = "https://onerecord.iata.org/SecurityDeclaration#groundsForExemption"; + public final static IRI p_groundsForExemption = IRI.create(s_p_groundsForExemption); + /** + * Date and time when the security status was issued + * + */ + public final static String s_p_issuedOn = "https://onerecord.iata.org/SecurityDeclaration#issuedOn"; + public final static IRI p_issuedOn = IRI.create(s_p_issuedOn); + /** + * Other methods used to secure the cargo + * + */ + public final static String s_p_otherScreeningMethods = "https://onerecord.iata.org/SecurityDeclaration#otherScreeningMethods"; + public final static IRI p_otherScreeningMethods = IRI.create(s_p_otherScreeningMethods); + /** + * Screening methods which have been used to secure the cargo - e.g. EDS- Explosive Detection System + * + */ + public final static String s_p_screeningMethod = "https://onerecord.iata.org/SecurityDeclaration#screeningMethod"; + public final static IRI p_screeningMethod = IRI.create(s_p_screeningMethod); + /** + * Security status indicator (CXML 1.103) - e.g. SPX- Cargo Secure for Passenger and All-Cargo Aircraft + * + */ + public final static String s_p_securityStatus_A = "https://onerecord.iata.org/SecurityDeclaration#securityStatus"; + public final static IRI p_securityStatus_A = IRI.create(s_p_securityStatus_A); + /** + * Natural language description of the sensor + * + */ + public final static String s_p_sensorDescription = "https://onerecord.iata.org/Sensor#sensorDescription"; + public final static IRI p_sensorDescription = IRI.create(s_p_sensorDescription); + /** + * Name of the sensor defined by the sensor's manufacturer + * + */ + public final static String s_p_sensorName = "https://onerecord.iata.org/Sensor#sensorName"; + public final static IRI p_sensorName = IRI.create(s_p_sensorName); + /** + * Serial number that allows to uniquely identify the sensor + * + */ + public final static String s_p_sensorSerialNumber = "https://onerecord.iata.org/Sensor#sensorSerialNumber"; + public final static IRI p_sensorSerialNumber = IRI.create(s_p_sensorSerialNumber); + /** + * Type of sensor as described in Interactive Cargo RP + * + */ + public final static String s_p_sensorType = "https://onerecord.iata.org/Sensor#sensorType"; + public final static IRI p_sensorType = IRI.create(s_p_sensorType); + /** + * Service request code + * + */ + public final static String s_p_code_A = "https://onerecord.iata.org/ServiceRequest#code"; + public final static IRI p_code_A = IRI.create(s_p_code_A); + /** + * Service request description + * + */ + public final static String s_p_serviceRequestDescription = "https://onerecord.iata.org/ServiceRequest#serviceRequestDescription"; + public final static IRI p_serviceRequestDescription = IRI.create(s_p_serviceRequestDescription); + /** + * Service request statement text + * + */ + public final static String s_p_statementText = "https://onerecord.iata.org/ServiceRequest#statementText"; + public final static IRI p_statementText = IRI.create(s_p_statementText); + /** + * Service request statement type - e.g. Dangerous Goods, Lithium Ion Battery, Live Animal Certificate + * + */ + public final static String s_p_statementType = "https://onerecord.iata.org/ServiceRequest#statementType"; + public final static IRI p_statementType = IRI.create(s_p_statementType); + /** + * he date at which the delivery is supposed to happen. Format is YYYYMMDD. + * + */ + public final static String s_p_deliveryDate = "https://onerecord.iata.org/Shipment#deliveryDate"; + public final static IRI p_deliveryDate = IRI.create(s_p_deliveryDate); + /** + * General goods description + * + */ + public final static String s_p_goodsDescription_A = "https://onerecord.iata.org/Shipment#goodsDescription"; + public final static IRI p_goodsDescription_A = IRI.create(s_p_goodsDescription_A); + /** + * Standard codes as defined by UNCEFACT and ICC that correspond to international rules for the interpretation of the most commonly used trade terms in different countries. UNECE recommendation n. 5 Incoterms 2000. + * + */ + public final static String s_p_incoterms = "https://onerecord.iata.org/Shipment#incoterms"; + public final static IRI p_incoterms = IRI.create(s_p_incoterms); + /** + * payment of Other Charges will be made at origin (prepaid) or at destination (collect) + * + */ + public final static String s_p_otherChargesIndicator = "https://onerecord.iata.org/Shipment#otherChargesIndicator"; + public final static IRI p_otherChargesIndicator = IRI.create(s_p_otherChargesIndicator); + /** + * Total Piece Count + * + */ + public final static String s_p_totalPieceCount = "https://onerecord.iata.org/Shipment#totalPieceCount"; + public final static IRI p_totalPieceCount = IRI.create(s_p_totalPieceCount); + /** + * Total SLAC of all piece groups + * + */ + public final static String s_p_totalSLAC = "https://onerecord.iata.org/Shipment#totalSLAC"; + public final static IRI p_totalSLAC = IRI.create(s_p_totalSLAC); + /** + * payment for the Weight/Valuation will be made at origin (prepaid) or at destination (collect) + * + */ + public final static String s_p_weightValuationIndicator = "https://onerecord.iata.org/Shipment#weightValuationIndicator"; + public final static IRI p_weightValuationIndicator = IRI.create(s_p_weightValuationIndicator); + /** + * Special handling code following IATA standards. Refer CXML1.16, e.g. PEP - Fruits and Vegetables + * + */ + public final static String s_p_code_A_A = "https://onerecord.iata.org/SpecialHandling#code"; + public final static IRI p_code_A_A = IRI.create(s_p_code_A_A); + /** + * Special handling text + * + */ + public final static String s_p_handlingText = "https://onerecord.iata.org/SpecialHandling#handlingText"; + public final static IRI p_handlingText = IRI.create(s_p_handlingText); + /** + * Model or make of the vehicle (e.g. A330-300) + * + */ + public final static String s_p_vehicleModel = "https://onerecord.iata.org/TransportMeans#vehicleModel"; + public final static IRI p_vehicleModel = IRI.create(s_p_vehicleModel); + /** + * Vehicle identification - e.g. aircraft registration number + * + */ + public final static String s_p_vehicleRegistration = "https://onerecord.iata.org/TransportMeans#vehicleRegistration"; + public final static IRI p_vehicleRegistration = IRI.create(s_p_vehicleRegistration); + /** + * Size of the vehicle - free text + * + */ + public final static String s_p_vehicleSize = "https://onerecord.iata.org/TransportMeans#vehicleSize"; + public final static IRI p_vehicleSize = IRI.create(s_p_vehicleSize); + /** + * Vehicle or container type. Refer UNECE28, e.g. 4.00.0 - Aircraft, type unknown + * + */ + public final static String s_p_vehicleType = "https://onerecord.iata.org/TransportMeans#vehicleType"; + public final static IRI p_vehicleType = IRI.create(s_p_vehicleType); + /** + * Arrival date and time. Actual or planned depends on the movementType property + * + * Included in MovementTimes in v1.1 + * + */ + public final static String s_p_arrivalDate = "https://onerecord.iata.org/TransportMovement#arrivalDate"; + public final static IRI p_arrivalDate = IRI.create(s_p_arrivalDate); + /** + * Departure date and time. Actual or planned depends on the movementType property + * + * Included in MovementTimes in v1.1 + * + */ + public final static String s_p_departureDate = "https://onerecord.iata.org/TransportMovement#departureDate"; + public final static IRI p_departureDate = IRI.create(s_p_departureDate); + /** + * e.g. Kerosene, Diesel, SAF, Electricity [renewable], Electricity [non-renewable] + * + */ + public final static String s_p_fuelType = "https://onerecord.iata.org/TransportMovement#fuelType"; + public final static IRI p_fuelType = IRI.create(s_p_fuelType); + /** + * Mode Code + * + */ + public final static String s_p_modeCode = "https://onerecord.iata.org/TransportMovement#modeCode"; + public final static IRI p_modeCode = IRI.create(s_p_modeCode); + /** + * Pre-Carriage, Main-Carriage or On-Carriage + * + */ + public final static String s_p_modeQualifier = "https://onerecord.iata.org/TransportMovement#modeQualifier"; + public final static IRI p_modeQualifier = IRI.create(s_p_modeQualifier); + /** + * Refers to the type of movement: Actual or planned + * + */ + public final static String s_p_movementType = "https://onerecord.iata.org/TransportMovement#movementType"; + public final static IRI p_movementType = IRI.create(s_p_movementType); + /** + * Seal identifier + * + */ + public final static String s_p_seal = "https://onerecord.iata.org/TransportMovement#seal"; + public final static IRI p_seal = IRI.create(s_p_seal); + /** + * Identification of the segment level in the movement of the pieces: contractual, flight leg, truck movement, etc. + * + */ + public final static String s_p_segmentLevel = "https://onerecord.iata.org/TransportMovement#segmentLevel"; + public final static IRI p_segmentLevel = IRI.create(s_p_segmentLevel); + /** + * Airline flight number, or rail / truck / maritime line id + * + */ + public final static String s_p_transportIdentifier = "https://onerecord.iata.org/TransportMovement#transportIdentifier"; + public final static IRI p_transportIdentifier = IRI.create(s_p_transportIdentifier); + /** + * Free text field to be used for additional details regarding unplanned stops such as technical stops. + * + */ + public final static String s_p_unplannedStop = "https://onerecord.iata.org/TransportMovement#unplannedStop"; + public final static IRI p_unplannedStop = IRI.create(s_p_unplannedStop); + /** + * US / ATA Unit Load Device type code e.g. M2 + * + */ + public final static String s_p_ataDesignator = "https://onerecord.iata.org/ULD#ataDesignator"; + public final static IRI p_ataDesignator = IRI.create(s_p_ataDesignator); + /** + * Indicates if the ULD is Damaged + * + */ + public final static String s_p_damageFlag = "https://onerecord.iata.org/ULD#damageFlag"; + public final static IRI p_damageFlag = IRI.create(s_p_damageFlag); + /** + * Contains three designator of demurrage code, refer to RP 1654 (BCC, HHH, XXX, ZZZ) + * + */ + public final static String s_p_demurrageCode = "https://onerecord.iata.org/ULD#demurrageCode"; + public final static IRI p_demurrageCode = IRI.create(s_p_demurrageCode); + /** + * ULD height or loading limitation code. Refer CXML Code List 1.47, e.g. R - ULD Height above 244 centimetres + * + */ + public final static String s_p_loadingIndicator = "https://onerecord.iata.org/ULD#loadingIndicator"; + public final static IRI p_loadingIndicator = IRI.create(s_p_loadingIndicator); + /** + * Number of doors + * + */ + public final static String s_p_nbDoor = "https://onerecord.iata.org/ULD#nbDoor"; + public final static IRI p_nbDoor = IRI.create(s_p_nbDoor); + /** + * Number of fittings + * + */ + public final static String s_p_nbFittings = "https://onerecord.iata.org/ULD#nbFittings"; + public final static IRI p_nbFittings = IRI.create(s_p_nbFittings); + /** + * Number of nets + * + */ + public final static String s_p_nbNets = "https://onerecord.iata.org/ULD#nbNets"; + public final static IRI p_nbNets = IRI.create(s_p_nbNets); + /** + * Number of straps + * + */ + public final static String s_p_nbStraps = "https://onerecord.iata.org/ULD#nbStraps"; + public final static IRI p_nbStraps = IRI.create(s_p_nbStraps); + /** + * Contains two designator codes of ODLN or Operational Damage Limit Notices. ODLN code is used to define type of damage after visually check the serviceability of ULDs section 7, Standard Specifications 40/3 or 40/4 in ULD Regulations + * + */ + public final static String s_p_odlnCode = "https://onerecord.iata.org/ULD#odlnCode"; + public final static IRI p_odlnCode = IRI.create(s_p_odlnCode); + /** + * Owner code of the ULD in aa, an or na format - owner can be an airline or leasing company + * + */ + public final static String s_p_ownerCode = "https://onerecord.iata.org/ULD#ownerCode"; + public final static IRI p_ownerCode = IRI.create(s_p_ownerCode); + /** + * ULD serial number + * + */ + public final static String s_p_serialNumber = "https://onerecord.iata.org/ULD#serialNumber"; + public final static IRI p_serialNumber = IRI.create(s_p_serialNumber); + /** + * Designator of serviceablity condition e.g. SER or DAM + * + */ + public final static String s_p_serviceabilityCode = "https://onerecord.iata.org/ULD#serviceabilityCode"; + public final static IRI p_serviceabilityCode = IRI.create(s_p_serviceabilityCode); + /** + * Remarks or Supplement Information + * + */ + public final static String s_p_uldRemarks = "https://onerecord.iata.org/ULD#uldRemarks"; + public final static IRI p_uldRemarks = IRI.create(s_p_uldRemarks); + /** + * ULD seal number if applicable + * + */ + public final static String s_p_uldSealNumber = "https://onerecord.iata.org/ULD#uldSealNumber"; + public final static IRI p_uldSealNumber = IRI.create(s_p_uldSealNumber); + /** + * Standard Unit Load Device type code e.g. AKE - Certified Container - Contoured + * + */ + public final static String s_p_uldTypeCode = "https://onerecord.iata.org/ULD#uldTypeCode"; + public final static IRI p_uldTypeCode = IRI.create(s_p_uldTypeCode); + /** + * Unit of measurement/ unit of account e.g. CMT - Centimetre, LTR - Litre (1 DM3), KGM - Kilogram, CHF - Swiss Franc + * + */ + public final static String s_p_unit = "https://onerecord.iata.org/Value#unit"; + public final static IRI p_unit = IRI.create(s_p_unit); + /** + * Value + * + */ + public final static String s_p_value_A = "https://onerecord.iata.org/Value#value"; + public final static IRI p_value_A = IRI.create(s_p_value_A); + /** + * Indicates the details of accounting information. Free text e.g. PAYMENT BY CERTIFIED CHEQUE etc. + * + */ + public final static String s_p_accountingInformation = "https://onerecord.iata.org/Waybill#accountingInformation"; + public final static IRI p_accountingInformation = IRI.create(s_p_accountingInformation); + /** + * Charges levied at destination accruing to the last carrier, in destination currency + * + */ + public final static String s_p_destinationCharges = "https://onerecord.iata.org/Waybill#destinationCharges"; + public final static IRI p_destinationCharges = IRI.create(s_p_destinationCharges); + /** + * ISO 3-letter currency code of destination + * + */ + public final static String s_p_destinationCurrencyCode = "https://onerecord.iata.org/Waybill#destinationCurrencyCode"; + public final static IRI p_destinationCurrencyCode = IRI.create(s_p_destinationCurrencyCode); + /** + * Conversion rate applied + * + */ + public final static String s_p_destinationCurrencyRate = "https://onerecord.iata.org/Waybill#destinationCurrencyRate"; + public final static IRI p_destinationCurrencyRate = IRI.create(s_p_destinationCurrencyRate); + /** + * The shipper or its Agent may enter the appropriate optional shipping + * + */ + public final static String s_p_optionalShippingInfo = "https://onerecord.iata.org/Waybill#optionalShippingInfo"; + public final static IRI p_optionalShippingInfo = IRI.create(s_p_optionalShippingInfo); + /** + * Optional shipping reference number if any + * + */ + public final static String s_p_optionalShippingRefNo = "https://onerecord.iata.org/Waybill#optionalShippingRefNo"; + public final static IRI p_optionalShippingRefNo = IRI.create(s_p_optionalShippingRefNo); + /** + * House or Master Waybill unique identifier + * + */ + public final static String s_p_waybillNumber_A_A_A = "https://onerecord.iata.org/Waybill#waybillNumber"; + public final static IRI p_waybillNumber_A_A_A = IRI.create(s_p_waybillNumber_A_A_A); + /** + * Prefix used for the Waybill Number + * + */ + public final static String s_p_waybillPrefix = "https://onerecord.iata.org/Waybill#waybillPrefix"; + public final static IRI p_waybillPrefix = IRI.create(s_p_waybillPrefix); + /** + * Type of the Waybill: House, Direct or Master + * + */ + public final static String s_p_waybillType = "https://onerecord.iata.org/Waybill#waybillType"; + public final static IRI p_waybillType = IRI.create(s_p_waybillType); + public final static String s_p_description = "http://purl.org/dc/elements/1.1/description"; + public final static IRI p_description = IRI.create(s_p_description); + public final static String s_p_title = "http://purl.org/dc/elements/1.1/title"; + public final static IRI p_title = IRI.create(s_p_title); + public final static String s_p__abstract = "http://purl.org/dc/terms/abstract"; + public final static IRI p__abstract = IRI.create(s_p__abstract); + public final static String s_p_modified = "http://purl.org/dc/terms/modified"; + public final static IRI p_modified = IRI.create(s_p_modified); + public final static String s_p_title_A = "http://purl.org/dc/terms/title"; + public final static IRI p_title_A = IRI.create(s_p_title_A); + public final static String s_p_comment = "http://www.w3.org/2000/01/rdf-schema#comment"; + public final static IRI p_comment = IRI.create(s_p_comment); + public final static String s_p_label = "http://www.w3.org/2000/01/rdf-schema#label"; + public final static IRI p_label = IRI.create(s_p_label); + public final static String s_p_deprecated = "http://www.w3.org/2002/07/owl#deprecated"; + public final static IRI p_deprecated = IRI.create(s_p_deprecated); + public final static String s_p_maxCardinality = "http://www.w3.org/2002/07/owl#maxCardinality"; + public final static IRI p_maxCardinality = IRI.create(s_p_maxCardinality); + public final static String s_p_minCardinality = "http://www.w3.org/2002/07/owl#minCardinality"; + public final static IRI p_minCardinality = IRI.create(s_p_minCardinality); + public final static String s_p_versionInfo = "http://www.w3.org/2002/07/owl#versionInfo"; + public final static IRI p_versionInfo = IRI.create(s_p_versionInfo); + +} diff --git a/src/main/java/org/iata/cargo/codelists/ContactTypeCode.java b/src/main/java/org/iata/cargo/codelists/ContactTypeCode.java new file mode 100755 index 0000000..dd1fd8a --- /dev/null +++ b/src/main/java/org/iata/cargo/codelists/ContactTypeCode.java @@ -0,0 +1,30 @@ +package org.iata.cargo.codelists; + +/** + * Valid codes listed as enum - note that the {@link #code()} needs to be used to access the ONE Record code value. + * + * NOTE: This is not generated from the Ontology but hand-crafted! + * NOTE: See https://github.com/IATA-Cargo/ONE-Record/issues/92 for "Standard values of enumerations" + */ +public enum ContactTypeCode { + + EMAIL("Email address"), + FAX("Fax number"), + PHONE("Phone number"), + TELEX("Telex"), + WEB("Website"), + ALTERNATE_EMAIL("Alternate email address"), + ALTERNATE_PHONE("Alternate phone number"), + ; + + private final String code; + + private ContactTypeCode(String code) { + this.code = code; + } + + public String code() { + return code; + } + +} diff --git a/src/main/java/org/iata/cargo/codelists/MovementIndicatorCode.java b/src/main/java/org/iata/cargo/codelists/MovementIndicatorCode.java new file mode 100755 index 0000000..00b64f7 --- /dev/null +++ b/src/main/java/org/iata/cargo/codelists/MovementIndicatorCode.java @@ -0,0 +1,40 @@ +package org.iata.cargo.codelists; + +/** + * Valid codes listed as enum - note that the {@link #code()} needs to be used to access the ONE Record code value. + * + * NOTE: This is not generated from the Ontology but hand-crafted! + * NOTE: See https://github.com/IATA-Cargo/ONE-Record/issues/92 for "Standard values of enumerations" + */ +public enum MovementIndicatorCode { + + ACTUALARRIVAL("AA"), + ACTUALDEPARTURE("AD"), + ESTIMATEDARRIVAL("EA"), + ESTIMATEDDEPARTURE("ED"), + DELAYED("DL"), + NEXTINFORMATION("NI"), + SCHEDULEDARRIVAL("SA"), + SCHEDULEDDEPARTURE("SD"), + CANCELLATION("CN"), + /** Note: subject to approval by IATA Cargo Service Conference (CSC) */ + DIVERSION("DV"), + /** Note: subject to approval by IATA Cargo Service Conference (CSC) */ + DOCARRIVAL("DA"), + /** Note: subject to approval by IATA Cargo Service Conference (CSC) */ + FORCERETURN("FR"), + /** Note: subject to approval by IATA Cargo Service Conference (CSC) */ + RETURNTORAMP("RR"), + ; + + private final String code; + + private MovementIndicatorCode(String code) { + this.code = code; + } + + public String code() { + return code; + } + +} diff --git a/src/main/java/org/iata/cargo/codelists/PartyRoleCode.java b/src/main/java/org/iata/cargo/codelists/PartyRoleCode.java new file mode 100755 index 0000000..b827dd1 --- /dev/null +++ b/src/main/java/org/iata/cargo/codelists/PartyRoleCode.java @@ -0,0 +1,40 @@ +package org.iata.cargo.codelists; + +/** + * Valid codes listed as enum - note that the {@link #code()} needs to be used to access the ONE Record code value. + * + * NOTE: This is not generated from the Ontology but hand-crafted! + * NOTE: See https://github.com/IATA-Cargo/ONE-Record/issues/92 for "Standard values of enumerations" + */ +public enum PartyRoleCode { + + AGT("Agent"), + AIRLINE("Airline"), + AIRPORT("Airport Authority"), + BROKER("Broker"), + COMMISSIONABLEAGENT("Commissionable Agent"), + CNE("Consignee"), + CUSTOMS("Customs"), + DECLARANT("Declarant"), + DECONSOLIDATOR("Deconsolidator"), + FFW("Freight Forwarder"), + GHA("Ground Handling Agent"), + NOM("Nominated freight company"), + NFY("Notify Party"), + OPI("Other Participant Identifier"), + POSTOFFICE("Post Office"), + SHP("Shipper"), + TRUCKER("Trucker"), + ; + + private final String code; + + private PartyRoleCode(String code) { + this.code = code; + } + + public String code() { + return code; + } + +} diff --git a/src/main/java/org/iata/cargo/codelists/WaybillTypeCode.java b/src/main/java/org/iata/cargo/codelists/WaybillTypeCode.java new file mode 100755 index 0000000..d6d4013 --- /dev/null +++ b/src/main/java/org/iata/cargo/codelists/WaybillTypeCode.java @@ -0,0 +1,26 @@ +package org.iata.cargo.codelists; + +/** + * Valid codes listed as enum - note that the {@link #code()} needs to be used to access the ONE Record code value. + * + * NOTE: This is not generated from the Ontology but hand-crafted! + * NOTE: See https://github.com/IATA-Cargo/ONE-Record/issues/92 for "Standard values of enumerations" + */ +public enum WaybillTypeCode { + + MASTER("Master"), + DIRECT("Direct"), + HOUSE("House"), + ; + + private final String code; + + private WaybillTypeCode(String code) { + this.code = code; + } + + public String code() { + return code; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Address.java b/src/main/java/org/iata/cargo/model/Address.java new file mode 100755 index 0000000..2286780 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Address.java @@ -0,0 +1,267 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Address details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Address) +public class Address + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Address) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Country details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_country) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_country) + protected Country country; + /** + * Address identifier using special coding systems e.g. US CBP FIRMS code + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_addressCode) + @JsonProperty(Vocabulary.s_p_addressCode) + protected Set addressCode; + /** + * UN/LOCODE city code (5 letter) or IATA city code (3 letter) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_cityCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_cityCode) + protected String cityCode; + /** + * If no CityCode provided, full name of the city + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_cityName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_cityName) + protected String cityName; + /** + * Post Office box number / code + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_poBox) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_poBox) + protected String poBox; + /** + * Postal / ZIP code + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_postalCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_postalCode) + protected String postalCode; + /** + * Region/ State / Department. Refer ISO 3166-2 + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_regionCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_regionCode) + protected String regionCode; + /** + * If no StateCode provided, full name of the region / state / province / canton + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_regionName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_regionName) + protected String regionName; + /** + * Street address including street name, street number, building number, apartment etc + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_street) + @JsonProperty(Vocabulary.s_p_street) + protected Set street; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Address {"+ name)+"<")+ id)+">")+"}"); + } + + public void setCountry(Country country) { + this.country = country; + } + + public Country getCountry() { + return country; + } + + public void setAddressCode(Set addressCode) { + this.addressCode = addressCode; + } + + public Set getAddressCode() { + return addressCode; + } + + public void setCityCode(String cityCode) { + this.cityCode = cityCode; + } + + public String getCityCode() { + return cityCode; + } + + public void setCityName(String cityName) { + this.cityName = cityName; + } + + public String getCityName() { + return cityName; + } + + public void setPoBox(String poBox) { + this.poBox = poBox; + } + + public String getPoBox() { + return poBox; + } + + public void setPostalCode(String postalCode) { + this.postalCode = postalCode; + } + + public String getPostalCode() { + return postalCode; + } + + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + public String getRegionCode() { + return regionCode; + } + + public void setRegionName(String regionName) { + this.regionName = regionName; + } + + public String getRegionName() { + return regionName; + } + + public void setStreet(Set street) { + this.street = street; + } + + public Set getStreet() { + return street; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } +} diff --git a/src/main/java/org/iata/cargo/model/Booking.java b/src/main/java/org/iata/cargo/model/Booking.java new file mode 100755 index 0000000..0fe75e5 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Booking.java @@ -0,0 +1,405 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Booking details - Deprecated, BookingOption should be used instead + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Booking) +@Deprecated +public class Booking + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Booking) + protected Set types; + + /** + * Carrier details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_carrier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_carrier) + protected Set carrier; + /** + * Reference to the Carrier products included in the offer + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_carrierProductInfo) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_carrierProductInfo) + protected CarrierProduct carrierProductInfo; + /** + * Consignee details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_consignee) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_consignee) + protected Company consignee; + /** + * Freight Forwarder details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_freightForwarder) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_freightForwarder) + protected Set freightForwarder; + /** + * Other parties to be notified of the booking evolution + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_notifyParty) + @JsonProperty(Vocabulary.s_p_notifyParty) + protected Set notifyParty; + /** + * Price of the Booking (if different from the offer) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_price) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_price) + protected Price price; + /** + * Reference to the Request + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_requestRef) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_requestRef) + protected Request requestRef; + /** + * Routing details of the offer, to be compared with routing preferences of the quote request + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_routing) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_routing) + protected Routing routing; + /** + * Details of the shipement that is to be shipped + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_shipmentDetails) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipmentDetails) + protected Shipment shipmentDetails; + /** + * Shipper information + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_shipper) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipper) + protected Company shipper; + /** + * Transport segment linked to the offer, including the Departure and Arrival locations + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMovement) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportMovement) + protected TransportSegment transportMovement; + /** + * House or Master Waybill unique identifier + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_waybillNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_waybillNumber) + protected Waybill waybillNumber; + /** + * Status of the Booking with regards to the step in the Quote and Book process: Quoted, Booked + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_bookingStatus) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral", max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingStatus) + protected String bookingStatus; + /** + * Latest Acceptance time as per CargoIQ definition + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_latestAcceptanceTime) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_latestAcceptanceTime) + protected Date latestAcceptanceTime; + /** + * Indicates if the offer is a perfect match to the quote request (boolean) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_requestMatchInd) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_requestMatchInd) + protected Boolean requestMatchInd; + /** + * Indicate the secruty state of the shipment, screened or not + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_shipmentSecurityStatus) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral", max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipmentSecurityStatus) + protected String shipmentSecurityStatus; + /** + * Time of availability of the shipment as per CargoIQ definition + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_timeOfAvailability) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_timeOfAvailability) + protected Date timeOfAvailability; + /** + * Total transit time as per CargoIQ definition + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_totalTransitTime) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral", max = 1) + }) + @JsonProperty(Vocabulary.s_p_totalTransitTime) + protected String totalTransitTime; + + @Deprecated + public void setCarrier(Set carrier) { + this.carrier = carrier; + } + + @Deprecated + public Set getCarrier() { + return carrier; + } + + @Deprecated + public void setCarrierProductInfo(CarrierProduct carrierProductInfo) { + this.carrierProductInfo = carrierProductInfo; + } + + @Deprecated + public CarrierProduct getCarrierProductInfo() { + return carrierProductInfo; + } + + @Deprecated + public void setConsignee(Company consignee) { + this.consignee = consignee; + } + + @Deprecated + public Company getConsignee() { + return consignee; + } + + @Deprecated + public void setFreightForwarder(Set freightForwarder) { + this.freightForwarder = freightForwarder; + } + + @Deprecated + public Set getFreightForwarder() { + return freightForwarder; + } + + @Deprecated + public void setNotifyParty(Set notifyParty) { + this.notifyParty = notifyParty; + } + + @Deprecated + public Set getNotifyParty() { + return notifyParty; + } + + @Deprecated + public void setPrice(Price price) { + this.price = price; + } + + @Deprecated + public Price getPrice() { + return price; + } + + @Deprecated + public void setRequestRef(Request requestRef) { + this.requestRef = requestRef; + } + + @Deprecated + public Request getRequestRef() { + return requestRef; + } + + @Deprecated + public void setRouting(Routing routing) { + this.routing = routing; + } + + @Deprecated + public Routing getRouting() { + return routing; + } + + @Deprecated + public void setShipmentDetails(Shipment shipmentDetails) { + this.shipmentDetails = shipmentDetails; + } + + @Deprecated + public Shipment getShipmentDetails() { + return shipmentDetails; + } + + @Deprecated + public void setShipper(Company shipper) { + this.shipper = shipper; + } + + @Deprecated + public Company getShipper() { + return shipper; + } + + @Deprecated + public void setTransportMovement(TransportSegment transportMovement) { + this.transportMovement = transportMovement; + } + + @Deprecated + public TransportSegment getTransportMovement() { + return transportMovement; + } + + @Deprecated + public void setWaybillNumber(Waybill waybillNumber) { + this.waybillNumber = waybillNumber; + } + + @Deprecated + public Waybill getWaybillNumber() { + return waybillNumber; + } + + @Deprecated + public void setBookingStatus(String bookingStatus) { + this.bookingStatus = bookingStatus; + } + + @Deprecated + public String getBookingStatus() { + return bookingStatus; + } + + @Deprecated + public void setLatestAcceptanceTime(Date latestAcceptanceTime) { + this.latestAcceptanceTime = latestAcceptanceTime; + } + + @Deprecated + public Date getLatestAcceptanceTime() { + return latestAcceptanceTime; + } + + @Deprecated + public void setRequestMatchInd(Boolean requestMatchInd) { + this.requestMatchInd = requestMatchInd; + } + + @Deprecated + public Boolean getRequestMatchInd() { + return requestMatchInd; + } + + @Deprecated + public void setShipmentSecurityStatus(String shipmentSecurityStatus) { + this.shipmentSecurityStatus = shipmentSecurityStatus; + } + + @Deprecated + public String getShipmentSecurityStatus() { + return shipmentSecurityStatus; + } + + @Deprecated + public void setTimeOfAvailability(Date timeOfAvailability) { + this.timeOfAvailability = timeOfAvailability; + } + + @Deprecated + public Date getTimeOfAvailability() { + return timeOfAvailability; + } + + @Deprecated + public void setTotalTransitTime(String totalTransitTime) { + this.totalTransitTime = totalTransitTime; + } + + @Deprecated + public String getTotalTransitTime() { + return totalTransitTime; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/BookingOption.java b/src/main/java/org/iata/cargo/model/BookingOption.java new file mode 100755 index 0000000..737cb79 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/BookingOption.java @@ -0,0 +1,439 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Booking details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_BookingOption) +public class BookingOption + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_BookingOption) + protected Set types; + + /** + * Booking Segment of the Booking Option + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingSegment) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingSegment) + protected BookingSegment bookingSegment; + /** + * booking times details of the Booking Option (proposed or actual) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingTimes) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingTimes) + protected BookingTimes bookingTimes; + /** + * Carrier details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_carrier_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_carrier_A) + protected Company carrier; + /** + * Reference to the Carrier products included in the offer + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_carrierProductInfo_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_carrierProductInfo_A) + protected CarrierProduct carrierProductInfo; + /** + * Consignee details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_consignee_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_consignee_A) + protected Set consignee; + /** + * Freight forwarder details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_freightForwarder_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_freightForwarder_A) + protected Set freightForwarder; + /** + * Other parties to be notified of the booking evolution + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_notifyParty_A) + @JsonProperty(Vocabulary.s_p_notifyParty_A) + protected Set notifyParty; + + /** + * Parties involved in the Booking Option (e.g. shipper, forwarder, ...) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_parties) + @JsonProperty(Vocabulary.s_p_parties) + protected Set parties; + /** + * Price of the Booking (if different from the offer) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_price_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_price_A) + protected Price price; + /** + * Reference to the Booking option request + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_requestRef_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_requestRef_A) + protected BookingOptionRequest requestRef; + /** + * Routing details of the offer, to be compared with routing preferences of the quote request + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_routing_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_routing_A) + protected Routing routing; + /** + * Schedule details of the Booking Option (proposed or actual) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_schedule) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_schedule) + protected Schedule schedule; + /** + * Details of the shipement that is to be shipped + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_shipmentDetails_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipmentDetails_A) + protected Shipment shipmentDetails; + /** + * Shipper details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_shipper_A) + @JsonProperty(Vocabulary.s_p_shipper_A) + protected Set shipper; + /** + * Transport segment linked to the offer, including the Departure and Arrival locations + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMovement_A) + @JsonProperty(Vocabulary.s_p_transportMovement_A) + protected Set transportMovement; + /** + * House or Master Waybill unique identifier + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_waybillNumber_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_waybillNumber_A) + protected Waybill waybillNumber; + /** + * Status of the Booking with regards to the step in the Quote and Book process: Quoted, Booked + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_bookingStatus_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingStatus_A) + protected String bookingStatus; + /** + * Starting datetime of availability of the booking option + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_offerValidFrom) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_offerValidFrom) + protected Date offerValidFrom; + /** + * Ending datetime of availability of the booking option + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_offerValidTo) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_offerValidTo) + protected Date offerValidTo; + /** + * Indicates if the offer is a perfect match to the quote request (boolean) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_requestMatchInd_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_requestMatchInd_A) + protected Boolean requestMatchInd; + /** + * Indicate the secruty state of the shipment, screened or not + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_shipmentSecurityStatus_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipmentSecurityStatus_A) + protected String shipmentSecurityStatus; + + public void setBookingSegment(BookingSegment bookingSegment) { + this.bookingSegment = bookingSegment; + } + + public BookingSegment getBookingSegment() { + return bookingSegment; + } + + public void setBookingTimes(BookingTimes bookingTimes) { + this.bookingTimes = bookingTimes; + } + + public BookingTimes getBookingTimes() { + return bookingTimes; + } + + public void setCarrier(Company carrier) { + this.carrier = carrier; + } + + public Company getCarrier() { + return carrier; + } + + public void setCarrierProductInfo(CarrierProduct carrierProductInfo) { + this.carrierProductInfo = carrierProductInfo; + } + + public CarrierProduct getCarrierProductInfo() { + return carrierProductInfo; + } + + /** + * @deprecated use {@link #getParties()} to adding a party + * @param consignee set of consignee + */ + @Deprecated + public void setConsignee(Set consignee) { + this.consignee = consignee; + } + + @Deprecated + public Set getConsignee() { + return consignee; + } + + /** + * @deprecated use {@link #getParties()} to adding a party + * @param freightForwarder set of freightForwarder + */ + @Deprecated + public void setFreightForwarder(Set freightForwarder) { + this.freightForwarder = freightForwarder; + } + + @Deprecated + public Set getFreightForwarder() { + return freightForwarder; + } + + /** + * @deprecated use {@link #getParties()} to adding a party + * @param notifyParty set of notifyParty + */ + @Deprecated + public void setNotifyParty(Set notifyParty) { + this.notifyParty = notifyParty; + } + + @Deprecated + public Set getNotifyParty() { + return notifyParty; + } + + public void setParties(Set parties) { + this.parties = parties; + } + + public Set getParties() { + return parties; + } + + public void setPrice(Price price) { + this.price = price; + } + + public Price getPrice() { + return price; + } + + public void setRequestRef(BookingOptionRequest requestRef) { + this.requestRef = requestRef; + } + + public BookingOptionRequest getRequestRef() { + return requestRef; + } + + public void setRouting(Routing routing) { + this.routing = routing; + } + + public Routing getRouting() { + return routing; + } + + @Deprecated + public void setSchedule(Schedule schedule) { + this.schedule = schedule; + } + + @Deprecated + public Schedule getSchedule() { + return schedule; + } + + public void setShipmentDetails(Shipment shipmentDetails) { + this.shipmentDetails = shipmentDetails; + } + + public Shipment getShipmentDetails() { + return shipmentDetails; + } + + /** + * @deprecated use {@link #getParties()} to adding a party + * @param shipper set of shipper + */ + @Deprecated + public void setShipper(Set shipper) { + this.shipper = shipper; + } + + @Deprecated + public Set getShipper() { + return shipper; + } + + public void setTransportMovement(Set transportMovement) { + this.transportMovement = transportMovement; + } + + public Set getTransportMovement() { + return transportMovement; + } + + public void setWaybillNumber(Waybill waybillNumber) { + this.waybillNumber = waybillNumber; + } + + public Waybill getWaybillNumber() { + return waybillNumber; + } + + public void setBookingStatus(String bookingStatus) { + this.bookingStatus = bookingStatus; + } + + public String getBookingStatus() { + return bookingStatus; + } + + public void setOfferValidFrom(Date offerValidFrom) { + this.offerValidFrom = offerValidFrom; + } + + public Date getOfferValidFrom() { + return offerValidFrom; + } + + public void setOfferValidTo(Date offerValidTo) { + this.offerValidTo = offerValidTo; + } + + public Date getOfferValidTo() { + return offerValidTo; + } + + public void setRequestMatchInd(Boolean requestMatchInd) { + this.requestMatchInd = requestMatchInd; + } + + public Boolean getRequestMatchInd() { + return requestMatchInd; + } + + public void setShipmentSecurityStatus(String shipmentSecurityStatus) { + this.shipmentSecurityStatus = shipmentSecurityStatus; + } + + public String getShipmentSecurityStatus() { + return shipmentSecurityStatus; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } +} diff --git a/src/main/java/org/iata/cargo/model/BookingOptionRequest.java b/src/main/java/org/iata/cargo/model/BookingOptionRequest.java new file mode 100755 index 0000000..88b9497 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/BookingOptionRequest.java @@ -0,0 +1,285 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Request object, refers to the Quote request or Booking request + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_BookingOptionRequest) +public class BookingOptionRequest + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_BookingOptionRequest) + protected Set types; + + /** + * The Booking Segment linked to the Booking Optio Request + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingSegment_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingSegment_A) + protected BookingSegment bookingSegment; + /** + * Parties involved if known + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_parties_A) + @JsonProperty(Vocabulary.s_p_parties_A) + protected Set parties; + /** + * Ratings preferences of the request + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_ratingsPreference) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_ratingsPreference) + protected Ratings ratingsPreference; + /** + * Routing details that are part of the request, these details will be used to determine if the offer is a perfect match + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_routingPreferences) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_routingPreferences) + protected Routing routingPreferences; + /** + * Schedule preferences of the request + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_schedulePreferences) + @JsonProperty(Vocabulary.s_p_schedulePreferences) + protected Set schedulePreferences; + /** + * Details of the shipement that is to be shipped + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_shipmentDetails_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipmentDetails_A_A) + protected Shipment shipmentDetails; + /** + * Schedule preferences of the request + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_timePreferences) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_timePreferences) + protected BookingTimes timePreferences; + /** + * Transport segment linked to the request, including the Departure and Arrival locations requested + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMovement_A_A) + @JsonProperty(Vocabulary.s_p_transportMovement_A_A) + protected Set transportMovement; + /** + * Unit preferences of the request (e.g. kg or cm) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_unitsPreference) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_unitsPreference) + protected Value unitsPreference; + /** + * Reference to the Allotment as per the contracts between forwarders and carriers + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_allotment) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_allotment) + protected String allotment; + /** + * Expected commodity for quote request purposes only. To be defined by MCD + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_expectedCommodities) + @JsonProperty(Vocabulary.s_p_expectedCommodities) + protected Set expectedCommodities; + /** + * Identification of the request type: Quote or Booking + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_requestType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_requestType) + protected String requestType; + /** + * Requested handling information for quote request purposes only + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_requestedHandling) + @JsonProperty(Vocabulary.s_p_requestedHandling) + protected Set requestedHandling; + /** + * Indicate the security state of the shipment, screened or not + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_shipmentSecurityStatus_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipmentSecurityStatus_A_A) + protected String shipmentSecurityStatus; + + public void setBookingSegment(BookingSegment bookingSegment) { + this.bookingSegment = bookingSegment; + } + + public BookingSegment getBookingSegment() { + return bookingSegment; + } + + public void setParties(Set parties) { + this.parties = parties; + } + + public Set getParties() { + return parties; + } + + public void setRatingsPreference(Ratings ratingsPreference) { + this.ratingsPreference = ratingsPreference; + } + + public Ratings getRatingsPreference() { + return ratingsPreference; + } + + public void setRoutingPreferences(Routing routingPreferences) { + this.routingPreferences = routingPreferences; + } + + public Routing getRoutingPreferences() { + return routingPreferences; + } + + @Deprecated + public void setSchedulePreferences(Set schedulePreferences) { + this.schedulePreferences = schedulePreferences; + } + + @Deprecated + public Set getSchedulePreferences() { + return schedulePreferences; + } + + public void setShipmentDetails(Shipment shipmentDetails) { + this.shipmentDetails = shipmentDetails; + } + + public Shipment getShipmentDetails() { + return shipmentDetails; + } + + public void setTimePreferences(BookingTimes timePreferences) { + this.timePreferences = timePreferences; + } + + public BookingTimes getTimePreferences() { + return timePreferences; + } + + public void setTransportMovement(Set transportMovement) { + this.transportMovement = transportMovement; + } + + public Set getTransportMovement() { + return transportMovement; + } + + public void setUnitsPreference(Value unitsPreference) { + this.unitsPreference = unitsPreference; + } + + public Value getUnitsPreference() { + return unitsPreference; + } + + public void setAllotment(String allotment) { + this.allotment = allotment; + } + + public String getAllotment() { + return allotment; + } + + public void setExpectedCommodities(Set expectedCommodities) { + this.expectedCommodities = expectedCommodities; + } + + public Set getExpectedCommodities() { + return expectedCommodities; + } + + public void setRequestType(String requestType) { + this.requestType = requestType; + } + + public String getRequestType() { + return requestType; + } + + public void setRequestedHandling(Set requestedHandling) { + this.requestedHandling = requestedHandling; + } + + public Set getRequestedHandling() { + return requestedHandling; + } + + public void setShipmentSecurityStatus(String shipmentSecurityStatus) { + this.shipmentSecurityStatus = shipmentSecurityStatus; + } + + public String getShipmentSecurityStatus() { + return shipmentSecurityStatus; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/BookingSegment.java b/src/main/java/org/iata/cargo/model/BookingSegment.java new file mode 100755 index 0000000..3d446b6 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/BookingSegment.java @@ -0,0 +1,180 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Booking Segment refers to the arrival and location details of a Booking Option Request or a Booking Option (offer or actual booking) + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_BookingSegment) +public class BookingSegment + implements Serializable +{ + @Id(generated = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + /** + * The arrival location of the Booking Segment + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_arrivalLocation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_arrivalLocation) + protected Location arrivalLocation; + /** + * The Booking Option linked to the Booking Segment + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingOptions) + @JsonProperty(Vocabulary.s_p_bookingOptions) + protected Set bookingOptions; + /** + * The departure location of the Booking Segment + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_departureLocation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_departureLocation) + protected Location departureLocation; + /** + * The BookingOptionRequest linked to the Booking Segment + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_requests) + @JsonProperty(Vocabulary.s_p_requests) + protected Set requests; + /** + * When part of the Request it refers to the preferred Transport ID from the customer. When part of the BookingOption (offer or actual booking) it refers to the expected Transport ID or flight + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_preferredTransportId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_preferredTransportId) + protected String preferredTransportId; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("BookingSegment {"+ name)+"<")+ id)+">")+"}"); + } + + public void setArrivalLocation(Location arrivalLocation) { + this.arrivalLocation = arrivalLocation; + } + + public Location getArrivalLocation() { + return arrivalLocation; + } + + public void setBookingOptions(Set bookingOptions) { + this.bookingOptions = bookingOptions; + } + + public Set getBookingOptions() { + return bookingOptions; + } + + public void setDepartureLocation(Location departureLocation) { + this.departureLocation = departureLocation; + } + + public Location getDepartureLocation() { + return departureLocation; + } + + public void setRequests(Set requests) { + this.requests = requests; + } + + public Set getRequests() { + return requests; + } + + public void setPreferredTransportId(String preferredTransportId) { + this.preferredTransportId = preferredTransportId; + } + + public String getPreferredTransportId() { + return preferredTransportId; + } + +} diff --git a/src/main/java/org/iata/cargo/model/BookingTimes.java b/src/main/java/org/iata/cargo/model/BookingTimes.java new file mode 100755 index 0000000..6467c85 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/BookingTimes.java @@ -0,0 +1,65 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; + + +/** + * Previsouly called Schedule. This object refers to times used for the Booking Option Request (preferences part of the request) or the Booking Option (times sur as LAT where there is a commitment from the carrier) + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_BookingTimes) +public class BookingTimes + extends LogisticsObject + implements Serializable +{ + + /** + * Reference to the BookingOption where the booking times are used + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingOption) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingOption) + protected BookingOption bookingOption; + /** + * Reference to the BookingOptionRequest where the booking times are used + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingOptionRequest) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingOptionRequest) + protected BookingOptionRequest bookingOptionRequest; + + public void setBookingOption(BookingOption bookingOption) { + this.bookingOption = bookingOption; + } + + public BookingOption getBookingOption() { + return bookingOption; + } + + public void setBookingOptionRequest(BookingOptionRequest bookingOptionRequest) { + this.bookingOptionRequest = bookingOptionRequest; + } + + public BookingOptionRequest getBookingOptionRequest() { + return bookingOptionRequest; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Branch.java b/src/main/java/org/iata/cargo/model/Branch.java new file mode 100755 index 0000000..df76370 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Branch.java @@ -0,0 +1,230 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Company branches + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Branch) +@Deprecated +public class Branch + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Branch) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Refers to the mother company of the branch + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_company) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_company) + protected Company company; + /** + * Contact person details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_contactPerson) + @JsonProperty(Vocabulary.s_p_contactPerson) + protected Set contactPerson; + /** + * Location and address details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_location) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_location) + protected Location location; + /** + * Other identifiers (e.g. LEI (Legal Entity Identifier), TIN (Trader Identification Number), PIMA address, Account number, VAT/Tax id, Legal Registration id, DUNS number, etc) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_otherIdentifier) + @JsonProperty(Vocabulary.s_p_otherIdentifier) + protected Set otherIdentifier; + /** + * Company branch name + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_branchName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_branchName) + protected String branchName; + /** + * IATA CASS cargo agent 4 digit branch number / location identifier + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_iataCargoAgentLocationIdentifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_iataCargoAgentLocationIdentifier) + protected Integer iataCargoAgentLocationIdentifier; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Branch {"+ name)+"<")+ id)+">")+"}"); + } + + @Deprecated + public void setCompany(Company company) { + this.company = company; + } + + @Deprecated + public Company getCompany() { + return company; + } + + @Deprecated + public void setContactPerson(Set contactPerson) { + this.contactPerson = contactPerson; + } + + @Deprecated + public Set getContactPerson() { + return contactPerson; + } + + @Deprecated + public void setLocation(Location location) { + this.location = location; + } + + @Deprecated + public Location getLocation() { + return location; + } + + @Deprecated + public void setOtherIdentifier(Set otherIdentifier) { + this.otherIdentifier = otherIdentifier; + } + + @Deprecated + public Set getOtherIdentifier() { + return otherIdentifier; + } + + @Deprecated + public void setBranchName(String branchName) { + this.branchName = branchName; + } + + @Deprecated + public String getBranchName() { + return branchName; + } + + @Deprecated + public void setIataCargoAgentLocationIdentifier(Integer iataCargoAgentLocationIdentifier) { + this.iataCargoAgentLocationIdentifier = iataCargoAgentLocationIdentifier; + } + + @Deprecated + public Integer getIataCargoAgentLocationIdentifier() { + return iataCargoAgentLocationIdentifier; + } + + @Deprecated + public String getLanguage() { + return language; + } + + @Deprecated + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/CO2CalcMethod.java b/src/main/java/org/iata/cargo/model/CO2CalcMethod.java new file mode 100755 index 0000000..1aaa927 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/CO2CalcMethod.java @@ -0,0 +1,81 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * CO2 calculation methods + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_CO2CalcMethod) +public class CO2CalcMethod + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_CO2CalcMethod) + protected Set types; + + /** + * Name of the CO2 calculation method + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_methodName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_methodName) + protected String methodName; + /** + * Version of the CO2 calculation method + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_methodVersion) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_methodVersion) + protected String methodVersion; + + public void setMethodName(String methodName) { + this.methodName = methodName; + } + + public String getMethodName() { + return methodName; + } + + public void setMethodVersion(String methodVersion) { + this.methodVersion = methodVersion; + } + + public String getMethodVersion() { + return methodVersion; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/CO2Emissions.java b/src/main/java/org/iata/cargo/model/CO2Emissions.java new file mode 100755 index 0000000..ee6bf92 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/CO2Emissions.java @@ -0,0 +1,118 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * CO2 Calculation + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_CO2Emissions) +public class CO2Emissions + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_CO2Emissions) + protected Set types; + + /** + * CO2 emissions calculated + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_calculatedEmissions) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_calculatedEmissions) + protected Value calculatedEmissions; + /** + * Transport Movement linked to the CO2 Emissions object + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMovement_A_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportMovement_A_A_A) + protected TransportMovement transportMovement; + /** + * Name of the CO2 calculation method + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_methodName_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_methodName_A) + protected String methodName; + /** + * Version used for the calculation + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_methodVersion_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_methodVersion_A) + protected String methodVersion; + + public void setCalculatedEmissions(Value calculatedEmissions) { + this.calculatedEmissions = calculatedEmissions; + } + + public Value getCalculatedEmissions() { + return calculatedEmissions; + } + + public void setTransportMovement(TransportMovement transportMovement) { + this.transportMovement = transportMovement; + } + + public TransportMovement getTransportMovement() { + return transportMovement; + } + + public void setMethodName(String methodName) { + this.methodName = methodName; + } + + public String getMethodName() { + return methodName; + } + + public void setMethodVersion(String methodVersion) { + this.methodVersion = methodVersion; + } + + public String getMethodVersion() { + return methodVersion; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Carrier.java b/src/main/java/org/iata/cargo/model/Carrier.java new file mode 100755 index 0000000..91d64bb --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Carrier.java @@ -0,0 +1,101 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; + + +/** + * Company details of carriers + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Carrier) +public class Carrier + extends Company + implements Serializable +{ + + /** + * IATA two-character airline code + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_airlineCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_airlineCode) + protected String airlineCode; + /** + * IATA three-numeric airline prefix number + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_airlinePrefix) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_airlinePrefix) + protected String airlinePrefix; + /** + * Official carrier name + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_carrierName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_carrierName) + protected String carrierName; + /** + * Carrier short name if any + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_carrierShortName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_carrierShortName) + protected String carrierShortName; + + public void setAirlineCode(String airlineCode) { + this.airlineCode = airlineCode; + } + + public String getAirlineCode() { + return airlineCode; + } + + public void setAirlinePrefix(String airlinePrefix) { + this.airlinePrefix = airlinePrefix; + } + + public String getAirlinePrefix() { + return airlinePrefix; + } + + public void setCarrierName(String carrierName) { + this.carrierName = carrierName; + } + + public String getCarrierName() { + return carrierName; + } + + public void setCarrierShortName(String carrierShortName) { + this.carrierShortName = carrierShortName; + } + + public String getCarrierShortName() { + return carrierShortName; + } + +} diff --git a/src/main/java/org/iata/cargo/model/CarrierProduct.java b/src/main/java/org/iata/cargo/model/CarrierProduct.java new file mode 100755 index 0000000..ae85f96 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/CarrierProduct.java @@ -0,0 +1,100 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Carrier product details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_CarrierProduct) +public class CarrierProduct + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_CarrierProduct) + protected Set types; + + /** + * Reference to the BookingOption where the carrier product is used + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingOption_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingOption_A) + protected BookingOption bookingOption; + /** + * Carrier's product code + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_productCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_productCode) + protected String productCode; + /** + * Carrier's product description + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_productDescription) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_productDescription) + protected String productDescription; + + public void setBookingOption(BookingOption bookingOption) { + this.bookingOption = bookingOption; + } + + public BookingOption getBookingOption() { + return bookingOption; + } + + public void setProductCode(String productCode) { + this.productCode = productCode; + } + + public String getProductCode() { + return productCode; + } + + public void setProductDescription(String productDescription) { + this.productDescription = productDescription; + } + + public String getProductDescription() { + return productDescription; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Characteristics.java b/src/main/java/org/iata/cargo/model/Characteristics.java new file mode 100755 index 0000000..23ea00e --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Characteristics.java @@ -0,0 +1,100 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Product additional details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Characteristics) +public class Characteristics + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Characteristics) + protected Set types; + + /** + * Reference to the product + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_product) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_product) + protected Product product; + /** + * Product characteristics code - e.g. CLR - Color + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_characteristicsType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_characteristicsType) + protected String characteristicsType; + /** + * Product characteristics value / attribute - e.g. Blue... + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_value) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_value) + protected String value; + + public void setProduct(Product product) { + this.product = product; + } + + public Product getProduct() { + return product; + } + + public void setCharacteristicsType(String characteristicsType) { + this.characteristicsType = characteristicsType; + } + + public String getCharacteristicsType() { + return characteristicsType; + } + + public void setValue(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Company.java b/src/main/java/org/iata/cargo/model/Company.java new file mode 100755 index 0000000..37875af --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Company.java @@ -0,0 +1,166 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Company details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Company) +public class Company + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Company) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Company branches + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_branch) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_branch) + protected CompanyBranch branch; + /** + * Name of company or organization + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_companyName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_companyName) + protected String companyName; + /** + * IATA accredited cargo agent 7 digit number + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_iataCargoAgentCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_iataCargoAgentCode) + protected String iataCargoAgentCode; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Company {"+ name)+"<")+ id)+">")+"}"); + } + + public void setBranch(CompanyBranch branch) { + this.branch = branch; + } + + public CompanyBranch getBranch() { + return branch; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public String getCompanyName() { + return companyName; + } + + public void setIataCargoAgentCode(String iataCargoAgentCode) { + this.iataCargoAgentCode = iataCargoAgentCode; + } + + public String getIataCargoAgentCode() { + return iataCargoAgentCode; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/CompanyBranch.java b/src/main/java/org/iata/cargo/model/CompanyBranch.java new file mode 100755 index 0000000..442f974 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/CompanyBranch.java @@ -0,0 +1,204 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.RDFS; + + +/** + * Company branches + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_CompanyBranch) +public class CompanyBranch + implements Serializable +{ + + @Id(generated = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + /** + * Refers to the mother company of the branch + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_company_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_company_A) + protected Company company; + /** + * Contact person details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_contactPersons) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_contactPersons) + protected Person contactPersons; + /** + * Location and address details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_location_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_location_A) + protected Location location; + /** + * Other identifiers (e.g. LEI (Legal Entity Identifier), TIN (Trader Identification Number), PIMA address, Account number, VAT/Tax id, Legal Registration id, DUNS number, etc) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_otherIdentifiers) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_otherIdentifiers) + protected OtherIdentifier otherIdentifiers; + /** + * Company branch name + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_branchName_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_branchName_A) + protected String branchName; + /** + * IATA CASS cargo agent 4 digit branch number / location identifier + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_iataCargoAgentLocationIdentifier_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_iataCargoAgentLocationIdentifier_A) + protected String iataCargoAgentLocationIdentifier; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("CompanyBranch {"+ name)+"<")+ id)+">")+"}"); + } + + public void setCompany(Company company) { + this.company = company; + } + + public Company getCompany() { + return company; + } + + public void setContactPersons(Person contactPersons) { + this.contactPersons = contactPersons; + } + + public Person getContactPersons() { + return contactPersons; + } + + public void setLocation(Location location) { + this.location = location; + } + + public Location getLocation() { + return location; + } + + public void setOtherIdentifiers(OtherIdentifier otherIdentifiers) { + this.otherIdentifiers = otherIdentifiers; + } + + public OtherIdentifier getOtherIdentifiers() { + return otherIdentifiers; + } + + public void setBranchName(String branchName) { + this.branchName = branchName; + } + + public String getBranchName() { + return branchName; + } + + public void setIataCargoAgentLocationIdentifier(String iataCargoAgentLocationIdentifier) { + this.iataCargoAgentLocationIdentifier = iataCargoAgentLocationIdentifier; + } + + public String getIataCargoAgentLocationIdentifier() { + return iataCargoAgentLocationIdentifier; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Contact.java b/src/main/java/org/iata/cargo/model/Contact.java new file mode 100755 index 0000000..e14dbbe --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Contact.java @@ -0,0 +1,209 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Contact details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Contact) +public class Contact + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Contact) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Other contact options e.g. Skype, Whatsapp, Viber, Fax etc + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_other) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_other) + protected ContactOther other; + /** + * Type of the contact details, e.g. Phone number, Mail address + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_contactType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_contactType) + protected String contactType; + /** + * Value of the contact detail, e.g. phone number + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_contactValue) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_contactValue) + protected String contactValue; + /** + * E-mail address + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_emailAddress) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_emailAddress) + protected String emailAddress; + /** + * Phone number + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_phoneNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_phoneNumber) + protected String phoneNumber; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Contact {"+ name)+"<")+ id)+">")+"}"); + } + + @Deprecated + public void setOther(ContactOther other) { + this.other = other; + } + + @Deprecated + public ContactOther getOther() { + return other; + } + + public void setContactType(String contactType) { + this.contactType = contactType; + } + + public String getContactType() { + return contactType; + } + + public void setContactValue(String contactValue) { + this.contactValue = contactValue; + } + + public String getContactValue() { + return contactValue; + } + + @Deprecated + public void setEmailAddress(String emailAddress) { + this.emailAddress = emailAddress; + } + + @Deprecated + public String getEmailAddress() { + return emailAddress; + } + + @Deprecated + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + @Deprecated + public String getPhoneNumber() { + return phoneNumber; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/ContactOther.java b/src/main/java/org/iata/cargo/model/ContactOther.java new file mode 100755 index 0000000..d3ed0eb --- /dev/null +++ b/src/main/java/org/iata/cargo/model/ContactOther.java @@ -0,0 +1,148 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Other contact options e.g. Skype, Whatsapp, Viber, Fax etc + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_ContactOther) +@Deprecated +public class ContactOther + implements Serializable +{ + + @Id(generated = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_ContactOther) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Contact details e.g. Skype ID + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_detail) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_detail) + protected String detail; + /** + * Contact type - e.g. Skype + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_otherType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_otherType) + protected String otherType; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("ContactOther {"+ name)+"<")+ id)+">")+"}"); + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public String getDetail() { + return detail; + } + + public void setOtherType(String otherType) { + this.otherType = otherType; + } + + public String getOtherType() { + return otherType; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Country.java b/src/main/java/org/iata/cargo/model/Country.java new file mode 100755 index 0000000..3f0b8b8 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Country.java @@ -0,0 +1,147 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Country details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Country) +public class Country + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Country ISO code. Refer ISO 3166-2 + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_countryCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_countryCode) + protected String countryCode; + /** + * Full country name + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_countryName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_countryName) + protected String countryName; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Country {"+ name)+"<")+ id)+">")+"}"); + } + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + public String getCountryCode() { + return countryCode; + } + + public void setCountryName(String countryName) { + this.countryName = countryName; + } + + public String getCountryName() { + return countryName; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/CustomsInfo.java b/src/main/java/org/iata/cargo/model/CustomsInfo.java new file mode 100755 index 0000000..620f9bc --- /dev/null +++ b/src/main/java/org/iata/cargo/model/CustomsInfo.java @@ -0,0 +1,136 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Customs information details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_CustomsInfo) +public class CustomsInfo + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_CustomsInfo) + protected Set types; + + /** + * Piece on which the Customs Info is applicable + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_piece) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_piece) + protected Piece piece; + /** + * Customs content code. Refer CXML Code List 1.100, e.g. IST - Security Textual StatementNumber, M - Movement Reference Number + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_customsInfoContentCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_customsInfoContentCode) + protected String customsInfoContentCode; + /** + * Free text for customs remarks + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_customsInfoNote) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_customsInfoNote) + protected String customsInfoNote; + /** + * Customs subject code. Refer CXML Code List 1.19, e.g. IMP for import, EXP for export, AGT for Agent, ISS for The Regulated Agent Issuing the Security Status for rdf:type Consignment etc. At least one of the three elements (Country Code, Information Identifier or Customs, Security and Regulatory Control Information Identifier) must be completed + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_customsInfoSubjectCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_customsInfoSubjectCode) + protected String customsInfoSubjectCode; + /** + * Information for customs submission + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_customsInformation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_customsInformation) + protected String customsInformation; + + public void setPiece(Piece piece) { + this.piece = piece; + } + + public Piece getPiece() { + return piece; + } + + public void setCustomsInfoContentCode(String customsInfoContentCode) { + this.customsInfoContentCode = customsInfoContentCode; + } + + public String getCustomsInfoContentCode() { + return customsInfoContentCode; + } + + public void setCustomsInfoNote(String customsInfoNote) { + this.customsInfoNote = customsInfoNote; + } + + public String getCustomsInfoNote() { + return customsInfoNote; + } + + public void setCustomsInfoSubjectCode(String customsInfoSubjectCode) { + this.customsInfoSubjectCode = customsInfoSubjectCode; + } + + public String getCustomsInfoSubjectCode() { + return customsInfoSubjectCode; + } + + public void setCustomsInformation(String customsInformation) { + this.customsInformation = customsInformation; + } + + public String getCustomsInformation() { + return customsInformation; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/DgDeclaration.java b/src/main/java/org/iata/cargo/model/DgDeclaration.java new file mode 100755 index 0000000..f0e6ca1 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/DgDeclaration.java @@ -0,0 +1,138 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Dangerous goods declaration + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_DgDeclaration) +public class DgDeclaration + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_DgDeclaration) + protected Set types; + + /** + * Contains the Special Handling Code related to the prescribed limitation. Hardcoded to PASSENGER AND CARGO AIRCRAFT or CARGO AIRCRAFT ONLY. This field is mandatory for air (Air) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_aircraftLimitationInformation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_aircraftLimitationInformation) + protected String aircraftLimitationInformation; + /** + * Contains the warning message complying with the regulations text note. This field is mandatory for air (Air) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_complianceDeclarationText) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_complianceDeclarationText) + protected String complianceDeclarationText; + /** + * Indicates an exclusive use shipment + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_exclusiveUseIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_exclusiveUseIndicator) + protected Boolean exclusiveUseIndicator; + /** + * Free text. This may include items such as Control temperature for substances stabilized by temperature control, name and telephone number of a responsible person for infectious substances. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_handlingInformation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_handlingInformation) + protected String handlingInformation; + /** + * Contains the shipper's declaration to comply with the regulations text note. Free text . This field is mandatory for air (Air) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_shipperDeclarationText) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_shipperDeclarationText) + protected String shipperDeclarationText; + + public void setAircraftLimitationInformation(String aircraftLimitationInformation) { + this.aircraftLimitationInformation = aircraftLimitationInformation; + } + + public String getAircraftLimitationInformation() { + return aircraftLimitationInformation; + } + + public void setComplianceDeclarationText(String complianceDeclarationText) { + this.complianceDeclarationText = complianceDeclarationText; + } + + public String getComplianceDeclarationText() { + return complianceDeclarationText; + } + + public void setExclusiveUseIndicator(Boolean exclusiveUseIndicator) { + this.exclusiveUseIndicator = exclusiveUseIndicator; + } + + public Boolean getExclusiveUseIndicator() { + return exclusiveUseIndicator; + } + + public void setHandlingInformation(String handlingInformation) { + this.handlingInformation = handlingInformation; + } + + public String getHandlingInformation() { + return handlingInformation; + } + + public void setShipperDeclarationText(String shipperDeclarationText) { + this.shipperDeclarationText = shipperDeclarationText; + } + + public String getShipperDeclarationText() { + return shipperDeclarationText; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/DgProductRadioactive.java b/src/main/java/org/iata/cargo/model/DgProductRadioactive.java new file mode 100755 index 0000000..4621a19 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/DgProductRadioactive.java @@ -0,0 +1,136 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Details of the radioactive products + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_DgProductRadioactive) +public class DgProductRadioactive + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_DgProductRadioactive) + protected Set types; + + /** + * DgRadioactiveIsotope. + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_isotopes) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_isotopes) + protected DgRadioactiveIsotope isotopes; + /** + * The category of the package or all packed in one. Complete text to be transmitted: I-White, II-Yellow, III-Yellow instead of I, II, III + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_dgRaTypeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_dgRaTypeCode) + protected String dgRaTypeCode; + /** + * Indicates if Fissile is excepted + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_fissileExceptionIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_fissileExceptionIndicator) + protected Boolean fissileExceptionIndicator; + /** + * Fissile exception reference, mandatory if Fissile Exception Indicator is true. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_fissileExceptionReference) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_fissileExceptionReference) + protected String fissileExceptionReference; + /** + * Radioactive Transport-Index value of the package or all packed in one. Conditionally mandator and applies to categories II-Yellow and III-Yellow only; field only contains the value, if printed, TI must be added as a prefix to the value to be printed in the Packing Instructions column + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_transportIndexNumeric) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportIndexNumeric) + protected Integer transportIndexNumeric; + + public void setIsotopes(DgRadioactiveIsotope isotopes) { + this.isotopes = isotopes; + } + + public DgRadioactiveIsotope getIsotopes() { + return isotopes; + } + + public void setDgRaTypeCode(String dgRaTypeCode) { + this.dgRaTypeCode = dgRaTypeCode; + } + + public String getDgRaTypeCode() { + return dgRaTypeCode; + } + + public void setFissileExceptionIndicator(Boolean fissileExceptionIndicator) { + this.fissileExceptionIndicator = fissileExceptionIndicator; + } + + public Boolean getFissileExceptionIndicator() { + return fissileExceptionIndicator; + } + + public void setFissileExceptionReference(String fissileExceptionReference) { + this.fissileExceptionReference = fissileExceptionReference; + } + + public String getFissileExceptionReference() { + return fissileExceptionReference; + } + + public void setTransportIndexNumeric(Integer transportIndexNumeric) { + this.transportIndexNumeric = transportIndexNumeric; + } + + public Integer getTransportIndexNumeric() { + return transportIndexNumeric; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/DgRadioactiveIsotope.java b/src/main/java/org/iata/cargo/model/DgRadioactiveIsotope.java new file mode 100755 index 0000000..3c5a1ac --- /dev/null +++ b/src/main/java/org/iata/cargo/model/DgRadioactiveIsotope.java @@ -0,0 +1,172 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Details of the radioactive isotope contained in the product + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_DgRadioactiveIsotope) +public class DgRadioactiveIsotope + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_DgRadioactiveIsotope) + protected Set types; + + /** + * Numeric expression of the activity of a radioactive Item + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_activityLevelMeasure) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_activityLevelMeasure) + protected String activityLevelMeasure; + /** + * Applies to fissile material only, other than fissile excepted. A numeric value expressed to one decimal place preceded by the letters CSI. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_criticalitySafetyIndexNumeric) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_criticalitySafetyIndexNumeric) + protected String criticalitySafetyIndexNumeric; + /** + * Id of each radionuclide or for mixtures of radionuclides. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_isotopeId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_isotopeId) + protected String isotopeId; + /** + * The name or symbol of each radionuclide or for mixtures of radionuclides, an appropriate general description, or a list of the most restrictive radionuclides. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_isotopeName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_isotopeName) + protected String isotopeName; + /** + * A notation that the material is low dispersible radioactive material. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_lowDispersibleIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_lowDispersibleIndicator) + protected Boolean lowDispersibleIndicator; + /** + * A description of the physical and chemical form of the material. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_physicalChemicalForm) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_physicalChemicalForm) + protected String physicalChemicalForm; + /** + * A notation that the material is special form + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_specialFormIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_specialFormIndicator) + protected Boolean specialFormIndicator; + + public void setActivityLevelMeasure(String activityLevelMeasure) { + this.activityLevelMeasure = activityLevelMeasure; + } + + public String getActivityLevelMeasure() { + return activityLevelMeasure; + } + + public void setCriticalitySafetyIndexNumeric(String criticalitySafetyIndexNumeric) { + this.criticalitySafetyIndexNumeric = criticalitySafetyIndexNumeric; + } + + public String getCriticalitySafetyIndexNumeric() { + return criticalitySafetyIndexNumeric; + } + + public void setIsotopeId(String isotopeId) { + this.isotopeId = isotopeId; + } + + public String getIsotopeId() { + return isotopeId; + } + + public void setIsotopeName(String isotopeName) { + this.isotopeName = isotopeName; + } + + public String getIsotopeName() { + return isotopeName; + } + + public void setLowDispersibleIndicator(Boolean lowDispersibleIndicator) { + this.lowDispersibleIndicator = lowDispersibleIndicator; + } + + public Boolean getLowDispersibleIndicator() { + return lowDispersibleIndicator; + } + + public void setPhysicalChemicalForm(String physicalChemicalForm) { + this.physicalChemicalForm = physicalChemicalForm; + } + + public String getPhysicalChemicalForm() { + return physicalChemicalForm; + } + + public void setSpecialFormIndicator(Boolean specialFormIndicator) { + this.specialFormIndicator = specialFormIndicator; + } + + public Boolean getSpecialFormIndicator() { + return specialFormIndicator; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Dimensions.java b/src/main/java/org/iata/cargo/model/Dimensions.java new file mode 100755 index 0000000..98b4b29 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Dimensions.java @@ -0,0 +1,183 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Dimension details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Dimensions) +public class Dimensions + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Dimensions) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String language; + + /** + * Height + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_height) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_height) + protected Value height; + /** + * Length + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_length) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_length) + protected Value length; + /** + * Volume + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_volume) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_volume) + protected Value volume; + /** + * Width + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_width) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_width) + protected Value width; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Dimensions {"+ name)+"<")+ id)+">")+"}"); + } + + public void setHeight(Value height) { + this.height = height; + } + + public Value getHeight() { + return height; + } + + public void setLength(Value length) { + this.length = length; + } + + public Value getLength() { + return length; + } + + public void setVolume(Value volume) { + this.volume = volume; + } + + public Value getVolume() { + return volume; + } + + public void setWidth(Value width) { + this.width = width; + } + + public Value getWidth() { + return width; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/EpermitConsignment.java b/src/main/java/org/iata/cargo/model/EpermitConsignment.java new file mode 100755 index 0000000..ec1d4b5 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/EpermitConsignment.java @@ -0,0 +1,101 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Details of the pieces (Live animals) of the permit and specific information such as quantity measured and used to date quota + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_EpermitConsignment) +public class EpermitConsignment + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_EpermitConsignment) + protected Set types; + + /** + * Reference to te pieces (Live Animals) of the permit + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_consignmentItems) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_consignmentItems) + protected PieceLiveAnimals consignmentItems; + /** + * Quatity measured by the examining authority (box 14) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_examiningQuantity) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_examiningQuantity) + protected Value examiningQuantity; + /** + * total number of specimens exported in the current calendar year and the current annuela quota for the species concerned (box 11a) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_usedToDateQuotaQuantity) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_usedToDateQuotaQuantity) + protected Integer usedToDateQuotaQuantity; + + public void setConsignmentItems(PieceLiveAnimals consignmentItems) { + this.consignmentItems = consignmentItems; + } + + public PieceLiveAnimals getConsignmentItems() { + return consignmentItems; + } + + public void setExaminingQuantity(Value examiningQuantity) { + this.examiningQuantity = examiningQuantity; + } + + public Value getExaminingQuantity() { + return examiningQuantity; + } + + public void setUsedToDateQuotaQuantity(Integer usedToDateQuotaQuantity) { + this.usedToDateQuotaQuantity = usedToDateQuotaQuantity; + } + + public Integer getUsedToDateQuotaQuantity() { + return usedToDateQuotaQuantity; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/EpermitSignature.java b/src/main/java/org/iata/cargo/model/EpermitSignature.java new file mode 100755 index 0000000..603c3b6 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/EpermitSignature.java @@ -0,0 +1,158 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Signature details of the Epermit for Live Animals + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_EpermitSignature) +public class EpermitSignature + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_EpermitSignature) + protected Set types; + + /** + * Signatory company name + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_signatoryCompany) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_signatoryCompany) + protected Company signatoryCompany; + /** + * Security Stamp ID + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_securityStampId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_securityStampId) + protected String securityStampId; + /** + * Role of the signatory with regards to the ePermit: Applicant, Permit issuer, Issuing Authority or Examining authority + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_signatoryRole) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_signatoryRole) + protected String signatoryRole; + /** + * Date and time of the signature + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_signatureDate) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_signatureDate) + protected Date signatureDate; + /** + * Signatory signature authentication text + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_signatureStatement) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_signatureStatement) + protected String signatureStatement; + /** + * Code specifying a type of government action such asinspection, detention, fumigation, security. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_signatureTypeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_signatureTypeCode) + protected String signatureTypeCode; + + public void setSignatoryCompany(Company signatoryCompany) { + this.signatoryCompany = signatoryCompany; + } + + public Company getSignatoryCompany() { + return signatoryCompany; + } + + public void setSecurityStampId(String securityStampId) { + this.securityStampId = securityStampId; + } + + public String getSecurityStampId() { + return securityStampId; + } + + public void setSignatoryRole(String signatoryRole) { + this.signatoryRole = signatoryRole; + } + + public String getSignatoryRole() { + return signatoryRole; + } + + public void setSignatureDate(Date signatureDate) { + this.signatureDate = signatureDate; + } + + public Date getSignatureDate() { + return signatureDate; + } + + public void setSignatureStatement(String signatureStatement) { + this.signatureStatement = signatureStatement; + } + + public String getSignatureStatement() { + return signatureStatement; + } + + public void setSignatureTypeCode(String signatureTypeCode) { + this.signatureTypeCode = signatureTypeCode; + } + + public String getSignatureTypeCode() { + return signatureTypeCode; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Event.java b/src/main/java/org/iata/cargo/model/Event.java new file mode 100755 index 0000000..4b35ec1 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Event.java @@ -0,0 +1,256 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Event details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Event) +public class Event + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Event) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Refers to the URI of the linked object(s) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_linkedObject) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_LogisticsObject, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_linkedObject) + protected LogisticsObject linkedObject; + /** + * Location of event + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_location_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_location_A_A) + protected Location location; + /** + * Party performing the event + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_performedBy) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_performedBy) + protected Company performedBy; + @OWLObjectProperty(iri = Vocabulary.s_p_performedByPerson) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_performedByPerson) + protected Person performedByPerson; + /** + * Date and time of the event + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_dateTime) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + protected Date dateTime; + /** + * Movement or milestone code. Refer CXML Code List 1.18, e.g. DEP, ARR, FOH, RCS + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_eventCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_eventCode) + protected String eventCode; + /** + * If no EventCode provided, event name - e.g. Security clearance + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_eventName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_eventName) + protected String eventName; + /** + * Indicates type of event e.g. Scheduled, Estimated, Actual + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_eventTypeIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_eventTypeIndicator) + protected String eventTypeIndicator; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Event {"+ name)+"<")+ id)+">")+"}"); + } + + public void setLinkedObject(LogisticsObject linkedObject) { + this.linkedObject = linkedObject; + } + + public LogisticsObject getLinkedObject() { + return linkedObject; + } + + public void setLocation(Location location) { + this.location = location; + } + + public Location getLocation() { + return location; + } + + public void setPerformedBy(Company performedBy) { + this.performedBy = performedBy; + } + + public Company getPerformedBy() { + return performedBy; + } + + public void setPerformedByPerson(Person performedByPerson) { + this.performedByPerson = performedByPerson; + } + + public Person getPerformedByPerson() { + return performedByPerson; + } + + public void setDateTime(Date dateTime) { + this.dateTime = dateTime; + } + + public Date getDateTime() { + return dateTime; + } + + public void setEventCode(String eventCode) { + this.eventCode = eventCode; + } + + public String getEventCode() { + return eventCode; + } + + public void setEventName(String eventName) { + this.eventName = eventName; + } + + public String getEventName() { + return eventName; + } + + public void setEventTypeIndicator(String eventTypeIndicator) { + this.eventTypeIndicator = eventTypeIndicator; + } + + public String getEventTypeIndicator() { + return eventTypeIndicator; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/EventUld.java b/src/main/java/org/iata/cargo/model/EventUld.java new file mode 100755 index 0000000..26591a5 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/EventUld.java @@ -0,0 +1,47 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; + + +/** + * Subtype of Event + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_EventUld) +public class EventUld + extends Event + implements Serializable +{ + + /** + * Position of the shipment in the aircraft - e.g. lower or main deck + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_loadingPosition) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_loadingPosition) + protected String loadingPosition; + + public void setLoadingPosition(String loadingPosition) { + this.loadingPosition = loadingPosition; + } + + public String getLoadingPosition() { + return loadingPosition; + } + +} diff --git a/src/main/java/org/iata/cargo/model/ExternalReference.java b/src/main/java/org/iata/cargo/model/ExternalReference.java new file mode 100755 index 0000000..df9f94d --- /dev/null +++ b/src/main/java/org/iata/cargo/model/ExternalReference.java @@ -0,0 +1,294 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Reference documents details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_ExternalReference) +public class ExternalReference + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_ExternalReference) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Document originator details and contacts + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_documentOriginator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_documentOriginator) + protected Company documentOriginator; + /** + * Location of the document, e.g. location where the document was emitted + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_location_A_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_location_A_A_A) + protected Location location; + /** + * Checksum of the document to validate its integrity + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_documentChecksum) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_documentChecksum) + protected String documentChecksum; + /** + * Unique document identifier + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_documentId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_documentId) + protected String documentId; + /** + * Link to the document, e.g. URL of the file where it is hosted + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_documentLink) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_documentLink) + protected String documentLink; + /** + * If no DocumentType provided, name of the referenced document + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_documentName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_documentName) + protected String documentName; + /** + * Type of the referenced document . Refer UNEDIFACT 1001 e.g. 740 - Air Waybill + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_documentType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_documentType) + protected String documentType; + /** + * Document version number + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_documentVersion) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_documentVersion) + protected String documentVersion; + /** + * Document expiry date + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_expiryDate) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_expiryDate) + protected Date expiryDate; + /** + * Document validity start date + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_validFrom) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_validFrom) + protected Date validFrom; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("ExternalReference {"+ name)+"<")+ id)+">")+"}"); + } + + public void setDocumentOriginator(Company documentOriginator) { + this.documentOriginator = documentOriginator; + } + + public Company getDocumentOriginator() { + return documentOriginator; + } + + public void setLocation(Location location) { + this.location = location; + } + + public Location getLocation() { + return location; + } + + public void setDocumentChecksum(String documentChecksum) { + this.documentChecksum = documentChecksum; + } + + public String getDocumentChecksum() { + return documentChecksum; + } + + public void setDocumentId(String documentId) { + this.documentId = documentId; + } + + public String getDocumentId() { + return documentId; + } + + public void setDocumentLink(String documentLink) { + this.documentLink = documentLink; + } + + public String getDocumentLink() { + return documentLink; + } + + public void setDocumentName(String documentName) { + this.documentName = documentName; + } + + public String getDocumentName() { + return documentName; + } + + public void setDocumentType(String documentType) { + this.documentType = documentType; + } + + public String getDocumentType() { + return documentType; + } + + public void setDocumentVersion(String documentVersion) { + this.documentVersion = documentVersion; + } + + public String getDocumentVersion() { + return documentVersion; + } + + public void setExpiryDate(Date expiryDate) { + this.expiryDate = expiryDate; + } + + public Date getExpiryDate() { + return expiryDate; + } + + public void setValidFrom(Date validFrom) { + this.validFrom = validFrom; + } + + public Date getValidFrom() { + return validFrom; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Geolocation.java b/src/main/java/org/iata/cargo/model/Geolocation.java new file mode 100755 index 0000000..f3e279f --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Geolocation.java @@ -0,0 +1,185 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Geolocation details - e.g. for drones, automated vehicles... + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Geolocation) +public class Geolocation + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Geolocation) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Elevation from sea level - Change of data type to Value as of ontology v1.1 + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_elevation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_elevation) + protected Value elevation; + /** + * re of the Geolocation coordinates, standard is Degree + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_geolocationUnit) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_geolocationUnit) + protected String geolocationUnit; + /** + * Location latitude - Change of data type to string as of version 1.2 + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_latitude) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + @JsonProperty(Vocabulary.s_p_latitude) + protected Double latitude; + /** + * Location longitude - Change of data type to string as of version 1.2 + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_longitude) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + @JsonProperty(Vocabulary.s_p_longitude) + protected Double longitude; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Geolocation {"+ name)+"<")+ id)+">")+"}"); + } + + public void setElevation(Value elevation) { + this.elevation = elevation; + } + + public Value getElevation() { + return elevation; + } + + public void setGeolocationUnit(String geolocationUnit) { + this.geolocationUnit = geolocationUnit; + } + + public String getGeolocationUnit() { + return geolocationUnit; + } + + public void setLatitude(Double latitude) { + this.latitude = latitude; + } + + public Double getLatitude() { + return latitude; + } + + public void setLongitude(Double longitude) { + this.longitude = longitude; + } + + public Double getLongitude() { + return longitude; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Insurance.java b/src/main/java/org/iata/cargo/model/Insurance.java new file mode 100755 index 0000000..3476691 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Insurance.java @@ -0,0 +1,100 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Insurance details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Insurance) +public class Insurance + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Insurance) + protected Set types; + + /** + * Party covering the insurance + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_coveringParty) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_coveringParty) + protected Company coveringParty; + /** + * Insured amount - amount covered by the insurance policy + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_insuranceAmount) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_insuranceAmount) + protected Value insuranceAmount; + /** + * Reference to the shipment insured + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_insuranceShipment) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_insuranceShipment) + protected Shipment insuranceShipment; + + public void setCoveringParty(Company coveringParty) { + this.coveringParty = coveringParty; + } + + public Company getCoveringParty() { + return coveringParty; + } + + public void setInsuranceAmount(Value insuranceAmount) { + this.insuranceAmount = insuranceAmount; + } + + public Value getInsuranceAmount() { + return insuranceAmount; + } + + public void setInsuranceShipment(Shipment insuranceShipment) { + this.insuranceShipment = insuranceShipment; + } + + public Shipment getInsuranceShipment() { + return insuranceShipment; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/IotDevice.java b/src/main/java/org/iata/cargo/model/IotDevice.java new file mode 100755 index 0000000..05dc837 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/IotDevice.java @@ -0,0 +1,169 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * IoT Device details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_IotDevice) +public class IotDevice + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_IotDevice) + protected Set types; + + /** + * Manufacturer of the device + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_deviceManufacturer) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_deviceManufacturer) + protected Company deviceManufacturer; + /** + * Reference to the sensors linked to the device + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_sensors) + @JsonProperty(Vocabulary.s_p_sensors) + protected Set sensors; + /** + * Reference of the Logistic Object to which the Connected Device is linked (URI) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_associatedObject) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_associatedObject) + protected String associatedObject; + /** + * Natural language description of the device. It can describe how and where the device is attached. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_deviceDescription) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_deviceDescription) + protected String deviceDescription; + /** + * Commercial denomination of the device + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_deviceModel) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_deviceModel) + protected String deviceModel; + /** + * Name of the device defined by the device's owner + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_deviceName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_deviceName) + protected String deviceName; + /** + * Serial number that allows to uniquely identify the device + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_deviceSerialNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_deviceSerialNumber) + protected String deviceSerialNumber; + + public void setDeviceManufacturer(Company deviceManufacturer) { + this.deviceManufacturer = deviceManufacturer; + } + + public Company getDeviceManufacturer() { + return deviceManufacturer; + } + + public void setSensors(Set sensors) { + this.sensors = sensors; + } + + public Set getSensors() { + return sensors; + } + + public void setAssociatedObject(String associatedObject) { + this.associatedObject = associatedObject; + } + + public String getAssociatedObject() { + return associatedObject; + } + + public void setDeviceDescription(String deviceDescription) { + this.deviceDescription = deviceDescription; + } + + public String getDeviceDescription() { + return deviceDescription; + } + + public void setDeviceModel(String deviceModel) { + this.deviceModel = deviceModel; + } + + public String getDeviceModel() { + return deviceModel; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceSerialNumber(String deviceSerialNumber) { + this.deviceSerialNumber = deviceSerialNumber; + } + + public String getDeviceSerialNumber() { + return deviceSerialNumber; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Item.java b/src/main/java/org/iata/cargo/model/Item.java new file mode 100755 index 0000000..b33af63 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Item.java @@ -0,0 +1,297 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Item details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Item) +public class Item + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Item) + protected Set types; + + /** + * Dimensions of the item + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_dimensions) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_dimensions) + protected Dimensions dimensions; + /** + * URI of the PIECE that contains the Item + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_isInPiece) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_isInPiece) + protected Piece isInPiece; + /** + * Other identifier details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_otherIdentifiers_A) + @JsonProperty(Vocabulary.s_p_otherIdentifiers_A) + protected Set otherIdentifiers; + /** + * URI of the product + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_product_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_product_A) + protected Product product; + /** + * Production country details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_productionCountry) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_productionCountry) + protected Country productionCountry; + /** + * Quantity of the item when applicable, witth associated units of measure + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_quantity) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_quantity) + protected Value quantity; + /** + * Item target country + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_targetCountry) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_targetCountry) + protected Country targetCountry; + /** + * Product price per unit in the base + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_unitPrice) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_unitPrice) + protected Value unitPrice; + /** + * Weight of the item + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_weight) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_weight) + protected Value weight; + /** + * Production batch number / reference + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_batchNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_batchNumber) + protected String batchNumber; + /** + * Production lot number / reference + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_lotNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_lotNumber) + protected String lotNumber; + /** + * Product expiry date - e.g. for perishables goods or goods with programmed obsolescence + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_productExpiryDate) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_productExpiryDate) + protected Date productExpiryDate; + /** + * Production date + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_productionDate) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_productionDate) + protected Date productionDate; + /** + * Product quantity for unit price - e.g. 12 (eggs for one USD 1) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_quantityForUnitPrice) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + @JsonProperty(Vocabulary.s_p_quantityForUnitPrice) + protected Double quantityForUnitPrice; + + public void setDimensions(Dimensions dimensions) { + this.dimensions = dimensions; + } + + public Dimensions getDimensions() { + return dimensions; + } + + public void setIsInPiece(Piece isInPiece) { + this.isInPiece = isInPiece; + } + + public Piece getIsInPiece() { + return isInPiece; + } + + public void setOtherIdentifiers(Set otherIdentifiers) { + this.otherIdentifiers = otherIdentifiers; + } + + public Set getOtherIdentifiers() { + return otherIdentifiers; + } + + public void setProduct(Product product) { + this.product = product; + } + + public Product getProduct() { + return product; + } + + public void setProductionCountry(Country productionCountry) { + this.productionCountry = productionCountry; + } + + public Country getProductionCountry() { + return productionCountry; + } + + public void setQuantity(Value quantity) { + this.quantity = quantity; + } + + public Value getQuantity() { + return quantity; + } + + public void setTargetCountry(Country targetCountry) { + this.targetCountry = targetCountry; + } + + public Country getTargetCountry() { + return targetCountry; + } + + public void setUnitPrice(Value unitPrice) { + this.unitPrice = unitPrice; + } + + public Value getUnitPrice() { + return unitPrice; + } + + public void setWeight(Value weight) { + this.weight = weight; + } + + public Value getWeight() { + return weight; + } + + public void setBatchNumber(String batchNumber) { + this.batchNumber = batchNumber; + } + + public String getBatchNumber() { + return batchNumber; + } + + public void setLotNumber(String lotNumber) { + this.lotNumber = lotNumber; + } + + public String getLotNumber() { + return lotNumber; + } + + public void setProductExpiryDate(Date productExpiryDate) { + this.productExpiryDate = productExpiryDate; + } + + public Date getProductExpiryDate() { + return productExpiryDate; + } + + public void setProductionDate(Date productionDate) { + this.productionDate = productionDate; + } + + public Date getProductionDate() { + return productionDate; + } + + public void setQuantityForUnitPrice(Double quantityForUnitPrice) { + this.quantityForUnitPrice = quantityForUnitPrice; + } + + public Double getQuantityForUnitPrice() { + return quantityForUnitPrice; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/ItemDg.java b/src/main/java/org/iata/cargo/model/ItemDg.java new file mode 100755 index 0000000..7a0d406 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/ItemDg.java @@ -0,0 +1,122 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; + + +/** + * Dangerous Goods subtype of Item + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_ItemDg) +public class ItemDg + extends Item + implements Serializable +{ + + /** + * Contains the Emergency contact name (e.g. the name of the agency) and phone number (min required) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_emergencyContact) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_emergencyContact) + protected Person emergencyContact; + /** + * The total net weight of dangerous goods transported of this line item. For air transport the value must be the volume or mass in each package. + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_netWeightMeasure) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_netWeightMeasure) + protected Value netWeightMeasure; + /** + * Reportable quantities, To and from the USA only + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_reportableQuantity) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_reportableQuantity) + protected String reportableQuantity; + /** + * Additional information that may be added in addition to the proper shipping name to more fully describe the goods or to identify a particular condition + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_supplementaryInfoPrefix) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_supplementaryInfoPrefix) + protected String supplementaryInfoPrefix; + /** + * Additional information that may be added in addition to the proper shipping to more fully describe the goods or to identify a particular condition + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_supplementaryInfoSuffix) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_supplementaryInfoSuffix) + protected String supplementaryInfoSuffix; + + public void setEmergencyContact(Person emergencyContact) { + this.emergencyContact = emergencyContact; + } + + public Person getEmergencyContact() { + return emergencyContact; + } + + public void setNetWeightMeasure(Value netWeightMeasure) { + this.netWeightMeasure = netWeightMeasure; + } + + public Value getNetWeightMeasure() { + return netWeightMeasure; + } + + public void setReportableQuantity(String reportableQuantity) { + this.reportableQuantity = reportableQuantity; + } + + public String getReportableQuantity() { + return reportableQuantity; + } + + public void setSupplementaryInfoPrefix(String supplementaryInfoPrefix) { + this.supplementaryInfoPrefix = supplementaryInfoPrefix; + } + + public String getSupplementaryInfoPrefix() { + return supplementaryInfoPrefix; + } + + public void setSupplementaryInfoSuffix(String supplementaryInfoSuffix) { + this.supplementaryInfoSuffix = supplementaryInfoSuffix; + } + + public String getSupplementaryInfoSuffix() { + return supplementaryInfoSuffix; + } + +} diff --git a/src/main/java/org/iata/cargo/model/LiveAnimalsEpermit.java b/src/main/java/org/iata/cargo/model/LiveAnimalsEpermit.java new file mode 100755 index 0000000..e506a8d --- /dev/null +++ b/src/main/java/org/iata/cargo/model/LiveAnimalsEpermit.java @@ -0,0 +1,306 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Epermit for Live Animals details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_LiveAnimalsEpermit) +public class LiveAnimalsEpermit + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_LiveAnimalsEpermit) + protected Set types; + + /** + * Consignee company details, including complete name and address (box 3) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_consignee_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_consignee_A_A) + protected Company consignee; + /** + * Reference to the pieces and properties linked to the Permit (box 7 to 12) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_consignments) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_consignments) + protected Set consignments; + /** + * List of all the signatures of the Epermit (applicant box 4, issuing authority box 6, issuer box 13 and examining authority box 14) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_signatures) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_signatures) + protected Set signatures; + /** + * Indicates if the permit is a copy (true) or an original (false) (box 1) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_permitCopyIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_permitCopyIndicator) + protected String permitCopyIndicator; + /** + * The original number is a unique number allocated to each document by the relevant Management Authority. (box 1) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_permitNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_permitNumber) + protected String permitNumber; + /** + * Code specifying the document name. (box 1) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_permitTypeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_permitTypeCode) + protected String permitTypeCode; + /** + * Description if TypeCode is Other (box 1) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_permitTypeOther) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_permitTypeOther) + protected String permitTypeOther; + /** + * Permit Valid from (box 2) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_permitValidFrom) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_permitValidFrom) + protected Date permitValidFrom; + /** + * Permit Valid until (box 2) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_permitValidUntil) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_permitValidUntil) + protected Date permitValidUntil; + /** + * Special conditions (box 5) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_specialConditions) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_specialConditions) + protected String specialConditions; + /** + * Code indicating the purpose of the transaction (box 5a) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_transactionPurposeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_transactionPurposeCode) + protected String transactionPurposeCode; + /** + * Purpose of the transaction in free text (box 5a) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_transactionPurposeText) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_transactionPurposeText) + protected String transactionPurposeText; + /** + * Reference to the Air Waybill or other transport contract document (box 15) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_transportContractId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportContractId) + protected String transportContractId; + /** + * Code specifying the transport document name (box 15) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_transportContractTypeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportContractTypeCode) + protected String transportContractTypeCode; + + public void setConsignee(Company consignee) { + this.consignee = consignee; + } + + public Company getConsignee() { + return consignee; + } + + public void setConsignments(Set consignments) { + this.consignments = consignments; + } + + public Set getConsignments() { + return consignments; + } + + public void setSignatures(Set signatures) { + this.signatures = signatures; + } + + public Set getSignatures() { + return signatures; + } + + public void setPermitCopyIndicator(String permitCopyIndicator) { + this.permitCopyIndicator = permitCopyIndicator; + } + + public String getPermitCopyIndicator() { + return permitCopyIndicator; + } + + public void setPermitNumber(String permitNumber) { + this.permitNumber = permitNumber; + } + + public String getPermitNumber() { + return permitNumber; + } + + public void setPermitTypeCode(String permitTypeCode) { + this.permitTypeCode = permitTypeCode; + } + + public String getPermitTypeCode() { + return permitTypeCode; + } + + public void setPermitTypeOther(String permitTypeOther) { + this.permitTypeOther = permitTypeOther; + } + + public String getPermitTypeOther() { + return permitTypeOther; + } + + public void setPermitValidFrom(Date permitValidFrom) { + this.permitValidFrom = permitValidFrom; + } + + public Date getPermitValidFrom() { + return permitValidFrom; + } + + public void setPermitValidUntil(Date permitValidUntil) { + this.permitValidUntil = permitValidUntil; + } + + public Date getPermitValidUntil() { + return permitValidUntil; + } + + public void setSpecialConditions(String specialConditions) { + this.specialConditions = specialConditions; + } + + public String getSpecialConditions() { + return specialConditions; + } + + public void setTransactionPurposeCode(String transactionPurposeCode) { + this.transactionPurposeCode = transactionPurposeCode; + } + + public String getTransactionPurposeCode() { + return transactionPurposeCode; + } + + public void setTransactionPurposeText(String transactionPurposeText) { + this.transactionPurposeText = transactionPurposeText; + } + + public String getTransactionPurposeText() { + return transactionPurposeText; + } + + public void setTransportContractId(String transportContractId) { + this.transportContractId = transportContractId; + } + + public String getTransportContractId() { + return transportContractId; + } + + public void setTransportContractTypeCode(String transportContractTypeCode) { + this.transportContractTypeCode = transportContractTypeCode; + } + + public String getTransportContractTypeCode() { + return transportContractTypeCode; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Location.java b/src/main/java/org/iata/cargo/model/Location.java new file mode 100755 index 0000000..b88cb8e --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Location.java @@ -0,0 +1,203 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Loading location details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Location) +public class Location + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Location) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Address details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_address) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_address) + protected Address address; + /** + * Geolocation details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_geolocation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_geolocation) + protected Geolocation geolocation; + /** + * Location code of airport, freight terminal, seaport, rail station. UN/LOCODE city code (5 letter) or IATA airport code (3 letter) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_code) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_code) + protected String code; + /** + * Full name of the location + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_locationName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_locationName) + protected String locationName; + /** + * Location type - e.g. Airport, Freight terminal, Rail station, Seaport, etc + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_locationType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_locationType) + protected String locationType; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Location {"+ name)+"<")+ id)+">")+"}"); + } + + public void setAddress(Address address) { + this.address = address; + } + + public Address getAddress() { + return address; + } + + public void setGeolocation(Geolocation geolocation) { + this.geolocation = geolocation; + } + + public Geolocation getGeolocation() { + return geolocation; + } + + public void setCode(String code) { + this.code = code; + } + + public String getCode() { + return code; + } + + public void setLocationName(String locationName) { + this.locationName = locationName; + } + + public String getLocationName() { + return locationName; + } + + public void setLocationType(String locationType) { + this.locationType = locationType; + } + + public String getLocationType() { + return locationType; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/LogisticsObject.java b/src/main/java/org/iata/cargo/model/LogisticsObject.java new file mode 100755 index 0000000..5ba7ef1 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/LogisticsObject.java @@ -0,0 +1,153 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; +import org.springframework.data.mongodb.core.mapping.Document; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Logistics Object prent class, containing all common properties for logistics objects. + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_LogisticsObject) +@Document(collection = "logisticsObjects") +public class LogisticsObject + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + @JsonIgnore + protected String description; + @Types + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Events object + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_events) + protected Set events; + /** + * Allows to link Logistic Objects with IoT Devices + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_iotDevices) + protected Set iotDevices; + /** + * Company identifier from the Internet of Logistics of the entity that hosts the Logistics Object. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_companyIdentifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_companyIdentifier) + protected String companyIdentifier; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("LogisticsObject {"+ name)+"<")+ id)+">")+"}"); + } + + public void setEvents(Set events) { + this.events = events; + } + + public Set getEvents() { + return events; + } + + public void setIotDevices(Set iotDevices) { + this.iotDevices = iotDevices; + } + + public Set getIotDevices() { + return iotDevices; + } + + public void setCompanyIdentifier(String companyIdentifier) { + this.companyIdentifier = companyIdentifier; + } + + public String getCompanyIdentifier() { + return companyIdentifier; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Measurements.java b/src/main/java/org/iata/cargo/model/Measurements.java new file mode 100755 index 0000000..e7e5647 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Measurements.java @@ -0,0 +1,132 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Measurements details for Sensors, either generic or geolocation measurements are recorded + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Measurements) +public class Measurements + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Measurements) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Timestamp for the measurement + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_measurementTimestamp) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_measurementTimestamp) + protected Date measurementTimestamp; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Measurements {"+ name)+"<")+ id)+">")+"}"); + } + + public void setMeasurementTimestamp(Date measurementTimestamp) { + this.measurementTimestamp = measurementTimestamp; + } + + public Date getMeasurementTimestamp() { + return measurementTimestamp; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/MeasurementsGeoloc.java b/src/main/java/org/iata/cargo/model/MeasurementsGeoloc.java new file mode 100755 index 0000000..fbb1226 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/MeasurementsGeoloc.java @@ -0,0 +1,47 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; + + +/** + * Measurements details for Geolocation sensors + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_MeasurementsGeoloc) +public class MeasurementsGeoloc + extends Measurements + implements Serializable +{ + + /** + * Geolocation measurements details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_geolocationMeasurement) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_geolocationMeasurement) + protected Geolocation geolocationMeasurement; + + public void setGeolocationMeasurement(Geolocation geolocationMeasurement) { + this.geolocationMeasurement = geolocationMeasurement; + } + + public Geolocation getGeolocationMeasurement() { + return geolocationMeasurement; + } + +} diff --git a/src/main/java/org/iata/cargo/model/MeasurementsOther.java b/src/main/java/org/iata/cargo/model/MeasurementsOther.java new file mode 100755 index 0000000..ff12eca --- /dev/null +++ b/src/main/java/org/iata/cargo/model/MeasurementsOther.java @@ -0,0 +1,47 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; + + +/** + * Measurements details for sensors that are not geolocation sensors + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_MeasurementsOther) +public class MeasurementsOther + extends Measurements + implements Serializable +{ + + /** + * Value for measurements other than Geolocation, includes value and unit of measure as described in the Interactive Cargo RP + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_genericMeasurement) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_genericMeasurement) + protected Value genericMeasurement; + + public void setGenericMeasurement(Value genericMeasurement) { + this.genericMeasurement = genericMeasurement; + } + + public Value getGenericMeasurement() { + return genericMeasurement; + } + +} diff --git a/src/main/java/org/iata/cargo/model/MovementTimes.java b/src/main/java/org/iata/cargo/model/MovementTimes.java new file mode 100755 index 0000000..cb1a3ea --- /dev/null +++ b/src/main/java/org/iata/cargo/model/MovementTimes.java @@ -0,0 +1,168 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.RDFS; + + +/** + * Times refering to Transport Movements, used to describe specfic times such as Actual Departure time, etc. + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_MovementTimes) +public class MovementTimes + implements Serializable +{ + + @Id(generated = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + /** + * Direction to indicate if it's Inbound or Outbound + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_direction) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_direction) + protected String direction; + /** + * The milestone list still needs to be defined, it includes elements from CXML Code List 1.92 but is not limited to those values, e.g. block-on and block-off times might be added as a comparison to wheels off and touchdown. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_movementMilestone) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_movementMilestone) + protected String movementMilestone; + /** + * Timestamp (date and time) of the movement time. If the movement time is recorded asynchronously, the timestamp should reflect the actual time, not when the data was created. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_movementTimestamp) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_movementTimestamp) + protected Date movementTimestamp; + /** + * The type of time can be Actual, Estimated ot Scheduled + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_timeType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_timeType) + protected String timeType; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("MovementTimes {"+ name)+"<")+ id)+">")+"}"); + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public String getDirection() { + return direction; + } + + public void setMovementMilestone(String movementMilestone) { + this.movementMilestone = movementMilestone; + } + + public String getMovementMilestone() { + return movementMilestone; + } + + public void setMovementTimestamp(Date movementTimestamp) { + this.movementTimestamp = movementTimestamp; + } + + public Date getMovementTimestamp() { + return movementTimestamp; + } + + public void setTimeType(String timeType) { + this.timeType = timeType; + } + + public String getTimeType() { + return timeType; + } + +} diff --git a/src/main/java/org/iata/cargo/model/OtherIdentifier.java b/src/main/java/org/iata/cargo/model/OtherIdentifier.java new file mode 100755 index 0000000..78ab121 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/OtherIdentifier.java @@ -0,0 +1,148 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Other identifiers + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_OtherIdentifier) +public class OtherIdentifier + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_OtherIdentifier) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Item identifier + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_identifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_identifier) + protected String identifier; + /** + * Identifier type or description + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_otherIdentifierType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_otherIdentifierType) + protected String otherIdentifierType; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("OtherIdentifier {"+ name)+"<")+ id)+">")+"}"); + } + + public void setIdentifier(String identifier) { + this.identifier = identifier; + } + + public String getIdentifier() { + return identifier; + } + + public void setOtherIdentifierType(String otherIdentifierType) { + this.otherIdentifierType = otherIdentifierType; + } + + public String getOtherIdentifierType() { + return otherIdentifierType; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/OtherParty.java b/src/main/java/org/iata/cargo/model/OtherParty.java new file mode 100755 index 0000000..4c89808 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/OtherParty.java @@ -0,0 +1,168 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Company details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_OtherParty) +@Deprecated +public class OtherParty + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Company details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_companyDetails) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_companyDetails) + protected Company companyDetails; + /** + * Specifies the code of an additional party if required. Standard codes from UN/EDIFACT 3035 Party function code qualifier can be used. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_partyTypeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_partyTypeCode) + protected String partyTypeCode; + /** + * Role of other party - e.g. Notify party, Nominated agent, Customs broker, Manufacturer, Importer, Payer, Payee, ShipTo, ShipFrom, BillTo, BillFrom, RemitTo, RemitFrom + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_roleName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_roleName) + protected String roleName; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("OtherParty {"+ name)+"<")+ id)+">")+"}"); + } + + public void setCompanyDetails(Company companyDetails) { + this.companyDetails = companyDetails; + } + + public Company getCompanyDetails() { + return companyDetails; + } + + public void setPartyTypeCode(String partyTypeCode) { + this.partyTypeCode = partyTypeCode; + } + + public String getPartyTypeCode() { + return partyTypeCode; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + public String getRoleName() { + return roleName; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/PackagingType.java b/src/main/java/org/iata/cargo/model/PackagingType.java new file mode 100755 index 0000000..f9f0d38 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/PackagingType.java @@ -0,0 +1,82 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Packaging details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_PackagingType) +public class PackagingType + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_PackagingType) + protected Set types; + + /** + * Free Text. Describes the package type. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_packagingTypeDescription) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_packagingTypeDescription) + protected String packagingTypeDescription; + /** + * Packaging type identifier as per UNECE Rec 21 Annex V and VI e.g. 1A - Drum, steel - Packaging material code. Identifies the Logistic Unit package type. UN Recommendation on Transport of Dangerous Goods, Model Regulations + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_typeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_typeCode) + protected String typeCode; + + public void setPackagingTypeDescription(String packagingTypeDescription) { + this.packagingTypeDescription = packagingTypeDescription; + } + + public String getPackagingTypeDescription() { + return packagingTypeDescription; + } + + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + + public String getTypeCode() { + return typeCode; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Party.java b/src/main/java/org/iata/cargo/model/Party.java new file mode 100755 index 0000000..f97da96 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Party.java @@ -0,0 +1,132 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.RDFS; + + +/** + * Refers to a Company and its role in a specific context, e.g Company A as shipper. Cargo-XML Code List 1.15 can be used as a reference with the addition of "Notify Party" + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Party) +public class Party + implements Serializable +{ + + @Id(generated = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + /** + * Reference to the Company + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_partyDetails) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_partyDetails) + protected Company partyDetails; + /** + * Role fo the Company in the context. Can refer to Code List 1.36 in the CXML Toolkit + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_partyRole) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_partyRole) + protected String partyRole; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Party {"+ name)+"<")+ id)+">")+"}"); + } + + public void setPartyDetails(Company partyDetails) { + this.partyDetails = partyDetails; + } + + public Company getPartyDetails() { + return partyDetails; + } + + public void setPartyRole(String partyRole) { + this.partyRole = partyRole; + } + + public String getPartyRole() { + return partyRole; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Person.java b/src/main/java/org/iata/cargo/model/Person.java new file mode 100755 index 0000000..f11be24 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Person.java @@ -0,0 +1,306 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Person details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Person) +public class Person + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Person) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Refers to the Branch the person is associated with + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_associatedBranch) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_associatedBranch) + protected Branch associatedBranch; + /** + * Contact details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_contact) + @JsonProperty(Vocabulary.s_p_contact) + protected Set contact; + /** + * Linked documents to the person, e.g. driver's license, ID, etc. + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_documents) + @JsonProperty(Vocabulary.s_p_documents) + protected Set documents; + /** + * Contact type - e.g. Emergency contact, Customs contact, Customer contact + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_contactType_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_contactType_A) + protected String contactType; + /** + * Department / Division / Unit + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_department) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_department) + protected String department; + /** + * Employee ID + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_employeeId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_employeeId) + protected String employeeId; + /** + * First name / given name + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_firstName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_firstName) + protected String firstName; + /** + * Job title / position + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_jobTitle) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_jobTitle) + protected String jobTitle; + /** + * Last name / family name / surname + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_lastName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_lastName) + protected String lastName; + /** + * Middle name/ other name + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_middleName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_middleName) + protected String middleName; + /** + * Salutation + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_salutation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_salutation) + protected String salutation; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Person {"+ name)+"<")+ id)+">")+"}"); + } + + public void setAssociatedBranch(Branch associatedBranch) { + this.associatedBranch = associatedBranch; + } + + public Branch getAssociatedBranch() { + return associatedBranch; + } + + public void setContact(Set contact) { + this.contact = contact; + } + + public Set getContact() { + return contact; + } + + public void setDocuments(Set documents) { + this.documents = documents; + } + + public Set getDocuments() { + return documents; + } + + public void setContactType(String contactType) { + this.contactType = contactType; + } + + public String getContactType() { + return contactType; + } + + public void setDepartment(String department) { + this.department = department; + } + + public String getDepartment() { + return department; + } + + public void setEmployeeId(String employeeId) { + this.employeeId = employeeId; + } + + public String getEmployeeId() { + return employeeId; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public String getFirstName() { + return firstName; + } + + public void setJobTitle(String jobTitle) { + this.jobTitle = jobTitle; + } + + public String getJobTitle() { + return jobTitle; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public String getLastName() { + return lastName; + } + + public void setMiddleName(String middleName) { + this.middleName = middleName; + } + + public String getMiddleName() { + return middleName; + } + + public void setSalutation(String salutation) { + this.salutation = salutation; + } + + public String getSalutation() { + return salutation; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + + +} diff --git a/src/main/java/org/iata/cargo/model/Piece.java b/src/main/java/org/iata/cargo/model/Piece.java new file mode 100755 index 0000000..ce0c9ce --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Piece.java @@ -0,0 +1,618 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Individual piece or virtual grouping of pieces + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Piece) +public class Piece + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Piece) + protected Set types; + + /** + * Reference to the item(s) contained in the piece + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_containedItems) + @JsonProperty(Vocabulary.s_p_containedItems) + protected Set containedItems; + /** + * Details of contained piece(s) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_containedPieces) + @JsonProperty(Vocabulary.s_p_containedPieces) + protected Set containedPieces; + /** + * Customs details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_customsInfo) + @JsonProperty(Vocabulary.s_p_customsInfo) + protected Set customsInfo; + /** + * Dimensions details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_dimensions_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_dimensions_A) + protected Dimensions dimensions; + /** + * Reference documents details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_externalReferences) + @JsonProperty(Vocabulary.s_p_externalReferences) + protected Set externalReferences; + /** + * Weight details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_grossWeight) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_grossWeight) + protected Value grossWeight; + /** + * Other piece identification ( e.g. Shipping Marks, Seal) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_otherIdentifiers_A_A) + @JsonProperty(Vocabulary.s_p_otherIdentifiers_A_A) + protected Set otherIdentifiers; + /** + * Other party company details - e.g. the party to be notified + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_otherParty) + @JsonProperty(Vocabulary.s_p_otherParty) + protected Set otherParty; + /** + * Packaging details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_packagingType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_packagingType) + protected PackagingType packagingType; + /** + * Other party company details - e.g. the party to be notified + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_parties_A_A) + @JsonProperty(Vocabulary.s_p_parties_A_A) + protected Set parties; + /** + * Product of the piece, mandatory when there are no items + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_product_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_product_A_A) + protected Product product; + /** + * Goods production country, mandatory when there are no Items + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_productionCountry_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_productionCountry_A) + protected Country productionCountry; + /** + * Security details of the piece + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_securityDeclaration) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_securityDeclaration) + protected SecurityDeclaration securityDeclaration; + /** + * Security details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_securityStatus) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_securityStatus) + protected SecurityDeclaration securityStatus; + /** + * Security requests + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_serviceRequest) + @JsonProperty(Vocabulary.s_p_serviceRequest) + protected Set serviceRequest; + /** + * Shipment on which the piece is assigned to + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_shipment) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipment) + protected Shipment shipment; + /** + * Shipper company details - e.g. the party shipping the piece + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_shipper_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipper_A_A) + protected Company shipper; + /** + * Special Handling details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_specialHandling) + @JsonProperty(Vocabulary.s_p_specialHandling) + protected Set specialHandling; + /** + * Transport Movements on which the piece is transported + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMovements) + @JsonProperty(Vocabulary.s_p_transportMovements) + protected Set transportMovements; + /** + * Segment related to the transport status + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportSegments) + @JsonProperty(Vocabulary.s_p_transportSegments) + protected Set transportSegments; + /** + * ULD on which the (virtual) piece has been loaded into - URIs of the ULD + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_uldReference) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_uldReference) + protected ULD uldReference; + /** + * Volumetric weight details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_volumetricWeight) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_volumetricWeight) + protected VolumetricWeight volumetricWeight; + /** + * Coload indicator for the pieces (boolean) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_coload) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_coload) + protected Boolean coload; + /** + * The value of a shipment declared for carriage purposes , NVD if no value declared + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_declaredValueForCarriage) + @JsonProperty(Vocabulary.s_p_declaredValueForCarriage) + protected Set declaredValueForCarriage; + /** + * The value of a shipment declared for customs purposes , NVD if no value declared + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_declaredValueForCustoms) + @JsonProperty(Vocabulary.s_p_declaredValueForCustoms) + protected Set declaredValueForCustoms; + /** + * General goods description + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_goodsDescription) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_goodsDescription) + protected String goodsDescription; + /** + * Specify how the piece will be delivered (bulk or ULD) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_loadType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_loadType) + protected String loadType; + /** + * Reference identifying how the package is marked. Field is hardcode to "SSCC-18", "UPC" or "Other" + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_packageMarkCoded) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_packageMarkCoded) + protected String packageMarkCoded; + /** + * SSCC-18 code for the value of the package mark, company or bar code, free text, pallet code, etc. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_packagedeIdentifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_packagedeIdentifier) + protected String packagedeIdentifier; + /** + * Shipping marks + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_shippingMarks) + @JsonProperty(Vocabulary.s_p_shippingMarks) + protected Set shippingMarks; + /** + * Shipper's Load And Count ( total contained piece count as provided by shipper) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_slac) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_slac) + protected Integer slac; + /** + * Stackable indicator for the pieces (boolean) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_stackable) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_stackable) + protected Boolean stackable; + /** + * Turnable indicator for the pieces (boolean) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_turnable) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_turnable) + protected Boolean turnable; + /** + * Unique Piece Identifier (UPID) of the piece. Refer IATA Recommended Practice 1689 + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_upid_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_upid_A) + protected String upid; + + public void setContainedItems(Set containedItems) { + this.containedItems = containedItems; + } + + public Set getContainedItems() { + return containedItems; + } + + public void setContainedPieces(Set containedPieces) { + this.containedPieces = containedPieces; + } + + public Set getContainedPieces() { + return containedPieces; + } + + public void setCustomsInfo(Set customsInfo) { + this.customsInfo = customsInfo; + } + + public Set getCustomsInfo() { + return customsInfo; + } + + public void setDimensions(Dimensions dimensions) { + this.dimensions = dimensions; + } + + public Dimensions getDimensions() { + return dimensions; + } + + public void setExternalReferences(Set externalReferences) { + this.externalReferences = externalReferences; + } + + public Set getExternalReferences() { + return externalReferences; + } + + public void setGrossWeight(Value grossWeight) { + this.grossWeight = grossWeight; + } + + public Value getGrossWeight() { + return grossWeight; + } + + public void setOtherIdentifiers(Set otherIdentifiers) { + this.otherIdentifiers = otherIdentifiers; + } + + public Set getOtherIdentifiers() { + return otherIdentifiers; + } + + public void setOtherParty(Set otherParty) { + this.otherParty = otherParty; + } + + public Set getOtherParty() { + return otherParty; + } + + public void setPackagingType(PackagingType packagingType) { + this.packagingType = packagingType; + } + + public PackagingType getPackagingType() { + return packagingType; + } + + public void setParties(Set parties) { + this.parties = parties; + } + + public Set getParties() { + return parties; + } + + public void setProduct(Product product) { + this.product = product; + } + + public Product getProduct() { + return product; + } + + public void setProductionCountry(Country productionCountry) { + this.productionCountry = productionCountry; + } + + public Country getProductionCountry() { + return productionCountry; + } + + public void setSecurityDeclaration(SecurityDeclaration securityDeclaration) { + this.securityDeclaration = securityDeclaration; + } + + public SecurityDeclaration getSecurityDeclaration() { + return securityDeclaration; + } + + public void setSecurityStatus(SecurityDeclaration securityStatus) { + this.securityStatus = securityStatus; + } + + public SecurityDeclaration getSecurityStatus() { + return securityStatus; + } + + public void setServiceRequest(Set serviceRequest) { + this.serviceRequest = serviceRequest; + } + + public Set getServiceRequest() { + return serviceRequest; + } + + public void setShipment(Shipment shipment) { + this.shipment = shipment; + } + + public Shipment getShipment() { + return shipment; + } + + public void setShipper(Company shipper) { + this.shipper = shipper; + } + + public Company getShipper() { + return shipper; + } + + public void setSpecialHandling(Set specialHandling) { + this.specialHandling = specialHandling; + } + + public Set getSpecialHandling() { + return specialHandling; + } + + public void setTransportMovements(Set transportMovements) { + this.transportMovements = transportMovements; + } + + public Set getTransportMovements() { + return transportMovements; + } + + public void setTransportSegments(Set transportSegments) { + this.transportSegments = transportSegments; + } + + public Set getTransportSegments() { + return transportSegments; + } + + public void setUldReference(ULD uldReference) { + this.uldReference = uldReference; + } + + public ULD getUldReference() { + return uldReference; + } + + public void setVolumetricWeight(VolumetricWeight volumetricWeight) { + this.volumetricWeight = volumetricWeight; + } + + public VolumetricWeight getVolumetricWeight() { + return volumetricWeight; + } + + public void setCoload(Boolean coload) { + this.coload = coload; + } + + public Boolean getCoload() { + return coload; + } + + public void setDeclaredValueForCarriage(Set declaredValueForCarriage) { + this.declaredValueForCarriage = declaredValueForCarriage; + } + + public Set getDeclaredValueForCarriage() { + return declaredValueForCarriage; + } + + public void setDeclaredValueForCustoms(Set declaredValueForCustoms) { + this.declaredValueForCustoms = declaredValueForCustoms; + } + + public Set getDeclaredValueForCustoms() { + return declaredValueForCustoms; + } + + public void setGoodsDescription(String goodsDescription) { + this.goodsDescription = goodsDescription; + } + + public String getGoodsDescription() { + return goodsDescription; + } + + public void setLoadType(String loadType) { + this.loadType = loadType; + } + + public String getLoadType() { + return loadType; + } + + public void setPackageMarkCoded(String packageMarkCoded) { + this.packageMarkCoded = packageMarkCoded; + } + + public String getPackageMarkCoded() { + return packageMarkCoded; + } + + public void setPackagedeIdentifier(String packagedeIdentifier) { + this.packagedeIdentifier = packagedeIdentifier; + } + + public String getPackagedeIdentifier() { + return packagedeIdentifier; + } + + public void setShippingMarks(Set shippingMarks) { + this.shippingMarks = shippingMarks; + } + + public Set getShippingMarks() { + return shippingMarks; + } + + public void setSlac(Integer slac) { + this.slac = slac; + } + + public Integer getSlac() { + return slac; + } + + public void setStackable(Boolean stackable) { + this.stackable = stackable; + } + + public Boolean getStackable() { + return stackable; + } + + public void setTurnable(Boolean turnable) { + this.turnable = turnable; + } + + public Boolean getTurnable() { + return turnable; + } + + public void setUpid(String upid) { + this.upid = upid; + } + + public String getUpid() { + return upid; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } +} diff --git a/src/main/java/org/iata/cargo/model/PieceDg.java b/src/main/java/org/iata/cargo/model/PieceDg.java new file mode 100755 index 0000000..f01a2d9 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/PieceDg.java @@ -0,0 +1,156 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; + + +/** + * Dangerous Goods subtype of Piece + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_PieceDg) +public class PieceDg + extends Piece + implements Serializable +{ + + /** + * Reference to the Dangerous Goods declaration + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_dgDeclaration) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_dgDeclaration) + protected DgDeclaration dgDeclaration; + /** + * A statement identifying that the dangerous goods listed above are all contained in the same outer packaging. Takes the form All packed in one aaaa (description of packaging type) x nn (number of packages). Applies to air transport only. (Air) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_allPackedInOneIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_allPackedInOneIndicator) + protected Boolean allPackedInOneIndicator; + /** + * Applies to fissile material only, other than fissile excepted. A numeric value expressed to one decimal place preceded by the letters CSI. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_overpackCriticalitySafetyIndexNumeric) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_overpackCriticalitySafetyIndexNumeric) + protected String overpackCriticalitySafetyIndexNumeric; + /** + * Overpack indicator + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_overpackIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_overpackIndicator) + protected Boolean overpackIndicator; + /** + * A single number assigned to a package, overpack or freight container to provide control over radiation exposure. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_overpackT1) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_overpackT1) + protected String overpackT1; + /** + * Identifies the Logistic Unit package type. UN Recommendation on Transport of Dangerous Goods, Model Regulations + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_overpackTypeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_overpackTypeCode) + protected String overpackTypeCode; + /** + * Most instances of all packed in one will require the addition of the Q value which 1. Applies to air transport only. (Air) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_qValueNumeric) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + @JsonProperty(Vocabulary.s_p_qValueNumeric) + protected Double qValueNumeric; + + public void setDgDeclaration(DgDeclaration dgDeclaration) { + this.dgDeclaration = dgDeclaration; + } + + public DgDeclaration getDgDeclaration() { + return dgDeclaration; + } + + public void setAllPackedInOneIndicator(Boolean allPackedInOneIndicator) { + this.allPackedInOneIndicator = allPackedInOneIndicator; + } + + public Boolean getAllPackedInOneIndicator() { + return allPackedInOneIndicator; + } + + public void setOverpackCriticalitySafetyIndexNumeric(String overpackCriticalitySafetyIndexNumeric) { + this.overpackCriticalitySafetyIndexNumeric = overpackCriticalitySafetyIndexNumeric; + } + + public String getOverpackCriticalitySafetyIndexNumeric() { + return overpackCriticalitySafetyIndexNumeric; + } + + public void setOverpackIndicator(Boolean overpackIndicator) { + this.overpackIndicator = overpackIndicator; + } + + public Boolean getOverpackIndicator() { + return overpackIndicator; + } + + public void setOverpackT1(String overpackT1) { + this.overpackT1 = overpackT1; + } + + public String getOverpackT1() { + return overpackT1; + } + + public void setOverpackTypeCode(String overpackTypeCode) { + this.overpackTypeCode = overpackTypeCode; + } + + public String getOverpackTypeCode() { + return overpackTypeCode; + } + + public void setQValueNumeric(Double qValueNumeric) { + this.qValueNumeric = qValueNumeric; + } + + public Double getQValueNumeric() { + return qValueNumeric; + } + +} diff --git a/src/main/java/org/iata/cargo/model/PieceLiveAnimals.java b/src/main/java/org/iata/cargo/model/PieceLiveAnimals.java new file mode 100755 index 0000000..967d0c6 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/PieceLiveAnimals.java @@ -0,0 +1,313 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; + + +/** + * LiveAnimals subclass of Piece + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_PieceLiveAnimals) +public class PieceLiveAnimals + extends Piece + implements Serializable +{ + + /** + * Reference to the permits associated with the Live Animals + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_associatedEpermit) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_associatedEpermit) + protected EpermitConsignment associatedEpermit; + /** + * Country of last re-export (box 12a) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_exportTradeCountry) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_exportTradeCountry) + protected Country exportTradeCountry; + /** + * country of origin (box 12) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_originTradeCountry) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_originTradeCountry) + protected Country originTradeCountry; + /** + * Defined in Resolution Conf. 13.6 and is required for pre-Convention specimens (box 12b) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_acquisitionDatetime) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_acquisitionDatetime) + protected Date acquisitionDatetime; + /** + * total number of specimens exported in the current calendar year and the current annuela quota for the species concerned (box 11a) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_annualQuotaQuantity) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_annualQuotaQuantity) + protected Integer annualQuotaQuantity; + /** + * Operations code ID. Refers to the number of the registered captive-breeding or artifical propagation operation (box 12b) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_categoryCode) + @JsonProperty(Vocabulary.s_p_categoryCode) + protected Set categoryCode; + /** + * Appendix number of the convention (I, II or III) (box 10) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_goodsTypeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_goodsTypeCode) + protected String goodsTypeCode; + /** + * Appendix number of the convention (I, II or III) (box 10) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_goodsTypeExtensionCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_goodsTypeExtensionCode) + protected String goodsTypeExtensionCode; + /** + * Issuing date for Origin reference permit or re-export reference Certificate (box 12) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_originReferencePermitDatetime) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_originReferencePermitDatetime) + protected Date originReferencePermitDatetime; + /** + * identifier of Origin reference permit or re-export reference Certificate (box 12/12a) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_originReferencePermitId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_originReferencePermitId) + protected String originReferencePermitId; + /** + * Document type code of origin reference permit or re-export reference Certificate (box 12/12a) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_originReferencePermitTypeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_originReferencePermitTypeCode) + protected String originReferencePermitTypeCode; + /** + * Quantity including units (box 11) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_quantityAnimals) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_quantityAnimals) + protected Integer quantityAnimals; + /** + * Species common name (box 8) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_speciesCommonName) + @JsonProperty(Vocabulary.s_p_speciesCommonName) + protected Set speciesCommonName; + /** + * Species scientific name (box 7) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_speciesScientificName) + @JsonProperty(Vocabulary.s_p_speciesScientificName) + protected Set speciesScientificName; + /** + * Description of specimens, including age and sex if LA (box 9) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_specimenDescription) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_specimenDescription) + protected String specimenDescription; + /** + * Description of specimens, CITES type code (box 9) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_specimenTypeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_specimenTypeCode) + protected String specimenTypeCode; + + public void setAssociatedEpermit(EpermitConsignment associatedEpermit) { + this.associatedEpermit = associatedEpermit; + } + + public EpermitConsignment getAssociatedEpermit() { + return associatedEpermit; + } + + public void setExportTradeCountry(Country exportTradeCountry) { + this.exportTradeCountry = exportTradeCountry; + } + + public Country getExportTradeCountry() { + return exportTradeCountry; + } + + public void setOriginTradeCountry(Country originTradeCountry) { + this.originTradeCountry = originTradeCountry; + } + + public Country getOriginTradeCountry() { + return originTradeCountry; + } + + public void setAcquisitionDatetime(Date acquisitionDatetime) { + this.acquisitionDatetime = acquisitionDatetime; + } + + public Date getAcquisitionDatetime() { + return acquisitionDatetime; + } + + public void setAnnualQuotaQuantity(Integer annualQuotaQuantity) { + this.annualQuotaQuantity = annualQuotaQuantity; + } + + public Integer getAnnualQuotaQuantity() { + return annualQuotaQuantity; + } + + public void setCategoryCode(Set categoryCode) { + this.categoryCode = categoryCode; + } + + public Set getCategoryCode() { + return categoryCode; + } + + public void setGoodsTypeCode(String goodsTypeCode) { + this.goodsTypeCode = goodsTypeCode; + } + + public String getGoodsTypeCode() { + return goodsTypeCode; + } + + public void setGoodsTypeExtensionCode(String goodsTypeExtensionCode) { + this.goodsTypeExtensionCode = goodsTypeExtensionCode; + } + + public String getGoodsTypeExtensionCode() { + return goodsTypeExtensionCode; + } + + public void setOriginReferencePermitDatetime(Date originReferencePermitDatetime) { + this.originReferencePermitDatetime = originReferencePermitDatetime; + } + + public Date getOriginReferencePermitDatetime() { + return originReferencePermitDatetime; + } + + public void setOriginReferencePermitId(String originReferencePermitId) { + this.originReferencePermitId = originReferencePermitId; + } + + public String getOriginReferencePermitId() { + return originReferencePermitId; + } + + public void setOriginReferencePermitTypeCode(String originReferencePermitTypeCode) { + this.originReferencePermitTypeCode = originReferencePermitTypeCode; + } + + public String getOriginReferencePermitTypeCode() { + return originReferencePermitTypeCode; + } + + public void setQuantityAnimals(Integer quantityAnimals) { + this.quantityAnimals = quantityAnimals; + } + + public Integer getQuantityAnimals() { + return quantityAnimals; + } + + public void setSpeciesCommonName(Set speciesCommonName) { + this.speciesCommonName = speciesCommonName; + } + + public Set getSpeciesCommonName() { + return speciesCommonName; + } + + public void setSpeciesScientificName(Set speciesScientificName) { + this.speciesScientificName = speciesScientificName; + } + + public Set getSpeciesScientificName() { + return speciesScientificName; + } + + public void setSpecimenDescription(String specimenDescription) { + this.specimenDescription = specimenDescription; + } + + public String getSpecimenDescription() { + return specimenDescription; + } + + public void setSpecimenTypeCode(String specimenTypeCode) { + this.specimenTypeCode = specimenTypeCode; + } + + public String getSpecimenTypeCode() { + return specimenTypeCode; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Price.java b/src/main/java/org/iata/cargo/model/Price.java new file mode 100755 index 0000000..f7aae26 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Price.java @@ -0,0 +1,149 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Price associated to the offer/booking + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Price) +public class Price + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Price) + protected Set types; + + /** + * Reference to the Booking or Offer + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingOption_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingOption_A_A) + protected BookingOption bookingOption; + /** + * Reference to the Booking or Offer + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingRef) + @JsonProperty(Vocabulary.s_p_bookingRef) + protected Set bookingRef; + /** + * Rating used for pricing + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_ratings) + @JsonProperty(Vocabulary.s_p_ratings) + protected Set ratings; + /** + * Charge code for carrier, eg. CA, CB, etc + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_carrierChargeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_carrierChargeCode) + protected String carrierChargeCode; + /** + * Total price + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_grandTotal) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + @JsonProperty(Vocabulary.s_p_grandTotal) + protected Double grandTotal; + /** + * Terms of validity + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_validTo) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_validTo) + protected Date validTo; + + public void setBookingOption(BookingOption bookingOption) { + this.bookingOption = bookingOption; + } + + public BookingOption getBookingOption() { + return bookingOption; + } + + public void setBookingRef(Set bookingRef) { + this.bookingRef = bookingRef; + } + + public Set getBookingRef() { + return bookingRef; + } + + public void setRatings(Set ratings) { + this.ratings = ratings; + } + + public Set getRatings() { + return ratings; + } + + public void setCarrierChargeCode(String carrierChargeCode) { + this.carrierChargeCode = carrierChargeCode; + } + + public String getCarrierChargeCode() { + return carrierChargeCode; + } + + public void setGrandTotal(Double grandTotal) { + this.grandTotal = grandTotal; + } + + public Double getGrandTotal() { + return grandTotal; + } + + public void setValidTo(Date validTo) { + this.validTo = validTo; + } + + public Date getValidTo() { + return validTo; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Product.java b/src/main/java/org/iata/cargo/model/Product.java new file mode 100755 index 0000000..e624577 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Product.java @@ -0,0 +1,250 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Product details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Product) +public class Product + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Product) + protected Set types; + + /** + * Charateristics of the product + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_characteristics) + @JsonProperty(Vocabulary.s_p_characteristics) + protected Set characteristics; + /** + * Reference to the Items in which the product can be found. + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_isInItems) + @JsonProperty(Vocabulary.s_p_isInItems) + protected Set isInItems; + /** + * Reference to the pieces where the product can be found. This needs to be filled in case there is no Item + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_isInPieces) + @JsonProperty(Vocabulary.s_p_isInPieces) + protected Set isInPieces; + /** + * Manufacturing company details and contacts + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_manufacturer) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_manufacturer) + protected Company manufacturer; + /** + * Other product identifier (e.g. Bar code, UPC, EAN, Amazon) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_otherIdentifier_A) + @JsonProperty(Vocabulary.s_p_otherIdentifier_A) + protected Set otherIdentifier; + /** + * Indicates the specific commodity on which the rate class code is applied + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_commodityItemNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_commodityItemNumber) + protected String commodityItemNumber; + /** + * Reference identifying the type of standard code to be used for the Commodity Classification (Brussels Tariff Nomenclature, EU Harmonized System Code, UN Standard International Trade Classification). Mandatory if the commodity code is more than 6 digits + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_hsCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_hsCode) + protected String hsCode; + /** + * Commodity description + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_hsCommodityDescription) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_hsCommodityDescription) + protected String hsCommodityDescription; + /** + * If no Code provided, name of commodity + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_hsCommodityName) + @JsonProperty(Vocabulary.s_p_hsCommodityName) + protected Set hsCommodityName; + /** + * Issuer of the Commodity Code - e.g. Brussels Tariff Nomenclature, EU Harmonized System Code, UN Standard International Trade, etc. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_hsType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_hsType) + protected String hsType; + /** + * Product description + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_productDescription_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_productDescription_A) + protected String productDescription; + /** + * Manufacturer's unique product identifier + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_productIdentifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_productIdentifier) + protected String productIdentifier; + + public void setCharacteristics(Set characteristics) { + this.characteristics = characteristics; + } + + public Set getCharacteristics() { + return characteristics; + } + + public void setIsInItems(Set isInItems) { + this.isInItems = isInItems; + } + + public Set getIsInItems() { + return isInItems; + } + + public void setIsInPieces(Set isInPieces) { + this.isInPieces = isInPieces; + } + + public Set getIsInPieces() { + return isInPieces; + } + + public void setManufacturer(Company manufacturer) { + this.manufacturer = manufacturer; + } + + public Company getManufacturer() { + return manufacturer; + } + + public void setOtherIdentifier(Set otherIdentifier) { + this.otherIdentifier = otherIdentifier; + } + + public Set getOtherIdentifier() { + return otherIdentifier; + } + + public void setCommodityItemNumber(String commodityItemNumber) { + this.commodityItemNumber = commodityItemNumber; + } + + public String getCommodityItemNumber() { + return commodityItemNumber; + } + + public void setHsCode(String hsCode) { + this.hsCode = hsCode; + } + + public String getHsCode() { + return hsCode; + } + + public void setHsCommodityDescription(String hsCommodityDescription) { + this.hsCommodityDescription = hsCommodityDescription; + } + + public String getHsCommodityDescription() { + return hsCommodityDescription; + } + + public void setHsCommodityName(Set hsCommodityName) { + this.hsCommodityName = hsCommodityName; + } + + public Set getHsCommodityName() { + return hsCommodityName; + } + + public void setHsType(String hsType) { + this.hsType = hsType; + } + + public String getHsType() { + return hsType; + } + + public void setProductDescription(String productDescription) { + this.productDescription = productDescription; + } + + public String getProductDescription() { + return productDescription; + } + + public void setProductIdentifier(String productIdentifier) { + this.productIdentifier = productIdentifier; + } + + public String getProductIdentifier() { + return productIdentifier; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/ProductDg.java b/src/main/java/org/iata/cargo/model/ProductDg.java new file mode 100755 index 0000000..bec4168 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/ProductDg.java @@ -0,0 +1,228 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; + + +/** + * Dangerous Goods subtype of Product + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_ProductDg) +public class ProductDg + extends Product + implements Serializable +{ + + /** + * Dg Radioactive Material + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_dgRadioactiveMaterial) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_dgRadioactiveMaterial) + protected DgProductRadioactive dgRadioactiveMaterial; + /** + * Identifies the subsidiary hazard class / division identification containing a numeric field separated by a decimal. There may be 0, 1 or 2 subsidiary risk classes or divisions. If there is more than one, each should be separated by a comma. The subsidiary risk must be shown in parentheses. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_additionalHazardClassificationId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_additionalHazardClassificationId) + protected String additionalHazardClassificationId; + /** + * Contains additional information relating to an approval, permission or other specific detail applicable to the commodity (e.g. Dangerous Goods in excepted quantities) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_authorizationInformation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_authorizationInformation) + protected String authorizationInformation; + /** + * Specifies the reference to the group which identifies the kind of substances and articles that are deemed to be compatible. Mandatory field in case of transport of explosive articles or substances + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_explosiveCompatibilityGroupCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_explosiveCompatibilityGroupCode) + protected String explosiveCompatibilityGroupCode; + /** + * Identifies the hazard class / division identification containing a numeric field separated by a decimal + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_hazardClassificationId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_hazardClassificationId) + protected String hazardClassificationId; + /** + * Packing group, If used must reference I, II or III + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_packagingDangerLevelCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_packagingDangerLevelCode) + protected String packagingDangerLevelCode; + /** + * The packing instruction number applicable to the UN number / proper shipping name entry. A three-numeric value which may be preceded by the letter Y. Mandatory field for air transport (Air) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_packingInstructionNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_packingInstructionNumber) + protected String packingInstructionNumber; + /** + * The name used to describe the particular article or substance as shown in the UN Model Regulations Dangerous Goods List + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_properShippingName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_properShippingName) + protected String properShippingName; + /** + * For Air Mode: Special Provision may show a single, double or triple digit number preceded by the letter A, against appropriate entries in the List of Dangerous Goods + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_specialProvisionId) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_specialProvisionId) + protected String specialProvisionId; + /** + * This is additional chemical name(s) required for some proper shipping names. When added the technical must be shown in parentheses immediately following the proper shipping name. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_technicalName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_technicalName) + protected String technicalName; + /** + * Reference identifying the United Nations Dangerous Goods serial number assigned within the UN to substances and articles contained in a list of the dangerous goods most commonly carried. e.g. 1189 - Ethylene glycol monomethyl ether acetate + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_unNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_unNumber) + protected String unNumber; + + public void setDgRadioactiveMaterial(DgProductRadioactive dgRadioactiveMaterial) { + this.dgRadioactiveMaterial = dgRadioactiveMaterial; + } + + public DgProductRadioactive getDgRadioactiveMaterial() { + return dgRadioactiveMaterial; + } + + public void setAdditionalHazardClassificationId(String additionalHazardClassificationId) { + this.additionalHazardClassificationId = additionalHazardClassificationId; + } + + public String getAdditionalHazardClassificationId() { + return additionalHazardClassificationId; + } + + public void setAuthorizationInformation(String authorizationInformation) { + this.authorizationInformation = authorizationInformation; + } + + public String getAuthorizationInformation() { + return authorizationInformation; + } + + public void setExplosiveCompatibilityGroupCode(String explosiveCompatibilityGroupCode) { + this.explosiveCompatibilityGroupCode = explosiveCompatibilityGroupCode; + } + + public String getExplosiveCompatibilityGroupCode() { + return explosiveCompatibilityGroupCode; + } + + public void setHazardClassificationId(String hazardClassificationId) { + this.hazardClassificationId = hazardClassificationId; + } + + public String getHazardClassificationId() { + return hazardClassificationId; + } + + public void setPackagingDangerLevelCode(String packagingDangerLevelCode) { + this.packagingDangerLevelCode = packagingDangerLevelCode; + } + + public String getPackagingDangerLevelCode() { + return packagingDangerLevelCode; + } + + public void setPackingInstructionNumber(String packingInstructionNumber) { + this.packingInstructionNumber = packingInstructionNumber; + } + + public String getPackingInstructionNumber() { + return packingInstructionNumber; + } + + public void setProperShippingName(String properShippingName) { + this.properShippingName = properShippingName; + } + + public String getProperShippingName() { + return properShippingName; + } + + public void setSpecialProvisionId(String specialProvisionId) { + this.specialProvisionId = specialProvisionId; + } + + public String getSpecialProvisionId() { + return specialProvisionId; + } + + public void setTechnicalName(String technicalName) { + this.technicalName = technicalName; + } + + public String getTechnicalName() { + return technicalName; + } + + public void setUnNumber(String unNumber) { + this.unNumber = unNumber; + } + + public String getUnNumber() { + return unNumber; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Ranges.java b/src/main/java/org/iata/cargo/model/Ranges.java new file mode 100755 index 0000000..60c1fbd --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Ranges.java @@ -0,0 +1,171 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Ranges details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Ranges) +public class Ranges + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Ranges) + protected Set types; + + /** + * Amount + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_amount) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + @JsonProperty(Vocabulary.s_p_amount) + protected Double amount; + /** + * Maximum quantity + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_maximumQuantity) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + @JsonProperty(Vocabulary.s_p_maximumQuantity) + protected Double maximumQuantity; + /** + * Minimum quantity + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_minimumQuantity) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + @JsonProperty(Vocabulary.s_p_minimumQuantity) + protected Double minimumQuantity; + /** + * Rate class code e.g. Q + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_rateClassCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_rateClassCode) + protected String rateClassCode; + /** + * rating type - list uldRatingType + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_ratingType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_ratingType) + protected String ratingType; + /** + * Specific commodity rates linked to commodity + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_scr) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_scr) + protected String scr; + /** + * Specific commodity code linked to commodity + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_unitBasis) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_unitBasis) + protected String unitBasis; + + public void setAmount(Double amount) { + this.amount = amount; + } + + public Double getAmount() { + return amount; + } + + public void setMaximumQuantity(Double maximumQuantity) { + this.maximumQuantity = maximumQuantity; + } + + public Double getMaximumQuantity() { + return maximumQuantity; + } + + public void setMinimumQuantity(Double minimumQuantity) { + this.minimumQuantity = minimumQuantity; + } + + public Double getMinimumQuantity() { + return minimumQuantity; + } + + public void setRateClassCode(String rateClassCode) { + this.rateClassCode = rateClassCode; + } + + public String getRateClassCode() { + return rateClassCode; + } + + public void setRatingType(String ratingType) { + this.ratingType = ratingType; + } + + public String getRatingType() { + return ratingType; + } + + public void setScr(String scr) { + this.scr = scr; + } + + public String getScr() { + return scr; + } + + public void setUnitBasis(String unitBasis) { + this.unitBasis = unitBasis; + } + + public String getUnitBasis() { + return unitBasis; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Ratings.java b/src/main/java/org/iata/cargo/model/Ratings.java new file mode 100755 index 0000000..b847b7e --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Ratings.java @@ -0,0 +1,199 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Ratings details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Ratings) +public class Ratings + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Ratings) + protected Set types; + + /** + * Reference to the ranges + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_ranges) + @JsonProperty(Vocabulary.s_p_ranges) + protected Set ranges; + /** + * Code of the charge e.g. MY, SC, etc. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_chargeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_chargeCode) + protected String chargeCode; + /** + * Description of the charge e.g. Airfreight, fuel, etc. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_chargeDescription) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_chargeDescription) + protected String chargeDescription; + /** + * Indicates if charge is prepaid or collect (S, P) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_chargePaymentType) + @JsonProperty(Vocabulary.s_p_chargePaymentType) + protected Set chargePaymentType; + /** + * Type of charge e.g. Freight, Surcharges, etc. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_chargeType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_chargeType) + protected String chargeType; + /** + * Specification of the price e.g. Street, Group, Spot, etc. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_priceSpecification) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_priceSpecification) + protected String priceSpecification; + /** + * Reference of price specifications + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_priceSpecificationRef) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_priceSpecificationRef) + protected String priceSpecificationRef; + /** + * IATA 3-letter code of the rate combination point + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_rcp) + @JsonProperty(Vocabulary.s_p_rcp) + protected Set rcp; + /** + * Subtotal of the charge + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_subTotal) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + @JsonProperty(Vocabulary.s_p_subTotal) + protected Double subTotal; + + public void setRanges(Set ranges) { + this.ranges = ranges; + } + + public Set getRanges() { + return ranges; + } + + public void setChargeCode(String chargeCode) { + this.chargeCode = chargeCode; + } + + public String getChargeCode() { + return chargeCode; + } + + public void setChargeDescription(String chargeDescription) { + this.chargeDescription = chargeDescription; + } + + public String getChargeDescription() { + return chargeDescription; + } + + public void setChargePaymentType(Set chargePaymentType) { + this.chargePaymentType = chargePaymentType; + } + + public Set getChargePaymentType() { + return chargePaymentType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getChargeType() { + return chargeType; + } + + public void setPriceSpecification(String priceSpecification) { + this.priceSpecification = priceSpecification; + } + + public String getPriceSpecification() { + return priceSpecification; + } + + public void setPriceSpecificationRef(String priceSpecificationRef) { + this.priceSpecificationRef = priceSpecificationRef; + } + + public String getPriceSpecificationRef() { + return priceSpecificationRef; + } + + public void setRcp(Set rcp) { + this.rcp = rcp; + } + + public Set getRcp() { + return rcp; + } + + public void setSubTotal(Double subTotal) { + this.subTotal = subTotal; + } + + public Double getSubTotal() { + return subTotal; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/RegulatedEntity.java b/src/main/java/org/iata/cargo/model/RegulatedEntity.java new file mode 100755 index 0000000..f5ffe33 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/RegulatedEntity.java @@ -0,0 +1,188 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Regulated Entity + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_RegulatedEntity) +public class RegulatedEntity + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_RegulatedEntity) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Branch/Company + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_entity) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_entity) + protected Branch entity; + /** + * Regulated entity identifier (e.g. Regulated Agent Identifier) is mandatory + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_regulatedEntityIdentifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_regulatedEntityIdentifier) + protected Company regulatedEntityIdentifier; + /** + * Expiry date 4 digits month/year + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_expiryDate_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_expiryDate_A) + protected Date expiryDate; + /** + * Party type - e.g. RA - Regulated Agent, KC - Known Consignor, AO - Aircraft Operator, RC - Regulated Carrier + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_regulatedEntityCategory) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_regulatedEntityCategory) + protected String regulatedEntityCategory; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("RegulatedEntity {"+ name)+"<")+ id)+">")+"}"); + } + + public void setEntity(Branch entity) { + this.entity = entity; + } + + public Branch getEntity() { + return entity; + } + + public void setRegulatedEntityIdentifier(Company regulatedEntityIdentifier) { + this.regulatedEntityIdentifier = regulatedEntityIdentifier; + } + + public Company getRegulatedEntityIdentifier() { + return regulatedEntityIdentifier; + } + + public void setExpiryDate(Date expiryDate) { + this.expiryDate = expiryDate; + } + + public Date getExpiryDate() { + return expiryDate; + } + + public void setRegulatedEntityCategory(String regulatedEntityCategory) { + this.regulatedEntityCategory = regulatedEntityCategory; + } + + public String getRegulatedEntityCategory() { + return regulatedEntityCategory; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Request.java b/src/main/java/org/iata/cargo/model/Request.java new file mode 100755 index 0000000..5cf1545 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Request.java @@ -0,0 +1,190 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Request object, refers to the Quote request or Booking request + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Request) +public class Request + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Request) + protected Set types; + + /** + * Parties involved if known + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_parties_A_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_parties_A_A_A) + protected OtherParty parties; + /** + * Ratings preferences of the request + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_ratingsPreference_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_ratingsPreference_A) + protected Ratings ratingsPreference; + /** + * Details of the shipement that is to be shipped + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_shipmentDetails_A_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipmentDetails_A_A_A) + protected Shipment shipmentDetails; + /** + * Transport segment linked to the request, including the Departure and Arrival locations requested + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMovement_A_A_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportMovement_A_A_A_A) + protected TransportSegment transportMovement; + /** + * Unit preferences of the request (e.g. kg or cm) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_unitsPreference_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_unitsPreference_A) + protected Value unitsPreference; + /** + * Reference to the Allotment as per the contracts between forwarders and carriers + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_allotment_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_allotment_A) + protected String allotment; + /** + * Identification of the request type: Quote or Booking + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_requestType_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_requestType_A) + protected String requestType; + /** + * Indicate the security state of the shipment, screened or not + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_shipmentSecurityStatus_A_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_shipmentSecurityStatus_A_A_A) + protected String shipmentSecurityStatus; + + public void setParties(OtherParty parties) { + this.parties = parties; + } + + public OtherParty getParties() { + return parties; + } + + public void setRatingsPreference(Ratings ratingsPreference) { + this.ratingsPreference = ratingsPreference; + } + + public Ratings getRatingsPreference() { + return ratingsPreference; + } + + public void setShipmentDetails(Shipment shipmentDetails) { + this.shipmentDetails = shipmentDetails; + } + + public Shipment getShipmentDetails() { + return shipmentDetails; + } + + public void setTransportMovement(TransportSegment transportMovement) { + this.transportMovement = transportMovement; + } + + public TransportSegment getTransportMovement() { + return transportMovement; + } + + public void setUnitsPreference(Value unitsPreference) { + this.unitsPreference = unitsPreference; + } + + public Value getUnitsPreference() { + return unitsPreference; + } + + public void setAllotment(String allotment) { + this.allotment = allotment; + } + + public String getAllotment() { + return allotment; + } + + public void setRequestType(String requestType) { + this.requestType = requestType; + } + + public String getRequestType() { + return requestType; + } + + public void setShipmentSecurityStatus(String shipmentSecurityStatus) { + this.shipmentSecurityStatus = shipmentSecurityStatus; + } + + public String getShipmentSecurityStatus() { + return shipmentSecurityStatus; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Routing.java b/src/main/java/org/iata/cargo/model/Routing.java new file mode 100755 index 0000000..8e0772e --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Routing.java @@ -0,0 +1,155 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Routing details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Routing) +public class Routing + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Routing) + protected Set types; + + /** + * Reference to the BookingOption where the Routing is used + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingOption_A_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingOption_A_A_A) + protected BookingOption bookingOption; + /** + * Aircraft possibility code + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_aircraftPossibilityCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_aircraftPossibilityCode) + protected String aircraftPossibilityCode; + /** + * Latest Arrival date time (requested or proposed) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_latestArrivalDateTime) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_latestArrivalDateTime) + protected Date latestArrivalDateTime; + /** + * Maximum number of connections of the transport movement (requested or proposed) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_maxConnections) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_maxConnections) + protected Integer maxConnections; + /** + * Indicates interlining (requested or proposed) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_onlineInd) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_onlineInd) + protected Boolean onlineInd; + /** + * Indicates if RFS (Road Feeder Services) is included (requested or proposed) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_rfsInd) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1) + }) + @JsonProperty(Vocabulary.s_p_rfsInd) + protected Boolean rfsInd; + + public void setBookingOption(BookingOption bookingOption) { + this.bookingOption = bookingOption; + } + + public BookingOption getBookingOption() { + return bookingOption; + } + + public void setAircraftPossibilityCode(String aircraftPossibilityCode) { + this.aircraftPossibilityCode = aircraftPossibilityCode; + } + + public String getAircraftPossibilityCode() { + return aircraftPossibilityCode; + } + + public void setLatestArrivalDateTime(Date latestArrivalDateTime) { + this.latestArrivalDateTime = latestArrivalDateTime; + } + + public Date getLatestArrivalDateTime() { + return latestArrivalDateTime; + } + + public void setMaxConnections(Integer maxConnections) { + this.maxConnections = maxConnections; + } + + public Integer getMaxConnections() { + return maxConnections; + } + + public void setOnlineInd(Boolean onlineInd) { + this.onlineInd = onlineInd; + } + + public Boolean getOnlineInd() { + return onlineInd; + } + + public void setRfsInd(Boolean rfsInd) { + this.rfsInd = rfsInd; + } + + public Boolean getRfsInd() { + return rfsInd; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Schedule.java b/src/main/java/org/iata/cargo/model/Schedule.java new file mode 100755 index 0000000..30fab10 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Schedule.java @@ -0,0 +1,127 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Scheduling details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Schedule) +@Deprecated +public class Schedule + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Schedule) + protected Set types; + + /** + * arliest acceptance date time (requested or proposed) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_earliestAcceptanceTime_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_earliestAcceptanceTime_A) + protected String earliestAcceptanceTime; + /** + * Latest Acceptance time as per CargoIQ definition (requested, proposed or actual) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_latestAcceptanceTime_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_latestAcceptanceTime_A_A) + protected String latestAcceptanceTime; + /** + * Time of availability of the shipment as per CargoIQ definition + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_timeOfAvailability_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_timeOfAvailability_A_A) + protected String timeOfAvailability; + /** + * Total transit time as per CargoIQ definition + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_totalTransitTime_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_totalTransitTime_A_A) + protected String totalTransitTime; + + @Deprecated + public void setEarliestAcceptanceTime(String earliestAcceptanceTime) { + this.earliestAcceptanceTime = earliestAcceptanceTime; + } + + @Deprecated + public String getEarliestAcceptanceTime() { + return earliestAcceptanceTime; + } + + @Deprecated + public void setLatestAcceptanceTime(String latestAcceptanceTime) { + this.latestAcceptanceTime = latestAcceptanceTime; + } + + @Deprecated + public String getLatestAcceptanceTime() { + return latestAcceptanceTime; + } + + @Deprecated + public void setTimeOfAvailability(String timeOfAvailability) { + this.timeOfAvailability = timeOfAvailability; + } + + @Deprecated + public String getTimeOfAvailability() { + return timeOfAvailability; + } + + @Deprecated + public void setTotalTransitTime(String totalTransitTime) { + this.totalTransitTime = totalTransitTime; + } + + @Deprecated + public String getTotalTransitTime() { + return totalTransitTime; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/SecurityDeclaration.java b/src/main/java/org/iata/cargo/model/SecurityDeclaration.java new file mode 100755 index 0000000..ca91e72 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/SecurityDeclaration.java @@ -0,0 +1,237 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Security declaration details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_SecurityDeclaration) +public class SecurityDeclaration + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_SecurityDeclaration) + protected Set types; + + /** + * Name of person (or employee ID) who issued the security status + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_issuedBy) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_issuedBy) + protected Person issuedBy; + /** + * Any other regulated entity that accepts custody of the cargo and accepts the security status originally issued + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_otherRegulatedEntity) + @JsonProperty(Vocabulary.s_p_otherRegulatedEntity) + protected Set otherRegulatedEntity; + /** + * Piece linked to the Security Declaration + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_piece_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_piece_A_A) + protected Piece piece; + /** + * Regulated entity that tendered the consignment + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_receivedFrom) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_receivedFrom) + protected RegulatedEntity receivedFrom; + /** + * Regulated entity issuing the Security Declaration + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_regulatedEntityIssuer) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_regulatedEntityIssuer) + protected RegulatedEntity regulatedEntityIssuer; + /** + * Any additional information that may be required by an ICAO Member State + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_additionalSecurityInformation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_additionalSecurityInformation) + protected String additionalSecurityInformation; + /** + * Exemption code - e.g. BIOM- Bio-Medical Samples + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_groundsForExemption) + @JsonProperty(Vocabulary.s_p_groundsForExemption) + protected Set groundsForExemption; + /** + * Date and time when the security status was issued + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_issuedOn) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_issuedOn) + protected Date issuedOn; + /** + * Other methods used to secure the cargo + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_otherScreeningMethods) + @JsonProperty(Vocabulary.s_p_otherScreeningMethods) + protected Set otherScreeningMethods; + /** + * Screening methods which have been used to secure the cargo - e.g. EDS- Explosive Detection System + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_screeningMethod) + @JsonProperty(Vocabulary.s_p_screeningMethod) + protected Set screeningMethod; + /** + * Security status indicator (CXML 1.103) - e.g. SPX- Cargo Secure for Passenger and All-Cargo Aircraft + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_securityStatus_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_securityStatus_A) + protected String securityStatus; + + public void setIssuedBy(Person issuedBy) { + this.issuedBy = issuedBy; + } + + public Person getIssuedBy() { + return issuedBy; + } + + public void setOtherRegulatedEntity(Set otherRegulatedEntity) { + this.otherRegulatedEntity = otherRegulatedEntity; + } + + public Set getOtherRegulatedEntity() { + return otherRegulatedEntity; + } + + public void setPiece(Piece piece) { + this.piece = piece; + } + + public Piece getPiece() { + return piece; + } + + public void setReceivedFrom(RegulatedEntity receivedFrom) { + this.receivedFrom = receivedFrom; + } + + public RegulatedEntity getReceivedFrom() { + return receivedFrom; + } + + public void setRegulatedEntityIssuer(RegulatedEntity regulatedEntityIssuer) { + this.regulatedEntityIssuer = regulatedEntityIssuer; + } + + public RegulatedEntity getRegulatedEntityIssuer() { + return regulatedEntityIssuer; + } + + public void setAdditionalSecurityInformation(String additionalSecurityInformation) { + this.additionalSecurityInformation = additionalSecurityInformation; + } + + public String getAdditionalSecurityInformation() { + return additionalSecurityInformation; + } + + public void setGroundsForExemption(Set groundsForExemption) { + this.groundsForExemption = groundsForExemption; + } + + public Set getGroundsForExemption() { + return groundsForExemption; + } + + public void setIssuedOn(Date issuedOn) { + this.issuedOn = issuedOn; + } + + public Date getIssuedOn() { + return issuedOn; + } + + public void setOtherScreeningMethods(Set otherScreeningMethods) { + this.otherScreeningMethods = otherScreeningMethods; + } + + public Set getOtherScreeningMethods() { + return otherScreeningMethods; + } + + public void setScreeningMethod(Set screeningMethod) { + this.screeningMethod = screeningMethod; + } + + public Set getScreeningMethod() { + return screeningMethod; + } + + public void setSecurityStatus(String securityStatus) { + this.securityStatus = securityStatus; + } + + public String getSecurityStatus() { + return securityStatus; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Sensor.java b/src/main/java/org/iata/cargo/model/Sensor.java new file mode 100755 index 0000000..2b50559 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Sensor.java @@ -0,0 +1,136 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Sensor details and measurements, linked to Connected Devices + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Sensor) +public class Sensor + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Sensor) + protected Set types; + + /** + * Reference to the IoT Device to which the sensor is linked + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_iotDevice) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_iotDevice) + protected Set iotDevice; + /** + * Natural language description of the sensor + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_sensorDescription) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_sensorDescription) + protected String sensorDescription; + /** + * Name of the sensor defined by the sensor's manufacturer + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_sensorName) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_sensorName) + protected String sensorName; + /** + * Serial number that allows to uniquely identify the sensor + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_sensorSerialNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_sensorSerialNumber) + protected String sensorSerialNumber; + /** + * Type of sensor as described in Interactive Cargo RP + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_sensorType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_sensorType) + protected String sensorType; + + public void setIotDevice(Set iotDevice) { + this.iotDevice = iotDevice; + } + + public Set getIotDevice() { + return iotDevice; + } + + public void setSensorDescription(String sensorDescription) { + this.sensorDescription = sensorDescription; + } + + public String getSensorDescription() { + return sensorDescription; + } + + public void setSensorName(String sensorName) { + this.sensorName = sensorName; + } + + public String getSensorName() { + return sensorName; + } + + public void setSensorSerialNumber(String sensorSerialNumber) { + this.sensorSerialNumber = sensorSerialNumber; + } + + public String getSensorSerialNumber() { + return sensorSerialNumber; + } + + public void setSensorType(String sensorType) { + this.sensorType = sensorType; + } + + public String getSensorType() { + return sensorType; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/SensorGeoloc.java b/src/main/java/org/iata/cargo/model/SensorGeoloc.java new file mode 100755 index 0000000..7b6fe1f --- /dev/null +++ b/src/main/java/org/iata/cargo/model/SensorGeoloc.java @@ -0,0 +1,43 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; + + +/** + * Sensor measurements details for Geolocation sensors (sensorType = "Geolocation") + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_SensorGeoloc) +public class SensorGeoloc + extends Sensor + implements Serializable +{ + + /** + * Reference to the measurements recorded by the geolocation sensor + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_val) + @JsonProperty(Vocabulary.s_p_val) + protected Set val; + + public void setVal(Set val) { + this.val = val; + } + + public Set getVal() { + return val; + } + +} diff --git a/src/main/java/org/iata/cargo/model/SensorOther.java b/src/main/java/org/iata/cargo/model/SensorOther.java new file mode 100755 index 0000000..c5cb396 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/SensorOther.java @@ -0,0 +1,43 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; + + +/** + * Sensor measurements details for sensors other than Geolocation sensors (sensorType != "Geolocation") + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_SensorOther) +public class SensorOther + extends Sensor + implements Serializable +{ + + /** + * Reference to the measurements recorded by the sensor + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_val_A) + @JsonProperty(Vocabulary.s_p_val_A) + protected Set val; + + public void setVal(Set val) { + this.val = val; + } + + public Set getVal() { + return val; + } + +} diff --git a/src/main/java/org/iata/cargo/model/ServiceRequest.java b/src/main/java/org/iata/cargo/model/ServiceRequest.java new file mode 100755 index 0000000..352e089 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/ServiceRequest.java @@ -0,0 +1,117 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Service request details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_ServiceRequest) +public class ServiceRequest + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_ServiceRequest) + protected Set types; + + /** + * Service request code + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_code_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_code_A) + protected String code; + /** + * Service request description + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_serviceRequestDescription) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_serviceRequestDescription) + protected String serviceRequestDescription; + /** + * Service request statement text + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_statementText) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_statementText) + protected String statementText; + /** + * Service request statement type - e.g. Dangerous Goods, Lithium Ion Battery, Live Animal Certificate + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_statementType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_statementType) + protected String statementType; + + public void setCode(String code) { + this.code = code; + } + + public String getCode() { + return code; + } + + public void setServiceRequestDescription(String serviceRequestDescription) { + this.serviceRequestDescription = serviceRequestDescription; + } + + public String getServiceRequestDescription() { + return serviceRequestDescription; + } + + public void setStatementText(String statementText) { + this.statementText = statementText; + } + + public String getStatementText() { + return statementText; + } + + public void setStatementType(String statementType) { + this.statementType = statementType; + } + + public String getStatementType() { + return statementType; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Shipment.java b/src/main/java/org/iata/cargo/model/Shipment.java new file mode 100755 index 0000000..e9eaec3 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Shipment.java @@ -0,0 +1,319 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Shipment details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Shipment) +public class Shipment + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Shipment) + protected Set types; + + /** + * Details of contained piece(s) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_containedPiece) + @JsonProperty(Vocabulary.s_p_containedPiece) + protected Set containedPiece; + /** + * Name and UN/LOCODE code of the point or port of departure, shipment or destination, as required under the applicable delivery term + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_deliveryLocation) + @JsonProperty(Vocabulary.s_p_deliveryLocation) + protected Set deliveryLocation; + /** + * Dimensions details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_dimensions_A_A) + @JsonProperty(Vocabulary.s_p_dimensions_A_A) + protected Set dimensions; + /** + * Reference document details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_externalReferences_A) + @JsonProperty(Vocabulary.s_p_externalReferences_A) + protected Set externalReferences; + /** + * Insurance details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_insurance) + @JsonProperty(Vocabulary.s_p_insurance) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + protected Insurance insurance; + /** + * Parties details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_parties_A_A_A_A) + @JsonProperty(Vocabulary.s_p_parties_A_A_A_A) + protected Set parties; + /** + * Weight details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_totalGrossWeight) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_totalGrossWeight) + protected Value totalGrossWeight; + /** + * Volumetric weight details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_volumetricWeight_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_volumetricWeight_A) + protected Set volumetricWeight; + /** + * Waybill unique identifier (AWB or HWB) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_waybillNumber_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1), + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_waybillNumber_A_A) + protected Waybill waybillNumber; + /** + * he date at which the delivery is supposed to happen. Format is YYYYMMDD. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_deliveryDate) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_deliveryDate) + protected Date deliveryDate; + /** + * General goods description + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_goodsDescription_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_goodsDescription_A) + protected String goodsDescription; + /** + * Standard codes as defined by UNCEFACT and ICC that correspond to international rules for the interpretation of the most commonly used trade terms in different countries. UNECE recommendation n. 5 Incoterms 2000. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_incoterms) + @JsonProperty(Vocabulary.s_p_incoterms) + protected Set incoterms; + /** + * payment of Other Charges will be made at origin (prepaid) or at destination (collect) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_otherChargesIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_otherChargesIndicator) + protected String otherChargesIndicator; + /** + * Total Piece Count + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_totalPieceCount) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_totalPieceCount) + protected Integer totalPieceCount; + /** + * Total SLAC of all piece groups + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_totalSLAC) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_totalSLAC) + protected Integer totalSLAC; + /** + * payment for the Weight/Valuation will be made at origin (prepaid) or at destination (collect) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_weightValuationIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_weightValuationIndicator) + protected String weightValuationIndicator; + + public void setContainedPiece(Set containedPiece) { + this.containedPiece = containedPiece; + } + + public Set getContainedPiece() { + return containedPiece; + } + + public void setDeliveryLocation(Set deliveryLocation) { + this.deliveryLocation = deliveryLocation; + } + + public Set getDeliveryLocation() { + return deliveryLocation; + } + + public void setDimensions(Set dimensions) { + this.dimensions = dimensions; + } + + public Set getDimensions() { + return dimensions; + } + + public void setExternalReferences(Set externalReferences) { + this.externalReferences = externalReferences; + } + + public Set getExternalReferences() { + return externalReferences; + } + + public void setInsurance(Insurance insurance) { + this.insurance = insurance; + } + + public Insurance getInsurance() { + return insurance; + } + + public void setParties(Set parties) { + this.parties = parties; + } + + public Set getParties() { + return parties; + } + + public void setTotalGrossWeight(Value totalGrossWeight) { + this.totalGrossWeight = totalGrossWeight; + } + + public Value getTotalGrossWeight() { + return totalGrossWeight; + } + + public void setVolumetricWeight(Set volumetricWeight) { + this.volumetricWeight = volumetricWeight; + } + + public Set getVolumetricWeight() { + return volumetricWeight; + } + + public void setWaybillNumber(Waybill waybillNumber) { + this.waybillNumber = waybillNumber; + } + + public Waybill getWaybillNumber() { + return waybillNumber; + } + + public void setDeliveryDate(Date deliveryDate) { + this.deliveryDate = deliveryDate; + } + + public Date getDeliveryDate() { + return deliveryDate; + } + + public void setGoodsDescription(String goodsDescription) { + this.goodsDescription = goodsDescription; + } + + public String getGoodsDescription() { + return goodsDescription; + } + + public void setIncoterms(Set incoterms) { + this.incoterms = incoterms; + } + + public Set getIncoterms() { + return incoterms; + } + + public void setOtherChargesIndicator(String otherChargesIndicator) { + this.otherChargesIndicator = otherChargesIndicator; + } + + public String getOtherChargesIndicator() { + return otherChargesIndicator; + } + + public void setTotalPieceCount(Integer totalPieceCount) { + this.totalPieceCount = totalPieceCount; + } + + public Integer getTotalPieceCount() { + return totalPieceCount; + } + + public void setTotalSLAC(Integer totalSLAC) { + this.totalSLAC = totalSLAC; + } + + public Integer getTotalSLAC() { + return totalSLAC; + } + + public void setWeightValuationIndicator(String weightValuationIndicator) { + this.weightValuationIndicator = weightValuationIndicator; + } + + public String getWeightValuationIndicator() { + return weightValuationIndicator; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/SpecialHandling.java b/src/main/java/org/iata/cargo/model/SpecialHandling.java new file mode 100755 index 0000000..6fde3e4 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/SpecialHandling.java @@ -0,0 +1,81 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Special handling details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_SpecialHandling) +public class SpecialHandling + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_SpecialHandling) + protected Set types; + + /** + * Special handling code following IATA standards. Refer CXML1.16, e.g. PEP - Fruits and Vegetables + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_code_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_code_A_A) + protected String code; + /** + * Special handling text + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_handlingText) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_handlingText) + protected String handlingText; + + public void setCode(String code) { + this.code = code; + } + + public String getCode() { + return code; + } + + public void setHandlingText(String handlingText) { + this.handlingText = handlingText; + } + + public String getHandlingText() { + return handlingText; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Thing.java b/src/main/java/org/iata/cargo/model/Thing.java new file mode 100755 index 0000000..3fa1768 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Thing.java @@ -0,0 +1,106 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Thing) +public class Thing + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Thing) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Thing {"+ name)+"<")+ id)+">")+"}"); + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/TransportMeans.java b/src/main/java/org/iata/cargo/model/TransportMeans.java new file mode 100755 index 0000000..5e156cb --- /dev/null +++ b/src/main/java/org/iata/cargo/model/TransportMeans.java @@ -0,0 +1,205 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Transport means details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_TransportMeans) +public class TransportMeans + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_TransportMeans) + protected Set types; + + /** + * Company operating the transport means + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportCompany) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportCompany) + protected Company transportCompany; + /** + * Transport Movement on which the Transport Means is used + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMovement_A_A_A_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportMovement_A_A_A_A_A) + protected TransportMovement transportMovement; + /** + * Associated transport segment + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportSegment) + @JsonProperty(Vocabulary.s_p_transportSegment) + protected Set transportSegment; + /** + * Required for some CO2 calculations + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_typicalCO2Coefficient) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_typicalCO2Coefficient) + protected Value typicalCO2Coefficient; + /** + * Typical fuel comsumption (e.g. 20 000L / 1 000nm) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_typicalFuelConsumption) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_typicalFuelConsumption) + protected Value typicalFuelConsumption; + /** + * Model or make of the vehicle (e.g. A330-300) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_vehicleModel) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_vehicleModel) + protected String vehicleModel; + /** + * Vehicle identification - e.g. aircraft registration number + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_vehicleRegistration) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_vehicleRegistration) + protected String vehicleRegistration; + /** + * Size of the vehicle - free text + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_vehicleSize) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_vehicleSize) + protected String vehicleSize; + /** + * Vehicle or container type. Refer UNECE28, e.g. 4.00.0 - Aircraft, type unknown + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_vehicleType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_vehicleType) + protected String vehicleType; + + public void setTransportCompany(Company transportCompany) { + this.transportCompany = transportCompany; + } + + public Company getTransportCompany() { + return transportCompany; + } + + public void setTransportMovement(TransportMovement transportMovement) { + this.transportMovement = transportMovement; + } + + public TransportMovement getTransportMovement() { + return transportMovement; + } + + public void setTransportSegment(Set transportSegment) { + this.transportSegment = transportSegment; + } + + public Set getTransportSegment() { + return transportSegment; + } + + public void setTypicalCO2Coefficient(Value typicalCO2Coefficient) { + this.typicalCO2Coefficient = typicalCO2Coefficient; + } + + public Value getTypicalCO2Coefficient() { + return typicalCO2Coefficient; + } + + public void setTypicalFuelConsumption(Value typicalFuelConsumption) { + this.typicalFuelConsumption = typicalFuelConsumption; + } + + public Value getTypicalFuelConsumption() { + return typicalFuelConsumption; + } + + public void setVehicleModel(String vehicleModel) { + this.vehicleModel = vehicleModel; + } + + public String getVehicleModel() { + return vehicleModel; + } + + public void setVehicleRegistration(String vehicleRegistration) { + this.vehicleRegistration = vehicleRegistration; + } + + public String getVehicleRegistration() { + return vehicleRegistration; + } + + public void setVehicleSize(String vehicleSize) { + this.vehicleSize = vehicleSize; + } + + public String getVehicleSize() { + return vehicleSize; + } + + public void setVehicleType(String vehicleType) { + this.vehicleType = vehicleType; + } + + public String getVehicleType() { + return vehicleType; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/TransportMovement.java b/src/main/java/org/iata/cargo/model/TransportMovement.java new file mode 100755 index 0000000..7c70a75 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/TransportMovement.java @@ -0,0 +1,358 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; + + +/** + * Transport movement details, replaces the TransportSegment in v1.1 and above + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_TransportMovement) +public class TransportMovement + extends LogisticsObject + implements Serializable +{ + + /** + * Arrival location details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_arrivalLocation_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_arrivalLocation_A) + protected Location arrivalLocation; + /** + * Amount of CO2 emitted (e.g. 34 kg/km) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_co2Emissions) + @JsonProperty(Vocabulary.s_p_co2Emissions) + protected Set co2Emissions; + /** + * Departure location details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_departureLocation_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_departureLocation_A) + protected Location departureLocation; + /** + * Distance calculated if distance measured is not available + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_distanceCalculated) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_distanceCalculated) + protected Value distanceCalculated; + /** + * Distance measured + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_distanceMeasured) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_distanceMeasured) + protected Value distanceMeasured; + /** + * Reference to document or logistics object (URI) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_externalReferences_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_externalReferences_A_A) + protected ExternalReference externalReferences; + /** + * calculated fuel consumption, if measured not available + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_fuelAmountCalculated) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_fuelAmountCalculated) + protected Value fuelAmountCalculated; + /** + * actual measured fuel consumption + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_fuelAmountMeasured) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_fuelAmountMeasured) + protected Value fuelAmountMeasured; + /** + * Actual payload for the transport + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_payload) + @JsonProperty(Vocabulary.s_p_payload) + protected Set payload; + /** + * Transport means details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMeans) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportMeans) + protected TransportMeans transportMeans; + /** + * Name of the person operating the transport means (e.g. aircraft captain, truck driver) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMeansOperators) + @JsonProperty(Vocabulary.s_p_transportMeansOperators) + protected Set transportMeansOperators; + /** + * Pieces assigned to the transport segment + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportedPieces) + @JsonProperty(Vocabulary.s_p_transportedPieces) + protected Set transportedPieces; + /** + * ULDs assigned to the transport segment + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportedUlds) + @JsonProperty(Vocabulary.s_p_transportedUlds) + protected Set transportedUlds; + /** + * e.g. Kerosene, Diesel, SAF, Electricity [renewable], Electricity [non-renewable] + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_fuelType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_fuelType) + protected String fuelType; + /** + * Mode Code + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_modeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_modeCode) + protected String modeCode; + /** + * Pre-Carriage, Main-Carriage or On-Carriage + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_modeQualifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_modeQualifier) + protected String modeQualifier; + /** + * Seal identifier + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_seal) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_seal) + protected String seal; + /** + * Airline flight number, or rail / truck / maritime line id + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_transportIdentifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportIdentifier) + protected String transportIdentifier; + /** + * Free text field to be used for additional details regarding unplanned stops such as technical stops. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_unplannedStop) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_unplannedStop) + protected String unplannedStop; + + public void setArrivalLocation(Location arrivalLocation) { + this.arrivalLocation = arrivalLocation; + } + + public Location getArrivalLocation() { + return arrivalLocation; + } + + public void setCo2Emissions(Set co2Emissions) { + this.co2Emissions = co2Emissions; + } + + public Set getCo2Emissions() { + return co2Emissions; + } + + public void setDepartureLocation(Location departureLocation) { + this.departureLocation = departureLocation; + } + + public Location getDepartureLocation() { + return departureLocation; + } + + public void setDistanceCalculated(Value distanceCalculated) { + this.distanceCalculated = distanceCalculated; + } + + public Value getDistanceCalculated() { + return distanceCalculated; + } + + public void setDistanceMeasured(Value distanceMeasured) { + this.distanceMeasured = distanceMeasured; + } + + public Value getDistanceMeasured() { + return distanceMeasured; + } + + public void setExternalReferences(ExternalReference externalReferences) { + this.externalReferences = externalReferences; + } + + public ExternalReference getExternalReferences() { + return externalReferences; + } + + public void setFuelAmountCalculated(Value fuelAmountCalculated) { + this.fuelAmountCalculated = fuelAmountCalculated; + } + + public Value getFuelAmountCalculated() { + return fuelAmountCalculated; + } + + public void setFuelAmountMeasured(Value fuelAmountMeasured) { + this.fuelAmountMeasured = fuelAmountMeasured; + } + + public Value getFuelAmountMeasured() { + return fuelAmountMeasured; + } + + public void setPayload(Set payload) { + this.payload = payload; + } + + public Set getPayload() { + return payload; + } + + public void setTransportMeans(TransportMeans transportMeans) { + this.transportMeans = transportMeans; + } + + public TransportMeans getTransportMeans() { + return transportMeans; + } + + public void setTransportMeansOperators(Set transportMeansOperators) { + this.transportMeansOperators = transportMeansOperators; + } + + public Set getTransportMeansOperators() { + return transportMeansOperators; + } + + public void setTransportedPieces(Set transportedPieces) { + this.transportedPieces = transportedPieces; + } + + public Set getTransportedPieces() { + return transportedPieces; + } + + public void setTransportedUlds(Set transportedUlds) { + this.transportedUlds = transportedUlds; + } + + public Set getTransportedUlds() { + return transportedUlds; + } + + public void setFuelType(String fuelType) { + this.fuelType = fuelType; + } + + public String getFuelType() { + return fuelType; + } + + public void setModeCode(String modeCode) { + this.modeCode = modeCode; + } + + public String getModeCode() { + return modeCode; + } + + public void setModeQualifier(String modeQualifier) { + this.modeQualifier = modeQualifier; + } + + public String getModeQualifier() { + return modeQualifier; + } + + public void setSeal(String seal) { + this.seal = seal; + } + + public String getSeal() { + return seal; + } + + public void setTransportIdentifier(String transportIdentifier) { + this.transportIdentifier = transportIdentifier; + } + + public String getTransportIdentifier() { + return transportIdentifier; + } + + public void setUnplannedStop(String unplannedStop) { + this.unplannedStop = unplannedStop; + } + + public String getUnplannedStop() { + return unplannedStop; + } + +} diff --git a/src/main/java/org/iata/cargo/model/TransportSegment.java b/src/main/java/org/iata/cargo/model/TransportSegment.java new file mode 100755 index 0000000..b706158 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/TransportSegment.java @@ -0,0 +1,489 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Transport segment details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_TransportSegment) +@Deprecated +public class TransportSegment + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_TransportSegment) + protected Set types; + + /** + * Arrival location details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_arrivalLocation_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_arrivalLocation_A) + protected Location arrivalLocation; + /** + * Method of calculation of the CO2 emissions + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_co2CalculationMethod) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_co2CalculationMethod) + protected CO2CalcMethod co2CalculationMethod; + /** + * Amount of CO2 emitted (e.g. 34 kg/km) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_co2Emissions) + @JsonProperty(Vocabulary.s_p_co2Emissions) + protected Set co2Emissions; + /** + * Departure location details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_departureLocation_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_departureLocation_A) + protected Location departureLocation; + /** + * Distance calculated if distance measured is not available + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_distanceCalculated) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_distanceCalculated) + protected Value distanceCalculated; + /** + * Distance measured + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_distanceMeasured) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_distanceMeasured) + protected Value distanceMeasured; + /** + * Reference to document or logistics object (URI) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_externalReferences_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_externalReferences_A_A) + protected ExternalReference externalReferences; + /** + * calculated fuel consumption, if measured not available + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_fuelAmountCalculated) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_fuelAmountCalculated) + protected Value fuelAmountCalculated; + /** + * actual measured fuel consumption + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_fuelAmountMeasured) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_fuelAmountMeasured) + protected Value fuelAmountMeasured; + /** + * Actual payload for the transport + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_payload) + @JsonProperty(Vocabulary.s_p_payload) + protected Set payload; + /** + * Transport means details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMeans) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportMeans) + protected TransportMeans transportMeans; + /** + * Name of the person operating the transport means (e.g. aircraft captain, truck driver) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMeansOperators) + @JsonProperty(Vocabulary.s_p_transportMeansOperators) + protected Set transportMeansOperators; + /** + * Pieces assigned to the transport segment + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportedPieces) + @JsonProperty(Vocabulary.s_p_transportedPieces) + protected Set transportedPieces; + /** + * ULDs assigned to the transport segment + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportedUlds) + @JsonProperty(Vocabulary.s_p_transportedUlds) + protected Set transportedUlds; + /** + * Arrival date and time. Actual or planned depends on the movementType property + * + * Included in MovementTimes in v1.1 + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_arrivalDate) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_arrivalDate) + protected Date arrivalDate; + /** + * Departure date and time. Actual or planned depends on the movementType property + * + * Included in MovementTimes in v1.1 + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_departureDate) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#dateTime", max = 1) + }) + @JsonProperty(Vocabulary.s_p_departureDate) + protected Date departureDate; + /** + * e.g. Kerosene, Diesel, SAF, Electricity [renewable], Electricity [non-renewable] + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_fuelType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_fuelType) + protected String fuelType; + /** + * Mode Code + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_modeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_modeCode) + protected String modeCode; + /** + * Pre-Carriage, Main-Carriage or On-Carriage + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_modeQualifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_modeQualifier) + protected String modeQualifier; + /** + * Refers to the type of movement: Actual or planned + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_movementType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral", max = 1) + }) + @JsonProperty(Vocabulary.s_p_movementType) + protected String movementType; + /** + * Seal identifier + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_seal) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_seal) + protected String seal; + /** + * Identification of the segment level in the movement of the pieces: contractual, flight leg, truck movement, etc. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_segmentLevel) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral", max = 1) + }) + @JsonProperty(Vocabulary.s_p_segmentLevel) + protected String segmentLevel; + /** + * Airline flight number, or rail / truck / maritime line id + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_transportIdentifier) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_transportIdentifier) + protected String transportIdentifier; + + @Deprecated + public void setArrivalLocation(Location arrivalLocation) { + this.arrivalLocation = arrivalLocation; + } + + @Deprecated + public Location getArrivalLocation() { + return arrivalLocation; + } + + @Deprecated + public void setCo2CalculationMethod(CO2CalcMethod co2CalculationMethod) { + this.co2CalculationMethod = co2CalculationMethod; + } + + @Deprecated + public CO2CalcMethod getCo2CalculationMethod() { + return co2CalculationMethod; + } + + @Deprecated + public void setCo2Emissions(Set co2Emissions) { + this.co2Emissions = co2Emissions; + } + + @Deprecated + public Set getCo2Emissions() { + return co2Emissions; + } + + @Deprecated + public void setDepartureLocation(Location departureLocation) { + this.departureLocation = departureLocation; + } + + @Deprecated + public Location getDepartureLocation() { + return departureLocation; + } + + @Deprecated + public void setDistanceCalculated(Value distanceCalculated) { + this.distanceCalculated = distanceCalculated; + } + + @Deprecated + public Value getDistanceCalculated() { + return distanceCalculated; + } + + @Deprecated + public void setDistanceMeasured(Value distanceMeasured) { + this.distanceMeasured = distanceMeasured; + } + + @Deprecated + public Value getDistanceMeasured() { + return distanceMeasured; + } + + @Deprecated + public void setExternalReferences(ExternalReference externalReferences) { + this.externalReferences = externalReferences; + } + + @Deprecated + public ExternalReference getExternalReferences() { + return externalReferences; + } + + @Deprecated + public void setFuelAmountCalculated(Value fuelAmountCalculated) { + this.fuelAmountCalculated = fuelAmountCalculated; + } + + @Deprecated + public Value getFuelAmountCalculated() { + return fuelAmountCalculated; + } + + @Deprecated + public void setFuelAmountMeasured(Value fuelAmountMeasured) { + this.fuelAmountMeasured = fuelAmountMeasured; + } + + @Deprecated + public Value getFuelAmountMeasured() { + return fuelAmountMeasured; + } + + @Deprecated + public void setPayload(Set payload) { + this.payload = payload; + } + + @Deprecated + public Set getPayload() { + return payload; + } + + @Deprecated + public void setTransportMeans(TransportMeans transportMeans) { + this.transportMeans = transportMeans; + } + + @Deprecated + public TransportMeans getTransportMeans() { + return transportMeans; + } + + @Deprecated + public void setTransportMeansOperators(Set transportMeansOperators) { + this.transportMeansOperators = transportMeansOperators; + } + + @Deprecated + public Set getTransportMeansOperators() { + return transportMeansOperators; + } + + @Deprecated + public void setTransportedPieces(Set transportedPieces) { + this.transportedPieces = transportedPieces; + } + + @Deprecated + public Set getTransportedPieces() { + return transportedPieces; + } + + @Deprecated + public void setTransportedUlds(Set transportedUlds) { + this.transportedUlds = transportedUlds; + } + + @Deprecated + public Set getTransportedUlds() { + return transportedUlds; + } + + @Deprecated + public void setArrivalDate(Date arrivalDate) { + this.arrivalDate = arrivalDate; + } + + @Deprecated + public Date getArrivalDate() { + return arrivalDate; + } + + @Deprecated + public void setDepartureDate(Date departureDate) { + this.departureDate = departureDate; + } + + @Deprecated + public Date getDepartureDate() { + return departureDate; + } + + @Deprecated + public void setFuelType(String fuelType) { + this.fuelType = fuelType; + } + + @Deprecated + public String getFuelType() { + return fuelType; + } + + @Deprecated + public void setModeCode(String modeCode) { + this.modeCode = modeCode; + } + + @Deprecated + public String getModeCode() { + return modeCode; + } + + @Deprecated + public void setModeQualifier(String modeQualifier) { + this.modeQualifier = modeQualifier; + } + + @Deprecated + public String getModeQualifier() { + return modeQualifier; + } + + @Deprecated + public void setMovementType(String movementType) { + this.movementType = movementType; + } + + @Deprecated + public String getMovementType() { + return movementType; + } + + @Deprecated + public void setSeal(String seal) { + this.seal = seal; + } + + @Deprecated + public String getSeal() { + return seal; + } + + @Deprecated + public void setSegmentLevel(String segmentLevel) { + this.segmentLevel = segmentLevel; + } + + @Deprecated + public String getSegmentLevel() { + return segmentLevel; + } + + @Deprecated + public void setTransportIdentifier(String transportIdentifier) { + this.transportIdentifier = transportIdentifier; + } + + @Deprecated + public String getTransportIdentifier() { + return transportIdentifier; + } + +} diff --git a/src/main/java/org/iata/cargo/model/ULD.java b/src/main/java/org/iata/cargo/model/ULD.java new file mode 100755 index 0000000..6ed5327 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/ULD.java @@ -0,0 +1,399 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Unit Load Device details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_ULD) +public class ULD + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_ULD) + protected Set types; + + /** + * Reference documents details + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_externalReference) + @JsonProperty(Vocabulary.s_p_externalReference) + protected Set externalReference; + /** + * Tare weight of the empty ULD + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_tareWeight) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_tareWeight) + protected Value tareWeight; + /** + * Transport Movements on which the ULD are transported + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportMovements_A) + @JsonProperty(Vocabulary.s_p_transportMovements_A) + protected Set transportMovements; + /** + * Segment related to the ULD movement + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_transportSegments_A) + @JsonProperty(Vocabulary.s_p_transportSegments_A) + protected Set transportSegments; + /** + * Details of contained (virtual) piece(s) + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_upid) + @JsonProperty(Vocabulary.s_p_upid) + protected Set upid; + /** + * US / ATA Unit Load Device type code e.g. M2 + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_ataDesignator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_ataDesignator) + protected String ataDesignator; + /** + * Indicates if the ULD is Damaged + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_damageFlag) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", max = 1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#boolean", min = 1, max = -1) + }) + @JsonProperty(Vocabulary.s_p_damageFlag) + protected Boolean damageFlag; + /** + * Contains three designator of demurrage code, refer to RP 1654 (BCC, HHH, XXX, ZZZ) + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_demurrageCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_demurrageCode) + protected String demurrageCode; + /** + * ULD height or loading limitation code. Refer CXML Code List 1.47, e.g. R - ULD Height above 244 centimetres + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_loadingIndicator) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_loadingIndicator) + protected String loadingIndicator; + /** + * Number of doors + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_nbDoor) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_nbDoor) + protected Integer nbDoor; + /** + * Number of fittings + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_nbFittings) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_nbFittings) + protected Integer nbFittings; + /** + * Number of nets + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_nbNets) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_nbNets) + protected Integer nbNets; + /** + * Number of straps + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_nbStraps) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#integer", max = 1) + }) + @JsonProperty(Vocabulary.s_p_nbStraps) + protected Integer nbStraps; + /** + * Contains two designator codes of ODLN or Operational Damage Limit Notices. ODLN code is used to define type of damage after visually check the serviceability of ULDs section 7, Standard Specifications 40/3 or 40/4 in ULD Regulations + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_odlnCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_odlnCode) + protected String odlnCode; + /** + * Owner code of the ULD in aa, an or na format - owner can be an airline or leasing company + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_ownerCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_ownerCode) + protected String ownerCode; + /** + * ULD serial number + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_serialNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_serialNumber) + protected String serialNumber; + /** + * Designator of serviceablity condition e.g. SER or DAM + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_serviceabilityCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_serviceabilityCode) + protected String serviceabilityCode; + /** + * Remarks or Supplement Information + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_uldRemarks) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_uldRemarks) + protected String uldRemarks; + /** + * ULD seal number if applicable + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_uldSealNumber) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_uldSealNumber) + protected String uldSealNumber; + /** + * Standard Unit Load Device type code e.g. AKE - Certified Container - Contoured + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_uldTypeCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_uldTypeCode) + protected String uldTypeCode; + + public void setExternalReference(Set externalReference) { + this.externalReference = externalReference; + } + + public Set getExternalReference() { + return externalReference; + } + + public void setTareWeight(Value tareWeight) { + this.tareWeight = tareWeight; + } + + public Value getTareWeight() { + return tareWeight; + } + + public void setTransportMovements(Set transportMovements) { + this.transportMovements = transportMovements; + } + + public Set getTransportMovements() { + return transportMovements; + } + + @Deprecated + public void setTransportSegments(Set transportSegments) { + this.transportSegments = transportSegments; + } + + @Deprecated + public Set getTransportSegments() { + return transportSegments; + } + + public void setUpid(Set upid) { + this.upid = upid; + } + + public Set getUpid() { + return upid; + } + + public void setAtaDesignator(String ataDesignator) { + this.ataDesignator = ataDesignator; + } + + public String getAtaDesignator() { + return ataDesignator; + } + + public void setDamageFlag(Boolean damageFlag) { + this.damageFlag = damageFlag; + } + + public Boolean getDamageFlag() { + return damageFlag; + } + + public void setDemurrageCode(String demurrageCode) { + this.demurrageCode = demurrageCode; + } + + public String getDemurrageCode() { + return demurrageCode; + } + + public void setLoadingIndicator(String loadingIndicator) { + this.loadingIndicator = loadingIndicator; + } + + public String getLoadingIndicator() { + return loadingIndicator; + } + + public void setNbDoor(Integer nbDoor) { + this.nbDoor = nbDoor; + } + + public Integer getNbDoor() { + return nbDoor; + } + + public void setNbFittings(Integer nbFittings) { + this.nbFittings = nbFittings; + } + + public Integer getNbFittings() { + return nbFittings; + } + + public void setNbNets(Integer nbNets) { + this.nbNets = nbNets; + } + + public Integer getNbNets() { + return nbNets; + } + + public void setNbStraps(Integer nbStraps) { + this.nbStraps = nbStraps; + } + + public Integer getNbStraps() { + return nbStraps; + } + + public void setOdlnCode(String odlnCode) { + this.odlnCode = odlnCode; + } + + public String getOdlnCode() { + return odlnCode; + } + + public void setOwnerCode(String ownerCode) { + this.ownerCode = ownerCode; + } + + public String getOwnerCode() { + return ownerCode; + } + + public void setSerialNumber(String serialNumber) { + this.serialNumber = serialNumber; + } + + public String getSerialNumber() { + return serialNumber; + } + + public void setServiceabilityCode(String serviceabilityCode) { + this.serviceabilityCode = serviceabilityCode; + } + + public String getServiceabilityCode() { + return serviceabilityCode; + } + + public void setUldRemarks(String uldRemarks) { + this.uldRemarks = uldRemarks; + } + + public String getUldRemarks() { + return uldRemarks; + } + + public void setUldSealNumber(String uldSealNumber) { + this.uldSealNumber = uldSealNumber; + } + + public String getUldSealNumber() { + return uldSealNumber; + } + + public void setUldTypeCode(String uldTypeCode) { + this.uldTypeCode = uldTypeCode; + } + + public String getUldTypeCode() { + return uldTypeCode; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Value.java b/src/main/java/org/iata/cargo/model/Value.java new file mode 100755 index 0000000..2ff0294 --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Value.java @@ -0,0 +1,148 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Volumetric weight details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Value) +public class Value + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @OWLAnnotationProperty(iri = RDFS.LABEL) + @JsonIgnore + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Value) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Unit of measurement/ unit of account e.g. CMT - Centimetre, LTR - Litre (1 DM3), KGM - Kilogram, CHF - Swiss Franc + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_unit) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_unit) + protected String unit; + /** + * Value + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_value_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + @JsonProperty(Vocabulary.s_p_value_A) + protected Double value; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("Value {"+ name)+"<")+ id)+">")+"}"); + } + + public void setUnit(String unit) { + this.unit = unit; + } + + public String getUnit() { + return unit; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + + public void setValue(Double value) { + this.value = value; + } + + public Double getValue() { + return value; + } + +} diff --git a/src/main/java/org/iata/cargo/model/VolumetricWeight.java b/src/main/java/org/iata/cargo/model/VolumetricWeight.java new file mode 100755 index 0000000..55a197b --- /dev/null +++ b/src/main/java/org/iata/cargo/model/VolumetricWeight.java @@ -0,0 +1,148 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Map; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.Id; +import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Properties; +import cz.cvut.kbss.jopa.model.annotations.Types; +import cz.cvut.kbss.jopa.vocabulary.DC; +import cz.cvut.kbss.jopa.vocabulary.RDFS; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Unit of measurement details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_VolumetricWeight) +public class VolumetricWeight + implements Serializable +{ + + @Id(generated = true) + @ApiModelProperty(readOnly = true) + protected String id; + @JsonIgnore + @OWLAnnotationProperty(iri = RDFS.LABEL) + protected String name; + @JsonIgnore + @OWLAnnotationProperty(iri = cz.cvut.kbss.jopa.vocabulary.DC.Elements.DESCRIPTION) + protected String description; + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_VolumetricWeight) + protected Set types; + @Properties + @JsonIgnore + protected Map> properties; + + @JsonProperty("language") + @OWLAnnotationProperty(iri = DC.Terms.LANGUAGE) + protected String language; + + /** + * Chargeable weight + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_chargeableWeight) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_chargeableWeight) + protected Value chargeableWeight; + /** + * Volume to weight conversion factor + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_conversionFactor) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_conversionFactor) + protected Value conversionFactor; + + public void setId(String id) { + this.id = id; + } + + public String getId() { + return id; + } + + public void setName(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + + public void setTypes(Set types) { + this.types = types; + } + + public Set getTypes() { + return types; + } + + public void setProperties(Map> properties) { + this.properties = properties; + } + + public Map> getProperties() { + return properties; + } + + @Override + public String toString() { + return ((((("VolumetricWeight {"+ name)+"<")+ id)+">")+"}"); + } + + public void setChargeableWeight(Value chargeableWeight) { + this.chargeableWeight = chargeableWeight; + } + + public Value getChargeableWeight() { + return chargeableWeight; + } + + public void setConversionFactor(Value conversionFactor) { + this.conversionFactor = conversionFactor; + } + + public Value getConversionFactor() { + return conversionFactor; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + +} diff --git a/src/main/java/org/iata/cargo/model/Waybill.java b/src/main/java/org/iata/cargo/model/Waybill.java new file mode 100755 index 0000000..7a7f44c --- /dev/null +++ b/src/main/java/org/iata/cargo/model/Waybill.java @@ -0,0 +1,258 @@ + +package org.iata.cargo.model; + +import java.io.Serializable; +import java.util.Set; + +import org.iata.cargo.Vocabulary; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import cz.cvut.kbss.jopa.model.annotations.OWLClass; +import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty; +import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint; +import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraints; +import cz.cvut.kbss.jopa.model.annotations.Types; +import io.swagger.annotations.ApiModelProperty; + + +/** + * Waybill details + * + * This class was generated by OWL2Java 0.16.4 + * + */ +@OWLClass(iri = Vocabulary.s_c_Waybill) +public class Waybill + extends LogisticsObject + implements Serializable +{ + + @Types + @JsonProperty("@type") + @ApiModelProperty(allowableValues = Vocabulary.s_c_Waybill) + protected Set types; + /** + * Refers to the Booking option + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_booking) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_booking) + protected BookingOption booking; + /** + * Refers to the Booking + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_bookingRef_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = Vocabulary.s_c_Thing, max = 1) + }) + @JsonProperty(Vocabulary.s_p_bookingRef_A) + protected Booking bookingRef; + /** + * Refers to the Waybill(s) contained + * + */ + @OWLObjectProperty(iri = Vocabulary.s_p_containedWaybills) + @JsonProperty(Vocabulary.s_p_containedWaybills) + protected Set containedWaybills; + /** + * Indicates the details of accounting information. Free text e.g. PAYMENT BY CERTIFIED CHEQUE etc. + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_accountingInformation) + @JsonProperty(Vocabulary.s_p_accountingInformation) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + protected String accountingInformation; + /** + * Charges levied at destination accruing to the last carrier, in destination currency + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_destinationCharges) + @JsonProperty(Vocabulary.s_p_destinationCharges) + protected Set destinationCharges; + /** + * ISO 3-letter currency code of destination + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_destinationCurrencyCode) + @JsonProperty(Vocabulary.s_p_destinationCurrencyCode) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + protected String destinationCurrencyCode; + /** + * Conversion rate applied + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_destinationCurrencyRate) + @JsonProperty(Vocabulary.s_p_destinationCurrencyRate) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#double", max = 1) + }) + protected Double destinationCurrencyRate; + /** + * The shipper or its Agent may enter the appropriate optional shipping + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_optionalShippingInfo) + @JsonProperty(Vocabulary.s_p_optionalShippingInfo) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + protected String optionalShippingInfo; + /** + * Optional shipping reference number if any + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_optionalShippingRefNo) + @JsonProperty(Vocabulary.s_p_optionalShippingRefNo) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + protected String optionalShippingRefNo; + /** + * House or Master Waybill unique identifier + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_waybillNumber_A_A_A) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", min = 1, max = -1), + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_waybillNumber_A_A_A) + protected String waybillNumber; + /** + * Prefix used for the Waybill Number + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_waybillPrefix) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_waybillPrefix) + protected String waybillPrefix; + /** + * Type of the Waybill: House, Direct or Master + * + */ + @OWLDataProperty(iri = Vocabulary.s_p_waybillType) + @ParticipationConstraints({ + @ParticipationConstraint(owlObjectIRI = "http://www.w3.org/2001/XMLSchema#string", max = 1) + }) + @JsonProperty(Vocabulary.s_p_waybillType) + protected String waybillType; + + public void setBooking(BookingOption booking) { + this.booking = booking; + } + + public BookingOption getBooking() { + return booking; + } + + @Deprecated + public void setBookingRef(Booking bookingRef) { + this.bookingRef = bookingRef; + } + + @Deprecated + public Booking getBookingRef() { + return bookingRef; + } + + public void setContainedWaybills(Set containedWaybills) { + this.containedWaybills = containedWaybills; + } + + public Set getContainedWaybills() { + return containedWaybills; + } + + public void setAccountingInformation(String accountingInformation) { + this.accountingInformation = accountingInformation; + } + + public String getAccountingInformation() { + return accountingInformation; + } + + public void setDestinationCharges(Set destinationCharges) { + this.destinationCharges = destinationCharges; + } + + public Set getDestinationCharges() { + return destinationCharges; + } + + public void setDestinationCurrencyCode(String destinationCurrencyCode) { + this.destinationCurrencyCode = destinationCurrencyCode; + } + + public String getDestinationCurrencyCode() { + return destinationCurrencyCode; + } + + public void setDestinationCurrencyRate(Double destinationCurrencyRate) { + this.destinationCurrencyRate = destinationCurrencyRate; + } + + public Double getDestinationCurrencyRate() { + return destinationCurrencyRate; + } + + public void setOptionalShippingInfo(String optionalShippingInfo) { + this.optionalShippingInfo = optionalShippingInfo; + } + + public String getOptionalShippingInfo() { + return optionalShippingInfo; + } + + public void setOptionalShippingRefNo(String optionalShippingRefNo) { + this.optionalShippingRefNo = optionalShippingRefNo; + } + + public String getOptionalShippingRefNo() { + return optionalShippingRefNo; + } + + public void setWaybillNumber(String waybillNumber) { + this.waybillNumber = waybillNumber; + } + + public String getWaybillNumber() { + return waybillNumber; + } + + public void setWaybillPrefix(String waybillPrefix) { + this.waybillPrefix = waybillPrefix; + } + + public String getWaybillPrefix() { + return waybillPrefix; + } + + public void setWaybillType(String waybillType) { + this.waybillType = waybillType; + } + + public String getWaybillType() { + return waybillType; + } + + public Set getTypes() { + return types; + } + + public void setTypes(Set types) { + this.types = types; + } + +}