diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..634fb0fb --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + # Location of .github/workflows + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/actions/download/action.yml b/.github/workflows/actions/download/action.yml deleted file mode 100644 index f6551b7b..00000000 --- a/.github/workflows/actions/download/action.yml +++ /dev/null @@ -1,93 +0,0 @@ -# Download action: -# - Downloads rack-box files -# - Packages rack-box files - -name: 'Download rack-box files' -description: 'Download files into rack-box/files' - -# Assumes the following actions have already been called: -# - Check out RACK source -# - Check out RACK wiki -# - Set up Python -# - Cache Python dependencies - -# These actions can't be moved here because a composite action can -# hold only run steps, not calls to other actions. - -runs: - using: 'composite' - - steps: - - name: Start rack-box container asynchronously - shell: bash - run: | - docker pull gehighassurance/rack-box:dev - docker run --rm --detach -p 80:80 -p 12050-12092:12050-12092 -p 3030:3030 gehighassurance/rack-box:dev - - - name: Download Fuseki release - shell: bash - run: | - curl -LSfs https://archive.apache.org/dist/jena/binaries/apache-jena-fuseki-4.5.0.tar.gz -o RACK/rack-box/files/fuseki.tar.gz - - - name: Download SemTK release - shell: bash - run: | - curl -LSfs https://github.com/ge-semtk/semtk/releases/download/v2.5.0-20220801/semtk-opensource-v2.5.0-20220801-dist.tar.gz -o RACK/rack-box/files/semtk.tar.gz - - - name: Download CSS stylesheet - shell: bash - run: | - curl -LSfs https://github.com/KrauseFx/markdown-to-html-github-style/raw/master/style.css -o RACK/rack-box/files/style.css - - - name: Download systemctl script - shell: bash - run: | - curl -LSfs https://github.com/gdraheim/docker-systemctl-replacement/raw/v1.5.4505/files/docker/systemctl3.py -o RACK/rack-box/files/systemctl3.py - - - name: Generate OWL files - shell: bash - run: | - RACK/cli/setup-owl.sh -b - - - name: Package RACK ASSIST - shell: bash - run: | - tar cfz RACK/rack-box/files/rack-assist.tar.gz RACK/assist - - - name: Package RACK CLI - shell: bash - run: | - cd RACK/cli - python3 -m pip install --upgrade pip setuptools wheel - pip3 wheel --wheel-dir=wheels -r requirements.txt - pip3 wheel --wheel-dir=wheels . - cd ${{ github.workspace }} - tar cfz RACK/rack-box/files/rack-cli.tar.gz RACK/cli/{*.sh,wheels} - - - name: Package RACK documentation - shell: bash - run: | - sudo npm install -g github-wikito-converter markdown-to-html - cp RACK.wiki/_Footer.md RACK.wiki/Copyright.md - gwtc -t RACK-in-a-Box RACK.wiki - markdown -t RACK-in-a-box -s style.css RACK.wiki/_Welcome.md > index.html - sed -i -e 's/>NodeGroupService/ onclick="javascript:event.target.port=12058">NodeGroupService/' index.html - mv documentation.html index.html RACK/rack-box/files - - - name: Generate CDR files - shell: bash - run: | - pip3 install RACK/cli/wheels/*.whl - tar xfz RACK/rack-box/files/semtk.tar.gz semtk-opensource/standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar - RACK/nodegroups/generate-cdrs.sh semtk-opensource/standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar - - - name: Package RACK ontology and data - shell: bash - run: | - tar cfz RACK/rack-box/files/rack.tar.gz --exclude=.git --exclude=.github --exclude=assist --exclude=cli --exclude=rack-box --exclude=tests --exclude=tools RACK - - - name: Always stop rack-box container - if: ${{ always() }} - shell: bash - run: | - docker container stop $(docker container ps --filter ancestor=gehighassurance/rack-box:dev -q) diff --git a/.github/workflows/assemble-files.yml b/.github/workflows/assemble-files.yml new file mode 100644 index 00000000..3eb6ef0c --- /dev/null +++ b/.github/workflows/assemble-files.yml @@ -0,0 +1,152 @@ +# Assembles files for rack-box builds (reusable workflow) + +on: + workflow_call: + +jobs: + +# cache-files job: +# - Asks cache for rack-box files + + cache-files: + runs-on: ubuntu-20.04 + outputs: + cache-hit: ${{ steps.cache.outputs.cache-hit }} + + steps: + - name: Ask cache for rack-box files + uses: actions/cache@v3 + id: cache + with: + path: RACK/rack-box/files + key: files-${{ github.sha }} + +# download-files job: +# - Downloads files for rack-box builds +# - Packages files for rack-box builds + + download-files: + needs: cache-files + runs-on: ubuntu-20.04 + if: needs.cache-files.outputs.cache-hit == false + + steps: + - name: Start rack-box container (needed for CDR files) + shell: bash + run: | + docker pull gehighassurance/rack-box:dev + docker run --rm --detach -p 3030:3030 -p 12050-12091:12050-12091 gehighassurance/rack-box:dev + + - name: Check out RACK source + uses: actions/checkout@v3 + with: + repository: ge-high-assurance/RACK + path: RACK + + - name: Check out RACK wiki + uses: actions/checkout@v3 + with: + repository: ge-high-assurance/RACK.wiki + path: RACK.wiki + + - name: Prepare to cache rack-box files + uses: actions/cache@v3 + id: cache + with: + path: RACK/rack-box/files + key: files-${{ github.sha }} + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.8 + + - name: Cache Python dependencies + uses: actions/cache@v3 + with: + # This path is specific to Ubuntu + path: ~/.cache/pip + # Look to see if there is a cache hit for the corresponding requirements file + key: ${{ runner.os }}-pip-${{ hashFiles('RACK/cli/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + ${{ runner.os }}- + + - name: Download Fuseki + shell: bash + run: | + curl -LSfs https://archive.apache.org/dist/jena/binaries/apache-jena-fuseki-4.6.1.tar.gz -o RACK/rack-box/files/fuseki.tar.gz + + - name: Download Apache Jena + shell: bash + run: | + curl -LSfs https://archive.apache.org/dist/jena/binaries/apache-jena-4.6.1.tar.gz -o RACK/rack-box/files/jena.tar.gz + + - name: Download SemTK + shell: bash + run: | + curl -LSfs https://github.com/ge-semtk/semtk/releases/download/v2.5.0-20230110/semtk-opensource-v2.5.0-20230110-dist.tar.gz -o RACK/rack-box/files/semtk.tar.gz + + - name: Download CSS stylesheet + shell: bash + run: | + curl -LSfs https://github.com/KrauseFx/markdown-to-html-github-style/raw/master/style.css -o RACK/rack-box/files/style.css + + - name: Download systemctl script + shell: bash + run: | + curl -LSfs https://github.com/gdraheim/docker-systemctl-replacement/raw/v1.5.4505/files/docker/systemctl3.py -o RACK/rack-box/files/systemctl3.py + + - name: Build OWL files using sadl-eclipse + shell: bash + run: | + RACK/cli/setup-owl.sh -b + + - name: Package RACK ASSIST + shell: bash + run: | + tar cfz RACK/rack-box/files/rack-assist.tar.gz RACK/assist + + - name: Package RACK CLI + shell: bash + run: | + cd RACK/cli + python3 -m pip install --upgrade pip setuptools wheel + pip3 wheel --wheel-dir=wheels -r requirements.txt + pip3 wheel --wheel-dir=wheels . + cd ${{ github.workspace }} + tar cfz RACK/rack-box/files/rack-cli.tar.gz RACK/cli/{*.sh,wheels} + + - name: Package RACK UI + shell: bash + run: | + cd ${{ github.workspace }} + tar cfz RACK/rack-box/files/rack-ui.tar.gz RACK/rack-ui + + - name: Package RACK documentation + shell: bash + run: | + sudo npm install -g github-wikito-converter markdown-to-html + cp RACK.wiki/_Footer.md RACK.wiki/Copyright.md + gwtc -t RACK-in-a-Box RACK.wiki + markdown -t RACK-in-a-box -s style.css RACK.wiki/_Welcome.md > index.html + sed -i -e 's/>NodeGroupService/ onclick="javascript:event.target.port=12058">NodeGroupService/' index.html + mv documentation.html index.html RACK/rack-box/files + + - name: Generate CDR files + shell: bash + run: | + pip3 install RACK/cli/wheels/*.whl + tar xfz RACK/rack-box/files/semtk.tar.gz semtk-opensource/standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar + RACK/nodegroups/generate-cdrs.sh semtk-opensource/standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar + + - name: Package RACK ontology and data + shell: bash + run: | + tar cfz RACK/rack-box/files/rack.tar.gz --exclude=.git --exclude=.github --exclude=assist --exclude=cli --exclude=rack-box --exclude=rack-ui --exclude=tests --exclude=tools RACK + + - name: Stop rack-box container + if: ${{ always() }} + shell: bash + run: | + docker container stop $(docker container ls -qf ancestor=gehighassurance/rack-box:dev) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml new file mode 100644 index 00000000..a1981c1e --- /dev/null +++ b/.github/workflows/build-docker-image.yml @@ -0,0 +1,67 @@ +# Builds rack-box docker image (reusable workflow) + +on: + workflow_call: + inputs: + push: + required: false + default: true + type: boolean + version: + required: false + default: 'dev' + type: string + +jobs: + +# build-docker-image job: +# - Builds rack-box docker image +# - Pushes docker image to Docker Hub + + build-docker-image: + runs-on: ubuntu-20.04 + + steps: + - name: Check out RACK source + uses: actions/checkout@v3 + with: + repository: ge-high-assurance/RACK + path: RACK + + - name: Ask cache for rack-box files + uses: actions/cache@v3 + id: cache + with: + path: RACK/rack-box/files + key: files-${{ github.sha }} + + - name: We don't have rack-box files? + if: steps.cache.outputs.cache-hit == false + run: | + echo "::error rack-box files are missing" + exit 1 + + - name: Build rack-box docker image + run: | + cd RACK/rack-box + packer build -var version=${{ inputs.version }} rack-box-docker.json + + - name: Login to Docker Hub + if: inputs.push == true + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Push rack-box docker image to Docker Hub + if: inputs.push == true + run: docker push gehighassurance/rack-box:${{ inputs.version }} + + - name: Update description of rack-box docker image + if: inputs.push == true + uses: peter-evans/dockerhub-description@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + repository: gehighassurance/rack-box + readme-filepath: RACK/rack-box/Docker-Hub-README.md diff --git a/.github/workflows/build-virtual-machine.yml b/.github/workflows/build-virtual-machine.yml new file mode 100644 index 00000000..aa84b010 --- /dev/null +++ b/.github/workflows/build-virtual-machine.yml @@ -0,0 +1,79 @@ +# Builds rack-box virtual machine (reusable workflow) + +on: + workflow_call: + inputs: + version: + required: false + default: 'dev' + type: string + +jobs: + +# build-virtual-machine job: +# - Builds rack-box virtual machine +# - Uploads virtual machine to workflow or release + + build-virtual-machine: + runs-on: macos-12 + + steps: + - name: Check out RACK source + uses: actions/checkout@v3 + with: + repository: ge-high-assurance/RACK + path: RACK + + - name: Ask cache for rack-box files + uses: actions/cache@v3 + id: cache + with: + path: RACK/rack-box/files + key: files-${{ github.sha }} + + - name: We don't have rack-box files? + if: steps.cache.outputs.cache-hit == false + run: | + echo "::error rack-box files are missing" + exit 1 + + - name: Download base box for virtual machine + run: | + curl -LOSfs https://app.vagrantup.com/ubuntu/boxes/focal64/versions/20221115.1.0/providers/virtualbox.box + mkdir -p RACK/rack-box/focal64 + tar -xf virtualbox.box -C RACK/rack-box/focal64 + rm -f virtualbox.box + + - name: Build rack-box virtual machine + run: | + cd RACK/rack-box + packer build -var headless=true -var version=${{ inputs.version }} rack-box-virtualbox.json + + - name: Split rack-box virtual machine + run: | + cd RACK/rack-box + mv output-virtualbox-ovf rack-box-${{ inputs.version }} + zip -r rack-box-${{ inputs.version }}.zip rack-box-${{ inputs.version }} + split -b 1500m rack-box-${{ inputs.version }}.zip rack-box-${{ inputs.version }}.zip + rm rack-box-${{ inputs.version }}.zip + + - name: Upload split virtual machine to workflow + uses: actions/upload-artifact@v3 + if: github.event_name != 'release' + with: + name: rack-box-${{ inputs.version }} + path: | + RACK/rack-box/GitHub-Release-README.md + RACK/rack-box/rack-box-${{ inputs.version }}.zip* + + # softprops/action-gh-release has many issues and PRs filed + # against it; replace it with "gh release upload" if CI fails + # run: gh release upload ${{ github.event.release.tag_name }} RACK/rack-box/GitHub-Release-README.md RACK/rack-box/rack-box-${{ inputs.version }}.zip* --clobber + + - name: Upload split virtual machine to release + uses: softprops/action-gh-release@v1 + if: github.event_name == 'release' + with: + files: | + RACK/rack-box/GitHub-Release-README.md + RACK/rack-box/rack-box-${{ inputs.version }}.zip* diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 0e64c5d4..ffacb07a 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -1,37 +1,30 @@ -# Runs after every pull request or push (except tag-only pushes) +# Runs after every push (except tag-only pushes) name: RACK Continuous Integration Workflow on: - pull_request: push: branches: [ '**' ] tags-ignore: [ '**' ] - workflow_dispatch: jobs: -# Lint job: -# - Lints the RACK CLI, Ontology, and shell scripts +# lint job: +# - Lints RACK CLI, RACK Ontology, and shell scripts lint: - strategy: - matrix: - os: [ ubuntu-20.04 ] - python-version: [ 3.8 ] - - runs-on: ${{ matrix.os }} + runs-on: ubuntu-20.04 steps: - name: Check out RACK source - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: 3.8 - name: Cache Python dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: # This path is specific to Ubuntu path: ~/.cache/pip @@ -58,92 +51,43 @@ jobs: ./assist/bin/check - name: Lint shell scripts - uses: ludeeus/action-shellcheck@1.0.0 + uses: ludeeus/action-shellcheck@2.0.0 env: SHELLCHECK_OPTS: -x -P assist/databin -e SC1008 -# Cache job: -# - Downloads rack-box files -# - Caches rack-box files - - cache: - strategy: - matrix: - os: [ ubuntu-20.04 ] - python-version: [ 3.8 ] - - runs-on: ${{ matrix.os }} - - steps: - - name: Cache rack-box files - uses: actions/cache@v2 - id: cache-files - with: - path: RACK/rack-box/files - key: files-${{ github.sha }} - - - name: Check out RACK source - if: steps.cache-files.outputs.cache-hit != 'true' - uses: actions/checkout@v2 - with: - repository: ge-high-assurance/RACK - path: RACK - - - name: Check out RACK wiki - if: steps.cache-files.outputs.cache-hit != 'true' - uses: actions/checkout@v2 - with: - repository: ge-high-assurance/RACK.wiki - path: RACK.wiki - - - name: Set up Python - if: steps.cache-files.outputs.cache-hit != 'true' - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Cache Python dependencies - if: steps.cache-files.outputs.cache-hit != 'true' - uses: actions/cache@v2 - with: - # This path is specific to Ubuntu - path: ~/.cache/pip - # Look to see if there is a cache hit for the corresponding requirements file - key: ${{ runner.os }}-pip-${{ hashFiles('RACK/cli/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - ${{ runner.os }}- +# assemble-files job: +# - Assembles files for rack-box builds - - name: Download rack-box files - if: steps.cache-files.outputs.cache-hit != 'true' - uses: ./RACK/.github/workflows/actions/download + assemble-files: + uses: ./.github/workflows/assemble-files.yml -# Test job: +# test job: # - Runs rack-box tests test: - strategy: - matrix: - os: [ ubuntu-20.04 ] - python-version: [ 3.8 ] - - runs-on: ${{ matrix.os }} - needs: cache + needs: assemble-files + runs-on: ubuntu-20.04 steps: - name: Check out RACK source - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ge-high-assurance/RACK path: RACK + - name: Ask cache for rack-box files + uses: actions/cache@v3 + with: + path: RACK/rack-box/files + key: files-${{ github.sha }} + - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: 3.8 - name: Cache Python dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: # This path is specific to Ubuntu path: ~/.cache/pip @@ -153,12 +97,6 @@ jobs: ${{ runner.os }}-pip- ${{ runner.os }}- - - name: Get all files needed by rack-box - uses: actions/cache@v2 - with: - path: RACK/rack-box/files - key: files-${{ github.sha }} - - name: Install rack-box files on runner run: | mkdir -p /tmp/files @@ -176,43 +114,14 @@ jobs: pip3 install -r tests/requirements.txt python3 -m pytest tests -# Build job: -# - Builds rack-box Docker image -# - Pushes Docker image to Docker Hub - - build: - strategy: - matrix: - os: [ ubuntu-20.04 ] - - runs-on: ${{ matrix.os }} - needs: cache - - steps: - - name: Check out RACK source - uses: actions/checkout@v2 - with: - repository: ge-high-assurance/RACK - path: RACK - - - name: Get all files needed by rack-box - uses: actions/cache@v2 - with: - path: RACK/rack-box/files - key: files-${{ github.sha }} - - - name: Build rack-box Docker image - run: | - cd RACK/rack-box - packer build -var version=dev rack-box-docker.json - - - name: Login to Docker Hub - if: github.ref == 'refs/heads/master' - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Push rack-box image to Docker Hub - if: github.ref == 'refs/heads/master' - run: docker push gehighassurance/rack-box:dev +# build-docker-image job: +# - Builds rack-box docker image +# - Pushes docker image to Docker Hub + + build-docker-image: + needs: assemble-files + uses: ./.github/workflows/build-docker-image.yml + secrets: inherit + with: + push: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev-test' }} + version: ${{ (github.ref == 'refs/heads/master' && 'dev') || 'dev-test' }} diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 00000000..423404a9 --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,29 @@ +# Manually builds rack-box virtual machine (dispatchable workflow) + +name: RACK Build Virtual Machine Workflow +on: + workflow_dispatch: + inputs: + version: + required: false + default: 'dev' + type: string + +jobs: + +# assemble-files job: +# - Assembles files for rack-box builds + + assemble-files: + uses: ./.github/workflows/assemble-files.yml + +# build-virtual-machine job: +# - Builds rack-box virtual machine +# - Uploads virtual machine to workflow + + build-virtual-machine: + needs: assemble-files + uses: ./.github/workflows/build-virtual-machine.yml + secrets: inherit + with: + version: ${{ inputs.version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21f61a2d..87bd64cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -# Runs after a release is published +# Runs after a RACK release is published name: RACK Release Workflow on: @@ -7,195 +7,31 @@ on: jobs: -# Cache job: -# - Downloads rack-box files -# - Caches rack-box files - - cache: - strategy: - matrix: - os: [ ubuntu-20.04 ] - python-version: [ 3.8 ] - - runs-on: ${{ matrix.os }} - - steps: - - name: Cache rack-box files - uses: actions/cache@v2 - id: cache-files - with: - path: RACK/rack-box/files - # Use different key because we check out source & wiki with tag - key: files-${{ github.sha }}-${{ github.event.release.tag_name }} - - - name: Check out RACK source - if: steps.cache-files.outputs.cache-hit != 'true' - uses: actions/checkout@v2 - with: - repository: ge-high-assurance/RACK - ref: ${{ github.event.release.tag_name }} - path: RACK - - - name: Check out RACK wiki - if: steps.cache-files.outputs.cache-hit != 'true' - uses: actions/checkout@v2 - with: - repository: ge-high-assurance/RACK.wiki - ref: ${{ github.event.release.tag_name }} - path: RACK.wiki - - - name: Set up Python - if: steps.cache-files.outputs.cache-hit != 'true' - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Cache Python dependencies - if: steps.cache-files.outputs.cache-hit != 'true' - uses: actions/cache@v2 - with: - # This path is specific to Ubuntu - path: ~/.cache/pip - # Look to see if there is a cache hit for the corresponding requirements file - key: ${{ runner.os }}-pip-${{ hashFiles('RACK/cli/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - ${{ runner.os }}- - - - name: Download rack-box files - if: steps.cache-files.outputs.cache-hit != 'true' - uses: ./RACK/.github/workflows/actions/download - -# Build job: -# - Builds rack-box Docker and VirtualBox images -# - Pushes Docker image to Docker Hub -# - Uploads VirtualBox image to GitHub release page - - build: - strategy: - fail-fast: false - matrix: - include: -# docker works on all, but ubuntu is cheapest - - builder: docker - os: ubuntu-20.04 - shell: bash -# no support for hyperv (https://github.com/actions/virtual-environments/issues/183#issuecomment-706244929) -# - builder: hyperv -# os: windows-latest -# shell: msys2 {0} -# virtualbox works only on macos (VT-x is not available: VERR_VMK_NO_VMX) - - builder: virtualbox - os: macos-12 - shell: bash - - runs-on: ${{ matrix.os }} - needs: cache - defaults: - run: - shell: ${{ matrix.shell }} - - steps: - - name: Check out RACK source - uses: actions/checkout@v2 - with: - repository: ge-high-assurance/RACK - ref: ${{ github.event.release.tag_name }} - path: RACK - - - name: Get all files needed by rack-box - uses: actions/cache@v2 - with: - path: RACK/rack-box/files - key: files-${{ github.sha }} - - # Won't work since windows-latest doesn't support nested virtualization - - name: Enable Hyper-V - if: matrix.builder == 'hyperv' && matrix.os == 'windows-latest' - shell: powershell - run: | - Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All - Add-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature - - - name: Build rack-box ${{ matrix.builder }} image - run: | - b=${{ matrix.builder }} - v=${{ github.event.release.tag_name }} - cd RACK/rack-box - packer build -var headless=true -var version=$v rack-box-$b.json - - - name: Login to Docker Hub - if: matrix.builder == 'docker' - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Push rack-box image to Docker Hub - if: matrix.builder == 'docker' - run: docker push gehighassurance/rack-box:${{ github.event.release.tag_name }} - - - name: Update Docker Hub Description - if: matrix.builder == 'docker' - uses: peter-evans/dockerhub-description@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - repository: gehighassurance/rack-box - readme-filepath: RACK/rack-box/Docker-Hub-README.md - - - name: Split rack-box image - if: matrix.builder != 'docker' - run: | - b=${{ matrix.builder }} - v=${{ github.event.release.tag_name }} - cd RACK/rack-box - mv output-$b-iso rack-box-$b-$v - zip -r rack-box-$b-$v.zip rack-box-$b-$v - split -b 1500m rack-box-$b-$v.zip rack-box-$b-$v.zip - ls -l rack-box-$b-$v.zip?? - - - name: Upload README.md to GitHub release assets - if: matrix.builder != 'docker' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: RACK/rack-box/GitHub-Release-README.md - asset_name: README.md - asset_content_type: text/markdown; charset=UTF-8 - - - name: Upload rack-box split image (1/3) to GitHub release assets - if: matrix.builder != 'docker' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: RACK/rack-box/rack-box-${{ matrix.builder }}-${{ github.event.release.tag_name }}.zipaa - asset_name: rack-box-${{ matrix.builder }}-${{ github.event.release.tag_name }}.zip00 - asset_content_type: application/zip - - - name: Upload rack-box split image (2/3) to GitHub release assets - if: matrix.builder != 'docker' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: RACK/rack-box/rack-box-${{ matrix.builder }}-${{ github.event.release.tag_name }}.zipab - asset_name: rack-box-${{ matrix.builder }}-${{ github.event.release.tag_name }}.zip01 - asset_content_type: application/zip - - - name: Upload rack-box split image (3/3) to GitHub release assets - if: matrix.builder != 'docker' - continue-on-error: true - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: RACK/rack-box/rack-box-${{ matrix.builder }}-${{ github.event.release.tag_name }}.zipac - asset_name: rack-box-${{ matrix.builder }}-${{ github.event.release.tag_name }}.zip02 - asset_content_type: application/zip +# assemble-files job: +# - Assembles files for rack-box builds + + assemble-files: + uses: ./.github/workflows/assemble-files.yml + +# build-docker-image job: +# - Builds rack-box docker image +# - Pushes docker image to Docker Hub + + build-docker-image: + needs: assemble-files + uses: ./.github/workflows/build-docker-image.yml + secrets: inherit + with: + push: true + version: ${{ github.event.release.tag_name }} + +# build-virtual-machine job: +# - Builds rack-box virtual machine +# - Uploads virtual machine to release + + build-virtual-machine: + needs: assemble-files + uses: ./.github/workflows/build-virtual-machine.yml + secrets: inherit + with: + version: ${{ github.event.release.tag_name }} diff --git a/.github/workflows/update-wiki.yml b/.github/workflows/update-wiki.yml index a5999ed8..64ce59ed 100644 --- a/.github/workflows/update-wiki.yml +++ b/.github/workflows/update-wiki.yml @@ -1,4 +1,4 @@ -# Runs after every push to the nodegroups/queries/store_data.csv on master branch +# Runs after every change to nodegroups/queries/store_data.csv on master branch name: RACK Update Wiki Workflow on: @@ -6,37 +6,35 @@ on: branches: [ master ] paths: - 'nodegroups/queries/store_data.csv' - workflow_dispatch: jobs: - update: - strategy: - matrix: - os: [ ubuntu-20.04 ] - python-version: [ 3.8 ] - runs-on: ${{ matrix.os }} +# update-wiki job: +# - Updates RACK-Predefined-Queries.md in RACK.wiki + + update-wiki: + runs-on: ubuntu-20.04 steps: - name: Check out RACK source - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ge-high-assurance/RACK path: RACK - name: Check out RACK wiki - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ge-high-assurance/RACK.wiki path: RACK.wiki - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: 3.8 - name: Cache Python dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: # This path is specific to Ubuntu path: ~/.cache/pip @@ -47,7 +45,8 @@ jobs: ${{ runner.os }}- - name: Install csvtomd - run: pip3 install csvtomd --user + run: | + pip3 install csvtomd --user - name: Update query wiki page run: | diff --git a/.gitignore b/.gitignore index 514b2362..79322083 100644 --- a/.gitignore +++ b/.gitignore @@ -59,9 +59,14 @@ TODO.org debug.log *.swp cli/env/ +cli/.project .settings/ /Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationImplementation/*.d /Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationImplementation/*.rack /Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationImplementation/*.exe /Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationImplementation/*.gz /Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationImplementation/*.o +rack-ui/cache/ +rack-ui/.project +EntityResolution/.project +EntityResolution/Resolutions/Summary.csv diff --git a/Boeing-Ontology/ontology/Boeing.sadl b/Boeing-Ontology/ontology/Boeing.sadl index d1317d6d..6cbadcab 100644 --- a/Boeing-Ontology/ontology/Boeing.sadl +++ b/Boeing-Ontology/ontology/Boeing.sadl @@ -23,7 +23,10 @@ SubDD_Req (note "A Requirement identified in the Subsystem Design Document") is Rq:satisfies of SubDD_Req only has values of type SRS_Req. SBVT_Test (note "A test identified in the Software Baseline Verification Tests") is a type of TEST. + verifies of SBVT_Test_Procedure only has values of type {SubDD_Req or SRS_Req or CSID_Req}. verifies of SBVT_Test has at least 1 value. + // A new property unique to SBVT_Test: stimulates + stimulates of SBVT_Test has values of type Signal. //<--how come "only has values" doesn't work here? SBVT_Result (note "A result identified for a SBVT_Test (Software Baseline Verification Tests)") is a type of TEST_RESULT. confirms of SBVT_Result only has values of type SBVT_Test. @@ -79,19 +82,21 @@ IDD_Doc is a type of DOCUMENT. // subclass from core ontology related to SBVT and IDD SBVT_Test_Procedure is a type of TEST_PROCEDURE. content of SBVT_Test only has values of type SBVT_Test_Step. + SBVT_Test_Step is a type of TEST_STEP. - stimulates of SBVT_Test_Step has values of type Signal. //<--how come "only has values" doesn't work here? - observes of SBVT_Test_Step has values of type Signal. //<--how come "only has values" doesn't work here? nextStep of SBVT_Test_Step only has values of type SBVT_Test_Step. -IDD_Test is a type of TEST. // note "verifies" corresponds to "observes" -// verifies of IDD_Test only has values of type Signal. - //SBVT_Test_Step can contain HMI test etc. SBVT_Test_Log is a type of TEST_LOG. content of SBVT_Test_Log only has values of type SBVT_Test_Record. SBVT_Test_Record is a type of TEST_RECORD. - logs of SBVT_Test_Record only has values of type SBVT_Test_Step. + testRecordSteps of SBVT_Test_Record only has values of type SBVT_Test_Step. + +IDD_Test is a type of TEST. // note "verifies" corresponds to "observes" +// verifies of IDD_Test only has values of type Signal. + // A new property unique to IDD_Test: observes + observes of IDD_Test has values of type Signal. //<--how come "only has values" doesn't work here? + IDD_Test_Result is a type of TEST_RESULT. confirms of IDD_Test_Result only has values of type IDD_Test. @@ -105,13 +110,12 @@ Test_Station is a type of AGENT. SBVT_Test_Execution is a type of TEST_EXECUTION. testProcedure of SBVT_Test_Execution only has values of type SBVT_Test_Procedure. systemUnderTest describes SBVT_Test_Execution with values of type SYSTEM. - systemUnderTestBuildVersion describes SBVT_Test_Execution with values of type BuildVersion. //added - databaseVersion describes SBVT_Test_Execution with values of type Database. - databaseVersion is a type of used. -// softwareBuild describes SBVT_Test_Execution with values of type Executable. -// softwareBuild is a type of used. testStation of SBVT_Test_Execution has a single value of type Test_Station. testStation is a type of wasAssociatedWith. + +SBVT_Test_Scenario is a type of TEST_SCENARIO. + // targetVersion replaces systemUnderTestBuildVersion + BuildVersion is a type of ENTITY. system describes BuildVersion with a single value of type SYSTEM. buildVersion describes BuildVersion with a single value of type Executable. diff --git a/EntityResolution/CheckBar.py b/EntityResolution/CheckBar.py new file mode 100644 index 00000000..85d3ba3d --- /dev/null +++ b/EntityResolution/CheckBar.py @@ -0,0 +1,20 @@ +#!/usr/bin/python3 + +from tkinter import * + +class Checkbar(Frame): + def __init__(self, parent=None, picks=[], side=LEFT, anchor=W, command=None): + Frame.__init__(self, parent) + self.command = command + self.vars = {} + self.buttons = [] + for pick in picks: + self.buttons.append(Checkbutton(self, text=pick, command=lambda pick=pick: self.callback(pick))) + self.buttons[-1].pack(side=side, anchor=anchor, expand=YES) + self.vars[pick] = True + self.buttons[-1].select() + def callback(self, pick): + self.vars[pick] = not self.vars[pick] + self.command() + def state(self): + return self.vars diff --git a/EntityResolution/CreateIngestion.py b/EntityResolution/CreateIngestion.py new file mode 100755 index 00000000..0ed5888e --- /dev/null +++ b/EntityResolution/CreateIngestion.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python3 +import DataAccess as da +import tkinter.filedialog as fd +import shutil +import os +import os.path +DEBUG = False +def Debug(*args): + if DEBUG: + print(*args) +##################################### +# Queries +##################################### + +##################################### +# helper Functions +##################################### +def createIngestion(decisions): + saveLocation = fd.asksaveasfilename(filetypes=[("Manifest File","*.zip")], defaultextension =".zip") + print("Saving Manifest File to {}".format(saveLocation)) + tempFolder = os.path.splitext(saveLocation)[0] + shutil.copytree("manifest_template", tempFolder) + + with open(os.path.join(tempFolder, "resolutions","SAME_AS.csv"), "w") as outfile: + outfile.write("primary_identifier,primary_THING_type,secondary_identifier, secondary_THING_type\n") + for p in decisions: + #print(decisions[p] ) + if decisions[p] != 4 and decisions[p] != 5: + for s in decisions[p]: + if decisions[p][s] == 2 or decisions[p][s] == 3: + print("Primary:{}".format(p)) + print("Secondary:{}".format(s)) + outfile.write('"{}","{}!","{}","{}!"\n'.format(da.getIdentifier(p), da.getType(p), da.getIdentifier(s), da.getType(s))) + shutil.make_archive(tempFolder, 'zip', tempFolder) + diff --git a/EntityResolution/DataAccess.py b/EntityResolution/DataAccess.py new file mode 100644 index 00000000..13818f1d --- /dev/null +++ b/EntityResolution/DataAccess.py @@ -0,0 +1,127 @@ +#!/usr/bin/env python3 +import os +import json +import semtk3 +import os.path +import time +import RACK_CONSTANTS as rc +def cacheData(e): + guid = e.split("#")[-1] + graph = "http://rack001/Data" + res = semtk3.query_raw_sparql(rc.dataQuery\ + .replace("{{GUID}}",guid) \ + .replace("{{GRAPH}}",graph),\ + result_type=semtk3.RESULT_TYPE_GRAPH_JSONLD) + with open("cache/"+guid+".json", "w") as dataFile: + json.dump(res, dataFile, indent = 4) + +def getRelationships(e): + relationships = [] + guid = e.split("#")[-1] + data = getData(e)["@graph"] + if type(data) == list: + identData = {} + for el in data: + identData[el['@id']] = el['PROV_S:identifier'] + for el in data: + if el['@id'][6:] == guid: + for p in el: + if type(el[p]) == dict: + relationships.append((p, identData[el[p]['@id']], "Outgoing")) + else: + for p in el: + if type(el[p]) == dict: + relationships.append((p, el['PROV_S:identifier'], "Incoming")) + return relationships + +def getDataProperties(e): + dataProperties = [] + guid = e.split("#")[-1] + data = getData(e)["@graph"] + if type(data) == list: + for el in data: + if el['@id'][6:] == guid: + for p in el: + if type(el[p]) != dict: + dataProperties.append((p, el[p])) + break + else: + for p in data: + if type(data[p]) != dict: + dataProperties.append((p, el[p])) + return dataProperties + +def getDescription(e): + guid = e.split("#")[-1] + data = getData(e)["@graph"] + if type(data) == list: + for el in data: + if el['@id'][6:] == guid: + if 'PROV_S:description' in el: + return el['PROV_S:description'] + else: + return None + else: + if 'PROV_S:description' in data: + return data['PROV_S:description'] + else: + return None + +def getType(e): + guid = e.split("#")[-1] + data = getData(e)["@graph"] + context = None + if "@context" in getData(e): + context = getData(e)["@context"] + elif "@context" in data: + context = data['@context'] + else: + print("ERROR: Could not find context from data graph!!!") + print("{}".format()) + if type(data) == list: + for el in data: + if el['@id'][6:] == guid: + if '@type' in el: + ns, _type = el['@type'].split(":") + return context[ns]+_type + else: + return None + else: + if '@type' in data: + ns, _type = data['@type'].split(":") + return context[ns]+_type + else: + return None + +def getIdentifier(e): + guid = e.split("#")[-1] + data = getData(e)["@graph"] + if type(data) == list: + for el in data: + if el['@id'][6:] == guid: + if 'PROV_S:identifier' in el: + return el['PROV_S:identifier'] + else: + return None + else: + if 'PROV_S:identifier' in data: + return data['PROV_S:identifier'] + else: + return None + +def getData(e): + guid = e.split("#")[-1] + data = None + if not os.path.exists("cache/"+guid+".json"): + cacheData(e) + #This is to handle the case with multiprocssing where one thread has created the file but not yet populated with data + while os.path.getsize("cache/"+guid+".json") ==0: + time.sleep(0.1) + with open("cache/"+guid+".json", "r") as dataFile: + data = json.load(dataFile) + if "@graph" not in data: + data = {"@graph":data} + return data + +if __name__ == "__main__": + semtk3.upload_owl("Model.owl", rc.connStringSource2, model_or_data=semtk3.SEMTK3_CONN_DATA, conn_index = 0) diff --git a/EntityResolution/Entity.py b/EntityResolution/Entity.py new file mode 100644 index 00000000..6e343dce --- /dev/null +++ b/EntityResolution/Entity.py @@ -0,0 +1,55 @@ +#!/usr/bin/env python3 +import DataAccess as da +import tkinter as tk +from tkinter import ttk +class Entity(tk.Frame): + + uri = None + def __init__(self, updateCallback): + super().__init__() + self.updateCallback = updateCallback + self.propertyString = '' + + self.properties = ttk.Treeview(self, selectmode='browse') + self.properties["columns"]=["Property","Value"] + self.properties["show"]="headings" + self.properties.heading("Property", text="Property") + self.properties.heading("Value", text="Value") + self.properties.column("Property", width=200, stretch=tk.NO) + self.properties.bind('', self.selectProperty) + self.properties.pack(fill=tk.X, expand=True) + + self.relationships = ttk.Treeview(self, selectmode='none') + self.relationships["columns"]=["Relationship","Identifier","Direction"] + self.relationships["show"]="headings" + self.relationships.heading("Identifier", text="Identifier") + self.relationships.heading("Relationship", text="Relationship") + self.relationships.heading("Direction", text="Direction") + self.relationships.column("Relationship", width=200, stretch=tk.NO) + self.relationships.pack(fill=tk.X, expand=True) + '''=================================================== + Callback for selecting property for an Entity + ===================================================''' + def selectProperty(self,a): + currItem = self.properties.focus() + if self.properties.item(currItem)['values'] != "": #if nothing is selected then we just stop, otherwise update the property string the run the call back to update the text box + self.propertyString = self.properties.item(currItem)['values'][1] + self.updateCallback() + + def update(self, e): + + self.propertyString = '' + # Clear ListView + for item in self.relationships.get_children(): + self.relationships.delete(item) + for item in self.properties.get_children(): + self.properties.delete(item) + print(e) + if e !=None: + properties = da.getDataProperties(e) + relationships = da.getRelationships(e) + ## Update Relationships and Properties + for k in properties: + self.properties.insert("", 'end', values=k) + for k in relationships: + self.relationships.insert("", 'end', values=k) diff --git a/EntityResolution/Gui.py b/EntityResolution/Gui.py new file mode 100755 index 00000000..4f9ae5c4 --- /dev/null +++ b/EntityResolution/Gui.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python3 +from MainWindow import * + + +if __name__ =="__main__": + mw = MainWindow() + mw.mainloop() diff --git a/EntityResolution/MainWindow.py b/EntityResolution/MainWindow.py new file mode 100755 index 00000000..16973c76 --- /dev/null +++ b/EntityResolution/MainWindow.py @@ -0,0 +1,422 @@ +#!/usr/bin/env python3 +import DataAccess as da +import os +import json +from difflib import SequenceMatcher +import csv +import tkinter as tk +from tkinter import ttk +from tkinter.messagebox import askyesno +import semtk3 +import os.path +import RACK_CONSTANTS as rc +import CreateIngestion as ci +from SelectClassWindow import SelectClass +from Entity import * + +CONFIRMED_DIFFERENT =0 +ASSUMED_DIFFERENT = 1 +ASSUMED_SAME_AS=2 +CONFIRMED_SAME_AS = 3 +CONFIRMED_COMBINED = 4 +ASSUMED_COMBINED =5 +class MainWindow(tk.Tk): + def __init__(self): + super().__init__() + #========================================================================== + # Work around related to the Treeview Coloring issue with some version of python for windows + # https://bugs.python.org/issue36468 + #========================================================================== + def fixed_map(option): + # Fix for setting text colour for Tkinter 8.6.9 + # From: https://core.tcl.tk/tk/info/509cafafae + # + # Returns the style map for 'option' with any styles starting with + # ('!disabled', '!selected', ...) filtered out. + + # style.map() returns an empty list for missing options, so this + # should be future-safe. + return [elm for elm in style.map('Treeview', query_opt=option) if + elm[:2] != ('!disabled', '!selected')] + + style = ttk.Style() + style.map('Treeview', foreground=fixed_map('foreground'), + background=fixed_map('background')) + #========================================================================== + + + self.title('RACK Entity Resolution Tool') + self.primary = '' + + ## Menu + self.menubar = tk.Menu(self) + self.fileMenu = tk.Menu(self.menubar) + self.fileMenu.add_command(label="Load Data...", command=self.loadData) + self.fileMenu.add_command(label="Save Data", command=self.saveData) + self.fileMenu.add_separator() + self.fileMenu.add_command(label="Exit",command=self.close) + self.menubar.add_cascade(label="File", menu=self.fileMenu) + + self.rackMenu = tk.Menu(self) + self.rackMenu.add_command(label="Create Ingestion Data", command=self.push) + self.rackMenu.add_command(label="Start Resolution...", command=self.pull) + self.menubar.add_cascade(label="RACK", menu=self.rackMenu) + + + self.config(menu=self.menubar) + + ## Primary Frame + self.primaryFrame = tk.Frame() + self.primaryFrame.grid(column=0, row=0, rowspan=2,sticky='ew', padx=10,pady=10) + + + ## Secondary Frame + self.secondaryFrame = tk.Frame() + self.secondaryFrame.grid(column=2, row=0,rowspan=2,sticky='ew', padx=10,pady=10) + + ## Primary Treeview + self.primaryTree = ttk.Treeview(self.primaryFrame, selectmode="browse", height=10) + self.primaryTree["columns"]=["Identifier","Score"] + self.primaryTree["show"]="headings" + self.primaryTree.heading("Identifier", text="Primary") + self.primaryTree.heading("Score", text="Best Score") + self.primaryTree.column("Score", width=100, stretch=tk.NO) + self.primaryTree.bind('', self.selectPrimary) + self.primaryTree.tag_configure('confirmedCombined', background="red") + self.primaryTree.tag_configure('assumedCombined', background="#E38699") + self.primaryTree.tag_configure('confirmedRemaining', background="green") + self.primaryTree.tag_configure('assumedRemaining', background="#89E0A8") + self.primaryTree.pack(side=tk.LEFT, fill=tk.BOTH, expand=True) + + ## Primary Scrollbar + self.primaryScrollbar = tk.Scrollbar(self.primaryFrame, orient=tk.VERTICAL) + self.primaryScrollbar.pack(side=tk.RIGHT, fill=tk.Y) + + self.primaryTree.config(yscrollcommand=self.primaryScrollbar.set) + self.primaryScrollbar.config(command=self.primaryTree.yview) + + ## Secondary Treeview + self.secondaryTree = ttk.Treeview(self.secondaryFrame, selectmode="browse", height=10) + self.secondaryTree["columns"]=["Identifier","Score"] + self.secondaryTree["show"]="headings" + self.secondaryTree.heading("Identifier", text="Secondary") + self.secondaryTree.heading("Score", text="Score") + self.secondaryTree.column("Score", width=100, stretch=tk.NO) + self.secondaryTree.bind('', self.selectSecondary) + self.secondaryTree.tag_configure('confirmedSameAs', background="green") + self.secondaryTree.tag_configure('confirmedDifferent', background="red") + self.secondaryTree.tag_configure('assumedSameAs', background="#89E0A8") + self.secondaryTree.tag_configure('assumedDifferent', background="#E38699") + self.secondaryTree.pack(side=tk.LEFT, fill=tk.BOTH, expand=True) + + ## Compare Text + self.compareText = tk.Text(self, height=5) + self.compareText.grid(row=2,column=0, columnspan=3,sticky='ew', padx=10,pady=10) + + ## Secondary Scrollbar + self.secondaryScrollbar = tk.Scrollbar(self.secondaryFrame, orient=tk.VERTICAL) + self.secondaryScrollbar.pack(side=tk.RIGHT, fill=tk.Y) + + self.secondaryTree.config(yscrollcommand=self.secondaryScrollbar.set) + self.secondaryScrollbar.config(command=self.secondaryTree.yview) + + ## Primary Entity + self.primaryEntity = Entity(self.updateCompare) + self.primaryEntity.grid(row=4,column=0,sticky='ew', padx=10,pady=10) + + ## Secondary Entity + self.secondaryEntity = Entity(self.updateCompare) + self.secondaryEntity.grid(row=4,column=2,sticky='ew', padx=10,pady=10) + + ## Different Button + self.differentButton = ttk.Button(self, text="Confirmed Different", command=self.confirmDifferent) + self.differentButton.grid(row=5, column=0,sticky='ew', padx=10,pady=10) + + ## Same as Button + self.sameAsButton = ttk.Button(self, text="Confirmed Same As", command=self.confirmSameAs) + self.sameAsButton.grid(row=5, column=2,sticky='ew', padx=10,pady=10) + + ## Assumed SameAs Threshold + self.sameAsLabel = ttk.Label(self, text="Assumed\nSame As\nThreshold", justify=tk.CENTER) + self.sameAsLabel.grid(column=4, row=0, padx=10,pady=10) + self.sameAsScale= tk.Scale(self, resolution=-1) + self.sameAsScale.grid(column=4, row=1, rowspan=4, sticky='ns') + + ## Different Threshold + self.differentLabel = ttk.Label(self, text="Assumed\nDifferent\nThreshold", justify=tk.CENTER) + self.differentLabel.grid(column=3, row=0, padx=10,pady=10) + self.differentScale = tk.Scale(self, resolution=-1) + self.differentScale.grid(column=3, row=1, rowspan=4, sticky='ns') + + ## Update Button + self.updateButton = ttk.Button(self, text="Update", command=self.assumptions) + self.updateButton.grid(row=5, column=3, columnspan=2,sticky='ew', padx=10,pady=10) + + self.grid_columnconfigure(0,weight=1) + self.grid_columnconfigure(1,weight=0) + self.grid_columnconfigure(2,weight=1) + semtk3.set_connection_override(rc.connStringSource) + def push(self): + ci.createIngestion(self.decisions) + + def pull(self): + all_ok = semtk3.check_services(); + if not all_ok: + print("Semtk services are not properly running on localhost") + return + # Get User selected PROV-S subclass to perform entity resolution on + classes = SelectClass() + print("Selected:", classes) + classStr = "" + for c in classes: + classStr += "<"+c+"> " + + tab = semtk3.query_raw_sparql(rc.instanceQuery.replace("<{{Types}}>", classStr)) + instances = {} + for r in tab.get_rows(): + if r[1] not in instances: + instances[r[1]] = [] + instances[r[1]].append(r[0]) + relations = {} + for i in instances: + relations[i] = [] + tab = semtk3.query_raw_sparql(rc.subClassQuery.replace("{{Type}}", i)) + for c in tab.get_column("super"): + if c not in relations[i]: + relations[i].append(c) + secondaryDict = {} + for r in relations: + secondaryDict [r] = list(instances[r]) + for i in relations[r]: + if i in instances: + secondaryDict[r] += list(instances[i]) + else: + print('No instances of {} found.'.format(i)) + for k in instances: + print("count:", k, len(instances[k])) + + for k in secondaryDict: + print('possible matches:', k, len(secondaryDict[k])) + primaryDict = {} + for k in instances: + for i in instances[k]: + primaryDict[i] = secondaryDict[k] + + import ResolveThings + ResolveThings.run(primaryDict) + self.loadData() + '''=================================================== + Callback for selecting close menu button + ===================================================''' + def close(self): + print("Close") + del(self) + '''=================================================== + Callback for selecting save data menu button + ===================================================''' + def saveData(self): + with open("Decisions.json","w") as decisionFile: + json.dump(self.decisions, decisionFile, indent=4) + '''=================================================== + Callback for selecting load data menu button + ===================================================''' + def loadData(self): + self.summary ={} + self.decisions = {} + self.maxScore = 0.0 + + with open("Resolutions/Summary.csv","r") as summaryFile: + reader = csv.DictReader(summaryFile) + for row in reader: + self.summary[row["Primary"]] = float(row["Score"]) + if os.path.exists("Decisions.json"): + if askyesno("Load Existing Decisions", "Existing decisions file was found. Do you want to load previous decisions?"): + with open("Decisions.json","r") as decisionFile: + self.decisions = json.load(decisionFile) + ## Clear Primary Tree + for item in self.primaryTree.get_children(): + self.primaryTree.delete(item) + for p in sorted(self.summary.items(), key=lambda x:x[1],reverse=True): + bestMatch = p[1] + if bestMatch > self.maxScore: + self.maxScore = bestMatch + identifier = da.getIdentifier(p[0]) + self.primaryTree.insert("", 'end', text=p[0], values =(identifier, "{:.3f}".format(bestMatch))) + + self.sameAsScale.configure(to=self.maxScore) + self.sameAsScale.set(self.maxScore) + + self.differentScale.set(0) + self.differentScale.configure(to=self.maxScore) + self.updatePrimary() + self.updateSecondary() + self.updateCompare() + '''=================================================== + Callback for selecting a primary entity + ===================================================''' + def selectPrimary(self, a): + currItem = self.primaryTree.focus() + self.primary = self.primaryTree.item(currItem)['text'] + self.updateSecondary() + self.updateCompare() + '''=================================================== + Callback for selecting a secondary entity + ===================================================''' + def selectSecondary(self,a): + currItem = self.secondaryTree.focus() + secondary = self.secondaryTree.item(currItem)['text'] + if secondary != '': + self.secondaryEntity.update(secondary) + else: + self.secondaryEntity.update(None) + self.updateCompare() + + '''=================================================== + Callback for updating the compare Text box + ===================================================''' + def updateCompare(self): + + self.compareText.delete("1.0","end") + primary = self.primaryEntity.propertyString + secondary = self.secondaryEntity.propertyString + s = SequenceMatcher(None, primary,secondary) + for code in s.get_opcodes(): + if code[0] == "equal": + self.compareText.insert("end", primary[code[1]:code[2]],('equal')) + elif code[0] == "delete": + self.compareText.insert("end", primary[code[1]:code[2]],('delete')) + elif code[0] == "insert": + self.compareText.insert("end", secondary[code[3]:code[4]],('insert')) + elif code[0] == "replace": + self.compareText.insert("end", primary[code[1]:code[2]],('delete')) + self.compareText.insert("end", secondary[code[3]:code[4]],('insert')) + self.compareText.tag_config("equal", background="white", foreground="black") + self.compareText.tag_config("delete", background="white", foreground="red") + self.compareText.tag_config("insert", background="white", foreground="green") + + def updatePrimary(self): + for item in self.primaryTree.get_children(): + p = self.primaryTree.item(item)['text'] + if p in self.decisions and self.decisions[p] != None: + if self.decisions[p] == ASSUMED_COMBINED: + tags = ("assumedCombined",) + elif self.decisions[p] == CONFIRMED_COMBINED: + tags = ("confirmedCombined",) + else: + for s in self.decisions[p]: + if self.decisions[p][s] == CONFIRMED_SAME_AS: + tags = ("confirmedRemaining",) + break + tags = ("assumedRemaining",) + self.primaryTree.item(item, tags = tags) + + def updateSecondary(self): + ## Clear secondary Tree + for item in self.secondaryTree.get_children(): + self.secondaryTree.delete(item) + if self.primary != '': + self.resolution = {} + with open("Resolutions/"+self.primary.split("#")[-1]+".json","r") as resFile: + self.resolution = json.load(resFile) + + for p in sorted(self.resolution.items(), key=lambda x:x[1],reverse=True): + identifier = da.getIdentifier(p[0]) + tags = () + if self.primary in self.decisions: + if type(self.decisions[self.primary]) == int: + # this object is either ASSUMED_COMBINED or CONFIRMED_COMBINED so no need to populate the seconary object list + break + elif p[0] in self.decisions[self.primary]: #Get the tag from the decisions + tags = (self.decisions[self.primary][p[0]],) + self.secondaryTree.insert("",'end', text=p[0], values=(identifier, "{:.3f}".format(p[1])), tags = tags) + + self.primaryEntity.update(self.primary) + self.secondaryEntity.update(None) + else: + self.primaryEntity.update(None) + self.secondaryEntity.update(None) + + '''=================================================== + Callback for selecting a the confirmed same as button + ===================================================''' + def confirmSameAs(self): + currItem = self.primaryTree.focus() + primary = self.primaryTree.item(currItem)['text'] + + currItem = self.secondaryTree.focus() + secondary = self.secondaryTree.item(currItem)['text'] + print(primary, secondary) + + if primary not in self.decisions: + self.decisions[primary] = {} + self.decisions[primary][secondary] = CONFIRMED_SAME_AS + self.decisions[secondary] = CONFIRMED_COMBINED + self.updatePrimary() + self.updateSecondary() + self.updateCompare() + + '''=================================================== + Callback for selecting a the confirmed different button + ===================================================''' + def confirmDifferent(self): + currItem = self.primaryTree.focus() + primary = self.primaryTree.item(currItem)['text'] + + currItem = self.secondaryTree.focus() + secondary = self.secondaryTree.item(currItem)['text'] + + if primary not in self.decisions: + self.decisions[primary] = {} + self.decisions[primary][secondary] = CONFIRMED_DIFFERENT + self.updatePrimary() + self.updateSecondary() + self.updateCompare() + '''=================================================== + Callback for selecting a the Update Assumptions button + ===================================================''' + def assumptions(self): + i = 0 + for p in self.summary: + print(i, "/", len(self.summary)) + i+=1 + print(p) + temp = {} + with open("Resolutions/"+p.split("#")[-1]+".json","r") as resFile: + temp = json.load(resFile) + + ## Check if there is some confirmed + if p not in self.decisions: + self.decisions[p] = {} + for s in temp: + if type(self.decisions[p]) is not dict: # Not a dictionary this was previously combined + if self.decisions[p] == ASSUMED_COMBINED: # Reset if this was done by Assumption + self.decisions[p] = {} + if self.decisions[p] ==CONFIRMED_COMBINED: # () + continue + else: + print("Unexpected Decisions Setting: Key : {} : Value:{}".format(p, self.decisions[p])) + continue + if s in self.decisions[p]: + if self.decisions[p][s] == CONFIRMED_DIFFERENT or self.decisions[p][s] == CONFIRMED_SAME_AS \ + or self.decisions[p][s] == CONFIRMED_COMBINED : + continue + else: + del self.decisions[p][s] + if temp[s] < self.differentScale.get(): + self.decisions[p][s] = ASSUMED_DIFFERENT + elif temp[s] >= self.sameAsScale.get(): + self.decisions[p][s] = ASSUMED_SAME_AS + for p in self.decisions: + if type(self.decisions[p]) is dict: + for s in self.decisions[p]: + if self.decisions[p][s] == ASSUMED_SAME_AS: + self.decisions[s]= ASSUMED_COMBINED + elif self.decisions[p][s] == CONFIRMED_SAME_AS: + self.decisions[s]= CONFIRMED_COMBINED + self.updatePrimary() + self.updateSecondary() + + +if __name__ =="__main__": + mw = MainWindow() + mw.mainloop() diff --git a/EntityResolution/RACK_CONSTANTS.py b/EntityResolution/RACK_CONSTANTS.py new file mode 100644 index 00000000..4d7c695c --- /dev/null +++ b/EntityResolution/RACK_CONSTANTS.py @@ -0,0 +1,117 @@ + +connStringSource = """ +{ "name":"RACK local fuseki Apache Phase 2 Resolved", + "domain":"", + "enableOwlImports":false, + "model":[ + {"type":"fuseki","url":"http://localhost:3030/RACK","graph":"http://rack001/model"} + ], + "data":[ + {"type":"fuseki","url":"http://localhost:3030/RACK","graph":"http://rack001/Data"} + ] +}""" +connStringResolved = """ +{ "name":"RACK local fuseki Apache Phase 2 Resolved", + "domain":"", + "enableOwlImports":false, + "model":[ + {"type":"fuseki","url":"http://localhost:3030/RACK","graph":"http://rack001/model"} + ], + "data":[ + {"type":"fuseki","url":"http://localhost:3030/RACK","graph":"http://rack001/ResolvedData"} + ] +}""" + +entityTypeQuery = '''prefix rdf: +prefix PROV_S: +prefix rdfs: +select distinct ?directSub + FROM + where { ?directSub rdfs:subClassOf ?super. + values ?super{PROV_S:ENTITY} .} +''' + +activityTypeQuery = '''prefix rdf: +prefix PROV_S: +prefix rdfs: +select distinct ?directSub + FROM + where { ?directSub rdfs:subClassOf ?super. + values ?super{PROV_S:ACTIVITY} .} +''' + +agentTypeQuery = '''prefix rdf: +prefix PROV_S: +prefix rdfs: +select distinct ?directSub + FROM + where { ?directSub rdfs:subClassOf ?super. + values ?super{PROV_S:AGENT} .} +''' + +classQuery = '''prefix rdf: +prefix PROV_S: +prefix rdfs: +select distinct ?directSub + FROM + where { ?directSub rdfs:subClassOf ?super. + values ?super{<{{Type}}>} .} +''' + +subClassQuery = '''prefix rdf: +prefix PROV_S: +prefix rdfs: +select distinct ?super + FROM + where { ?directSub rdfs:subClassOf ?super. + values ?directSub{<{{Type}}>} .} +''' + +instanceQuery = '''prefix rdf: +prefix PROV_S: +prefix rdfs: +select distinct ?instance ?super + FROM + where { ?instance a ?super. + values ?super{<{{Types}}>} .} +''' + +dataQuery = """prefix rdf: +prefix semtk: +prefix XMLSchema: +prefix PROV_S: +prefix rdfs: +CONSTRUCT { + ?THING a ?THING_type . + ?THING ?dp ?o . + + ?THING ?p ?OBJ . + ?OBJ a ?OBJ_type . + ?OBJ PROV_S:identifier ?OBJ_identifier . + + ?OBJ2 ?ap ?THING . + ?OBJ2 a ?OBJ2_type . + ?OBJ2 PROV_S:identifier ?OBJ2_identifier . +} + FROM + FROM +where { + ?THING a ?THING_type . + ?THING_type rdfs:subClassOf* PROV_S:THING . + FILTER ( ?THING IN ( ) ) . + optional{ + ?THING ?p ?OBJ . + ?OBJ a ?OBJ_type . + ?OBJ PROV_S:identifier ?OBJ_identifier . + ?OBJ_type rdfs:subClassOf* PROV_S:THING . + } + optional{ + ?THING ?dp ?o + } + optional{ + ?OBJ2 ?ap ?THING . + ?OBJ2 a ?OBJ2_type . + ?OBJ2 PROV_S:identifier ?OBJ2_identifier . + ?OBJ2_type rdfs:subClassOf* PROV_S:THING . + } +}""" diff --git a/EntityResolution/ResolutionEngine.py b/EntityResolution/ResolutionEngine.py new file mode 100755 index 00000000..6832b7b1 --- /dev/null +++ b/EntityResolution/ResolutionEngine.py @@ -0,0 +1,107 @@ +#!/usr/bin/env python3 +import os +import json +from colorama import Fore, Style +import multiprocessing +import os.path +DEBUG = False +def Debug(*args): + if DEBUG: + print(*args) + + +###################################### +# 0.0 == confirmedDifferent +# 0.0 < assumedDifferent <= 0.5 +# 0.5 < possibleSameAs <= 0.9 +# 0.8 < assumedSameAs < 1.0 +# 1.0 == confirmedSameAs +###################################### + +reportString = """{} / {} - {} + Best Match:{} + Score:{}{}{} +------------------------------------------------------------------------""" + +class ResolutionEngine: + entityList = None + ruleList = None + resolutions = None + processed = 0 + sourceConnection = None + resolvedConnection = None + logString = "" + + def __init__(self): + self.entityList = list() + self.ruleList = list() + + def __runRules__(self, eP, eS): + Score = 1 + for ruleType, rule in self.ruleList: + applicable, level = rule(eP, eS) + if applicable: + if ruleType == "Absolute": + return level + else: + Score += level + return Score + + def addEntities(self, entityUriList): + self.entityList = entityUriList + + def addAbsoluteRule(self, ruleFunction): + self.ruleList.append(["Absolute", ruleFunction]) + + def addRelativeRule(self, ruleFunction): + self.ruleList.append(["Relative", ruleFunction]) + + def work(self, eP): + print("Running Analysis on {}".format(eP)) + maxScore = 0 + bestMatch = None + resolutions = {} + Score = 0.0 + for eS in self.entityList[eP]: + if eS!=eP: + Score = self.__runRules__(eP,eS) + resolutions[eS] = Score + if Score > maxScore: + maxScore = Score + bestMatch = eS + color = Fore.WHITE + if Score> 2: + color = Fore.YELLOW + elif Score > 4: + color = Fore.GREEN + + with open("Resolutions/"+eP.split("#")[-1]+".json", "w") as out: + json.dump(resolutions, out, indent=4) + + with open("Resolutions/Summary.csv", "a") as out: + out.write("{},{},{}\n".format(eP,bestMatch ,maxScore)) + + print(reportString.format(len(os.listdir("Resolutions")), len(self.entityList), eP, bestMatch, color,str(maxScore),Style.RESET_ALL)) + + def runAllAnalysis(self): + + ###################################################################### + print("Intializing Resolution Dictionary..") + for f in os.listdir("Resolutions"): + os.remove(os.path.join("Resolutions",f)) + with open("Resolutions/Summary.csv", "w") as out: + out.write("Primary,Best Match,Score\n") + print(" Initialization Done.") + ###################################################################### + + ###################################################################### + print("Running Analysis..") + #for k in self.entityList.keys(): + # self.work(k) + print(" analyzing {} things for commonality.".format(len(self.entityList))) + with multiprocessing.Pool() as pool: + pool.map(self.work, self.entityList.keys()) + print(" Analysis Complete.") + ###################################################################### + + diff --git a/EntityResolution/ResolveThings.py b/EntityResolution/ResolveThings.py new file mode 100755 index 00000000..3096f3f4 --- /dev/null +++ b/EntityResolution/ResolveThings.py @@ -0,0 +1,112 @@ +#!/usr/bin/env python3 +import DataAccess as da +import ResolutionEngine as re +from difflib import SequenceMatcher +data = {} +entities = {} +DEBUG = False +def Debug(*args): + if DEBUG: + print(*args) +##################################### +# Queries +##################################### + +##################################### +# helper Functions +##################################### +def cleanString(string): + cleanString = "" + for c in string: + if c.isalnum(): + cleanString+=c + else: + cleanString += " " + while cleanString.find(" ")!=-1: + cleanString = cleanString.replace(" "," ") + + return cleanString.upper().rstrip(" ").lstrip(" ") +##################################### +# Rules Definitions +##################################### + +def fuzzyDescriptionCompare(e1,e2): + Debug("descriptionCompare") + if da.getDescription(e1) != None and da.getDescription(e2) != None: + t1 = cleanString(da.getDescription(e1)) + t2 = cleanString(da.getDescription(e2)) + matcher = SequenceMatcher(None, t1, t2) + return True, matcher.ratio()*2 + else: + return False, 1.0 +def fuzzyIdentifierCompare(e1,e2): + Debug("fuzzyIdentifierCompare") + global data + t1 = cleanString(da.getIdentifier(e1)) + t2 = cleanString(da.getIdentifier(e2)) + matcher = SequenceMatcher(None, t1, t2) + return True, matcher.ratio() * 2 + +def identifierCompare(e1,e2): + Debug("identifierCompare") + global data + t1 = cleanString(da.getIdentifier(e1)) + t2 = cleanString(da.getIdentifier(e2)) + + if t1 == t2: + return True, 5.0 + else: + return False, 5.0 + +def getDataInsertedBy(e): + guid = e.split("#")[-1] + data = da.getData(e) + ## Create a Hash based on the GUID and find the base Element + elements={} + baseElement = None + if "@graph" not in data: # No Graph tag means there is a single element at the root. + baseElement = data + return list() + + for el in data["@graph"]: + elements[el["@id"].split(":")[-1]] = el + if el["@id"].split(":")[-1] == guid: + baseElement = el + dataInsertedByIdentifiers = [] + ## Get dataInsertedBy Elements and collect the identifiers + if type(baseElement['PROV_S:dataInsertedBy']) is dict: + dataInsertedByIdentifiers.append(elements[baseElement['PROV_S:dataInsertedBy']['@id'].split(":")[-1]]['PROV_S:identifier']) + elif type(baseElement['PROV_S:dataInsertedBy']) is list: + for i in baseElement['PROV_S:dataInsertedBy']: + dataInsertedByIdentifiers.append(elements[i['@id'].split(":")[-1]]['PROV_S:identifier']) + else: + print("***** ERRROR 1 *****") + return dataInsertedByIdentifiers + + +def dataInsertedByCheck(e1,e2): + Debug("dataInsertedByCheck") + global data + t1 = getDataInsertedBy(e1) + t2 = getDataInsertedBy(e2) + + # If the requirements were inserted by the same ingestion then assum the entities are different + for i1 in t1: + for i2 in t2: + if i1 == i2: + return True, 0.0 + + return False, 1.0 + +def run(entities): + resEngine = re.ResolutionEngine() + resEngine.addEntities(entities) + resEngine.addAbsoluteRule(dataInsertedByCheck) + resEngine.addAbsoluteRule(identifierCompare) + resEngine.addRelativeRule(fuzzyIdentifierCompare) + resEngine.addRelativeRule(fuzzyDescriptionCompare) + + resEngine.runAllAnalysis() + +if __name__ == "__main__": + run(True) diff --git a/EntityResolution/SelectClassWindow.py b/EntityResolution/SelectClassWindow.py new file mode 100644 index 00000000..6de5dc75 --- /dev/null +++ b/EntityResolution/SelectClassWindow.py @@ -0,0 +1,123 @@ +#!/usr/bin/env python3 +#import os + +from CheckBar import Checkbar +import tkinter as tk +from tkinter import ttk +#from tkinter.messagebox import askyesno +import semtk3 +#import os.path +import RACK_CONSTANTS as rc +#from Entity import * +results = [] +class ClassWindow(tk.Tk): + def __init__(self): + super().__init__() + self.title('Select Classes') + self.superClassSelections = Checkbar(self, picks=['Activity', 'Agent', 'Entity'], command=self.update) + self.superClassSelections.grid(row=0, column=1) + + + self.classesTree = ttk.Treeview(self, selectmode=None, height=40) + self.classesTree["columns"]=["Class","Parent"] + self.classesTree["show"]="headings" + self.sortOrder = {} + for h in self.classesTree["columns"]: + self.classesTree.heading(h, text=h, command=lambda h=h: self.treeview_sort_column(h)) + self.sortOrder[h] = True + self.classesTree.grid(row=1, column=0, columnspan=3, sticky='nsew') + + self.updateButton = ttk.Button(self, text="Done", command=self.done) + self.updateButton.grid(row=2, column=1) + + self.grid_columnconfigure(0,weight=1) + self.grid_columnconfigure(1,weight=0) + self.grid_columnconfigure(2,weight=1) + + self.grid_rowconfigure(0,weight=0) + self.grid_rowconfigure(1,weight=1) + self.grid_rowconfigure(2,weight=0) + self.queryRack() + self.update() + + def treeview_sort_column(self, col): + tv = self.classesTree + l = [(tv.set(k, col), k) for k in tv.get_children('')] + l.sort(reverse=self.sortOrder[col] ) + + # rearrange items in sorted positions + for index, (val, k) in enumerate(l): + tv.move(k, '', index) + + # reverse sort next time + self.sortOrder[col] = not self.sortOrder[col] + + + def done(self): + global results + results = [] + selections = [] + for s in self.classesTree.selection(): + selections.append(self.classesTree.item(s)['text']) + results = getSubclass(selections) + self.destroy() + def queryRack(self): + all_ok = semtk3.check_services(); + if not all_ok: + print("Semtk services are not properly running on localhost") + return + self.classes = {'Entity':[], 'Activity':[], 'Agent':[], } + + tab = semtk3.query_raw_sparql(rc.entityTypeQuery) + for c in tab.get_column("directSub"): + if c not in self.classes['Entity']: + self.classes['Entity'].append(c) + + tab = semtk3.query_raw_sparql(rc.agentTypeQuery) + for c in tab.get_column("directSub"): + if c not in self.classes['Agent']: + self.classes['Agent'].append(c) + + tab = semtk3.query_raw_sparql(rc.activityTypeQuery) + for c in tab.get_column("directSub"): + if c not in self.classes['Activity']: + self.classes['Activity'].append(c) + + def update(self): + for item in self.classesTree.get_children(): + self.classesTree.delete(item) + + s = self.superClassSelections.state() + print(s) + if s['Entity']: + for c in self.classes['Entity']: + self.classesTree.insert("",'end', text=c, values=(c, 'Entity' )) + if s['Activity']: + for c in self.classes['Activity']: + self.classesTree.insert("",'end', text=c, values=(c, 'Activity' )) + if s['Agent']: + for c in self.classes['Agent']: + self.classesTree.insert("",'end', text=c, values=(c, 'Agent' )) + +def getSubclass(classes): + all_ok = semtk3.check_services(); + if not all_ok: + print("Semtk services are not properly running on localhost") + return + subclasses = [] + for s in classes: + subclasses.append(s) + tab = semtk3.query_raw_sparql(rc.classQuery.replace("{{Type}}", s)) + for c in tab.get_column("directSub"): + if c not in classes: + subclasses.append(c) + return subclasses + + +def SelectClass(): + c = ClassWindow() + c.wait_window() + return results +if __name__ == "__main__": + print(SelectClass()) + diff --git a/EntityResolution/TestData/Create-RACK-DATA.py b/EntityResolution/TestData/Create-RACK-DATA.py new file mode 100755 index 00000000..1fd5f7e9 --- /dev/null +++ b/EntityResolution/TestData/Create-RACK-DATA.py @@ -0,0 +1,51 @@ +#!/bin/python3 +import os.path +import shutil +from Evidence import createEvidenceFile, createCDR +import Evidence.Add as Add +if __name__ == "__main__": + ################################################################# + if os.path.exists(os.path.join(".","Package-1")): + shutil.rmtree(os.path.join(".","Package-1")) + createEvidenceFile(ingestionTitle="Package 1") + Add.TESTING.TEST(identifier="{L1-TST-1}", description="This is test L1-1.", verifies_identifier="{L1-REQ-1}") + Add.TESTING.TEST(identifier="{L1-TST-2}", description="This is test L1-2.", verifies_identifier="{L1-REQ-1}") + Add.REQUIREMENTS.REQUIREMENT(identifier="{L1-REQ-1}") + createCDR() + os.rename(os.path.join(".","RACK-DATA"), os.path.join(".","Package-1")) + + ################################################################# + if os.path.exists(os.path.join(".","Package-2")): + shutil.rmtree(os.path.join(".","Package-2")) + createEvidenceFile(ingestionTitle="Package 2") + Add.REQUIREMENTS.REQUIREMENT(identifier="L1-REQ-1", description="This is requirement L1-1.", satisfies_identifier="L0-REQ-1") + Add.REQUIREMENTS.REQUIREMENT(identifier="L1-REQ-2", description="This is requirement L1-2.", satisfies_identifier="L0-REQ-1") + Add.REQUIREMENTS.REQUIREMENT(identifier="L0-REQ-1") + createCDR() + os.rename(os.path.join(".","RACK-DATA"), os.path.join(".","Package-2")) + + ################################################################# + if os.path.exists(os.path.join(".","Package-3")): + shutil.rmtree(os.path.join(".","Package-3")) + createEvidenceFile(ingestionTitle="Package 3") + Add.REQUIREMENTS.REQUIREMENT(identifier="[L1-REQ-2]", satisfies_identifier="[L0-REQ-2]") + Add.REQUIREMENTS.REQUIREMENT(identifier="[L1-REQ-3]", satisfies_identifier="[L0-REQ-2]") + Add.REQUIREMENTS.REQUIREMENT(identifier="[L0-REQ-2]") + createCDR() + os.rename(os.path.join(".","RACK-DATA"), os.path.join(".","Package-3")) + + ################################################################# + if os.path.exists(os.path.join(".","Resolutions-1")): + shutil.rmtree(os.path.join(".","Resolutions-1")) + createEvidenceFile(ingestionTitle="Resolutions-1") + Add.RESOLUTIONS.SAME_AS(primary_identifier="L1-REQ-1", secondary_identifier="{L1-REQ-1}") + createCDR() + os.rename(os.path.join(".","RACK-DATA"), os.path.join(".","Resolutions-1")) + + ################################################################# + if os.path.exists(os.path.join(".","Resolutions-2")): + shutil.rmtree(os.path.join(".","Resolutions-2")) + createEvidenceFile(ingestionTitle="Resolutions-2") + Add.RESOLUTIONS.SAME_AS(primary_identifier="L1-REQ-2", secondary_identifier="[L1-REQ-2]") + createCDR() + os.rename(os.path.join(".","RACK-DATA"), os.path.join(".","Resolutions-2")) diff --git a/EntityResolution/TestData/Load-Package1.sh b/EntityResolution/TestData/Load-Package1.sh new file mode 100755 index 00000000..c1c7efa3 --- /dev/null +++ b/EntityResolution/TestData/Load-Package1.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Copyright (c) 2020, General Electric Company and Galois, Inc. +set -eu +BASEDIR=$(cd "$(dirname "$0")"; pwd) +echo "$BASEDIR" +if ! command -v rack > /dev/null +then + cat <<-END + ERROR: rack cli tool not found in PATH + + Installation instructions are available at + https://github.com/ge-high-assurance/RACK/wiki/RACK-CLI#install-dependencies + or locally in README.md + + If you've already installed RACK CLI, please activate your virtual environment + + macOS/Linux: source venv/bin/activate + Windows: venv\\Scripts\\activate.bat + PowerShell: venv\\Scripts\\Activate.ps1 + END + exit 1 +fi + +# suppress RACK cli warnings about missing columns +export LOG_LEVEL=ERROR + +echo "Ingesting Package 1 ..." +rack data import --clear "$BASEDIR"/Package-1/import.yaml + diff --git a/EntityResolution/TestData/Load-Package2.sh b/EntityResolution/TestData/Load-Package2.sh new file mode 100755 index 00000000..392c7941 --- /dev/null +++ b/EntityResolution/TestData/Load-Package2.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Copyright (c) 2020, General Electric Company and Galois, Inc. +set -eu +BASEDIR=$(cd "$(dirname "$0")"; pwd) +echo "$BASEDIR" +if ! command -v rack > /dev/null +then + cat <<-END + ERROR: rack cli tool not found in PATH + + Installation instructions are available at + https://github.com/ge-high-assurance/RACK/wiki/RACK-CLI#install-dependencies + or locally in README.md + + If you've already installed RACK CLI, please activate your virtual environment + + macOS/Linux: source venv/bin/activate + Windows: venv\\Scripts\\activate.bat + PowerShell: venv\\Scripts\\Activate.ps1 + END + exit 1 +fi + +# suppress RACK cli warnings about missing columns +export LOG_LEVEL=ERROR + +echo "Ingesting Package 2 ..." +rack data import "$BASEDIR"/Package-2/import.yaml + diff --git a/EntityResolution/TestData/Load-Package3.sh b/EntityResolution/TestData/Load-Package3.sh new file mode 100755 index 00000000..404ef928 --- /dev/null +++ b/EntityResolution/TestData/Load-Package3.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Copyright (c) 2020, General Electric Company and Galois, Inc. +set -eu +BASEDIR=$(cd "$(dirname "$0")"; pwd) +echo "$BASEDIR" +if ! command -v rack > /dev/null +then + cat <<-END + ERROR: rack cli tool not found in PATH + + Installation instructions are available at + https://github.com/ge-high-assurance/RACK/wiki/RACK-CLI#install-dependencies + or locally in README.md + + If you've already installed RACK CLI, please activate your virtual environment + + macOS/Linux: source venv/bin/activate + Windows: venv\\Scripts\\activate.bat + PowerShell: venv\\Scripts\\Activate.ps1 + END + exit 1 +fi + +# suppress RACK cli warnings about missing columns +export LOG_LEVEL=ERROR + +echo "Ingesting Package-3..." +rack data import "$BASEDIR"/Package-3/import.yaml + diff --git a/EntityResolution/TestData/Load-Resolutions-1.sh b/EntityResolution/TestData/Load-Resolutions-1.sh new file mode 100755 index 00000000..a2db4af2 --- /dev/null +++ b/EntityResolution/TestData/Load-Resolutions-1.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Copyright (c) 2020, General Electric Company and Galois, Inc. +set -eu +BASEDIR=$(cd "$(dirname "$0")"; pwd) +echo "$BASEDIR" +if ! command -v rack > /dev/null +then + cat <<-END + ERROR: rack cli tool not found in PATH + + Installation instructions are available at + https://github.com/ge-high-assurance/RACK/wiki/RACK-CLI#install-dependencies + or locally in README.md + + If you've already installed RACK CLI, please activate your virtual environment + + macOS/Linux: source venv/bin/activate + Windows: venv\\Scripts\\activate.bat + PowerShell: venv\\Scripts\\Activate.ps1 + END + exit 1 +fi + +# suppress RACK cli warnings about missing columns +export LOG_LEVEL=ERROR + +echo "Ingesting Resolution Data ..." +rack data import "$BASEDIR"/Resolutions-1/import.yaml + diff --git a/EntityResolution/TestData/Load-Resolutions-2.sh b/EntityResolution/TestData/Load-Resolutions-2.sh new file mode 100755 index 00000000..cf650d50 --- /dev/null +++ b/EntityResolution/TestData/Load-Resolutions-2.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Copyright (c) 2020, General Electric Company and Galois, Inc. +set -eu +BASEDIR=$(cd "$(dirname "$0")"; pwd) +echo "$BASEDIR" +if ! command -v rack > /dev/null +then + cat <<-END + ERROR: rack cli tool not found in PATH + + Installation instructions are available at + https://github.com/ge-high-assurance/RACK/wiki/RACK-CLI#install-dependencies + or locally in README.md + + If you've already installed RACK CLI, please activate your virtual environment + + macOS/Linux: source venv/bin/activate + Windows: venv\\Scripts\\activate.bat + PowerShell: venv\\Scripts\\Activate.ps1 + END + exit 1 +fi + +# suppress RACK cli warnings about missing columns +export LOG_LEVEL=ERROR + +echo "Ingesting Resolution Data ..." +rack data import "$BASEDIR"/Resolutions-2/import.yaml + diff --git a/EntityResolution/TestData/Package-1/PROV_S_ACTIVITY1.csv b/EntityResolution/TestData/Package-1/PROV_S_ACTIVITY1.csv new file mode 100644 index 00000000..69b3ecc5 --- /dev/null +++ b/EntityResolution/TestData/Package-1/PROV_S_ACTIVITY1.csv @@ -0,0 +1,2 @@ +identifier +Package 1 diff --git a/EntityResolution/TestData/Package-1/PROV_S_ACTIVITY2.csv b/EntityResolution/TestData/Package-1/PROV_S_ACTIVITY2.csv new file mode 100644 index 00000000..173fba18 --- /dev/null +++ b/EntityResolution/TestData/Package-1/PROV_S_ACTIVITY2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +Package 1,Package 1,Data that was ingested using the ARCOS Scraping Tool Kit.,2022-12-08 14:39:56,Package 1, +Package 1,Package 1,,,,2022-12-08 14:39:56 diff --git a/EntityResolution/TestData/Package-1/REQUIREMENTS_REQUIREMENT1.csv b/EntityResolution/TestData/Package-1/REQUIREMENTS_REQUIREMENT1.csv new file mode 100644 index 00000000..cc5f7e47 --- /dev/null +++ b/EntityResolution/TestData/Package-1/REQUIREMENTS_REQUIREMENT1.csv @@ -0,0 +1,2 @@ +identifier +{L1-REQ-1} diff --git a/EntityResolution/TestData/Package-1/REQUIREMENTS_REQUIREMENT2.csv b/EntityResolution/TestData/Package-1/REQUIREMENTS_REQUIREMENT2.csv new file mode 100644 index 00000000..46ed5d48 --- /dev/null +++ b/EntityResolution/TestData/Package-1/REQUIREMENTS_REQUIREMENT2.csv @@ -0,0 +1,2 @@ +identifier,dataInsertedBy_identifier +{L1-REQ-1},Package 1 diff --git a/EntityResolution/TestData/Package-1/TESTING_TEST1.csv b/EntityResolution/TestData/Package-1/TESTING_TEST1.csv new file mode 100644 index 00000000..56cc9c6d --- /dev/null +++ b/EntityResolution/TestData/Package-1/TESTING_TEST1.csv @@ -0,0 +1,3 @@ +identifier +{L1-TST-1} +{L1-TST-2} diff --git a/EntityResolution/TestData/Package-1/TESTING_TEST2.csv b/EntityResolution/TestData/Package-1/TESTING_TEST2.csv new file mode 100644 index 00000000..09594707 --- /dev/null +++ b/EntityResolution/TestData/Package-1/TESTING_TEST2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,description,verifies_identifier +{L1-TST-1},Package 1,This is test L1-1.,{L1-REQ-1} +{L1-TST-2},Package 1,This is test L1-2.,{L1-REQ-1} diff --git a/EntityResolution/TestData/Package-1/import.yaml b/EntityResolution/TestData/Package-1/import.yaml new file mode 100644 index 00000000..b78e80c1 --- /dev/null +++ b/EntityResolution/TestData/Package-1/import.yaml @@ -0,0 +1,11 @@ +data-graph: "http://rack001/data" +ingestion-steps: +#Phase1: Identifiers Only +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/REQUIREMENTS#REQUIREMENT", csv: "REQUIREMENTS_REQUIREMENT1.csv"} +- {class: "http://arcos.rack/TESTING#TEST", csv: "TESTING_TEST1.csv"} + +#Phase2: All Evidence +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/REQUIREMENTS#REQUIREMENT", csv: "REQUIREMENTS_REQUIREMENT2.csv"} +- {class: "http://arcos.rack/TESTING#TEST", csv: "TESTING_TEST2.csv"} diff --git a/EntityResolution/TestData/Package-2/PROV_S_ACTIVITY1.csv b/EntityResolution/TestData/Package-2/PROV_S_ACTIVITY1.csv new file mode 100644 index 00000000..10d87e4b --- /dev/null +++ b/EntityResolution/TestData/Package-2/PROV_S_ACTIVITY1.csv @@ -0,0 +1,2 @@ +identifier +Package 2 diff --git a/EntityResolution/TestData/Package-2/PROV_S_ACTIVITY2.csv b/EntityResolution/TestData/Package-2/PROV_S_ACTIVITY2.csv new file mode 100644 index 00000000..33d78f1a --- /dev/null +++ b/EntityResolution/TestData/Package-2/PROV_S_ACTIVITY2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +Package 2,Package 2,Data that was ingested using the ARCOS Scraping Tool Kit.,2022-12-08 14:39:56,Package 2, +Package 2,Package 2,,,,2022-12-08 14:39:56 diff --git a/EntityResolution/TestData/Package-2/REQUIREMENTS_REQUIREMENT1.csv b/EntityResolution/TestData/Package-2/REQUIREMENTS_REQUIREMENT1.csv new file mode 100644 index 00000000..c37e11d0 --- /dev/null +++ b/EntityResolution/TestData/Package-2/REQUIREMENTS_REQUIREMENT1.csv @@ -0,0 +1,4 @@ +identifier +L1-REQ-1 +L1-REQ-2 +L0-REQ-1 diff --git a/EntityResolution/TestData/Package-2/REQUIREMENTS_REQUIREMENT2.csv b/EntityResolution/TestData/Package-2/REQUIREMENTS_REQUIREMENT2.csv new file mode 100644 index 00000000..322570d8 --- /dev/null +++ b/EntityResolution/TestData/Package-2/REQUIREMENTS_REQUIREMENT2.csv @@ -0,0 +1,4 @@ +identifier,dataInsertedBy_identifier,description,satisfies_identifier +L1-REQ-1,Package 2,This is requirement L1-1.,L0-REQ-1 +L1-REQ-2,Package 2,This is requirement L1-2.,L0-REQ-1 +L0-REQ-1,Package 2,, diff --git a/EntityResolution/TestData/Package-2/import.yaml b/EntityResolution/TestData/Package-2/import.yaml new file mode 100644 index 00000000..a8efb989 --- /dev/null +++ b/EntityResolution/TestData/Package-2/import.yaml @@ -0,0 +1,9 @@ +data-graph: "http://rack001/data" +ingestion-steps: +#Phase1: Identifiers Only +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/REQUIREMENTS#REQUIREMENT", csv: "REQUIREMENTS_REQUIREMENT1.csv"} + +#Phase2: All Evidence +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/REQUIREMENTS#REQUIREMENT", csv: "REQUIREMENTS_REQUIREMENT2.csv"} diff --git a/EntityResolution/TestData/Package-3/PROV_S_ACTIVITY1.csv b/EntityResolution/TestData/Package-3/PROV_S_ACTIVITY1.csv new file mode 100644 index 00000000..ed0a9665 --- /dev/null +++ b/EntityResolution/TestData/Package-3/PROV_S_ACTIVITY1.csv @@ -0,0 +1,2 @@ +identifier +Package 3 diff --git a/EntityResolution/TestData/Package-3/PROV_S_ACTIVITY2.csv b/EntityResolution/TestData/Package-3/PROV_S_ACTIVITY2.csv new file mode 100644 index 00000000..d792488e --- /dev/null +++ b/EntityResolution/TestData/Package-3/PROV_S_ACTIVITY2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +Package 3,Package 3,Data that was ingested using the ARCOS Scraping Tool Kit.,2022-12-08 14:39:56,Package 3, +Package 3,Package 3,,,,2022-12-08 14:39:56 diff --git a/EntityResolution/TestData/Package-3/REQUIREMENTS_REQUIREMENT1.csv b/EntityResolution/TestData/Package-3/REQUIREMENTS_REQUIREMENT1.csv new file mode 100644 index 00000000..a34b930d --- /dev/null +++ b/EntityResolution/TestData/Package-3/REQUIREMENTS_REQUIREMENT1.csv @@ -0,0 +1,4 @@ +identifier +[L1-REQ-2] +[L1-REQ-3] +[L0-REQ-2] diff --git a/EntityResolution/TestData/Package-3/REQUIREMENTS_REQUIREMENT2.csv b/EntityResolution/TestData/Package-3/REQUIREMENTS_REQUIREMENT2.csv new file mode 100644 index 00000000..ef1c733b --- /dev/null +++ b/EntityResolution/TestData/Package-3/REQUIREMENTS_REQUIREMENT2.csv @@ -0,0 +1,4 @@ +identifier,dataInsertedBy_identifier,satisfies_identifier +[L1-REQ-2],Package 3,[L0-REQ-2] +[L1-REQ-3],Package 3,[L0-REQ-2] +[L0-REQ-2],Package 3, diff --git a/EntityResolution/TestData/Package-3/import.yaml b/EntityResolution/TestData/Package-3/import.yaml new file mode 100644 index 00000000..a8efb989 --- /dev/null +++ b/EntityResolution/TestData/Package-3/import.yaml @@ -0,0 +1,9 @@ +data-graph: "http://rack001/data" +ingestion-steps: +#Phase1: Identifiers Only +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/REQUIREMENTS#REQUIREMENT", csv: "REQUIREMENTS_REQUIREMENT1.csv"} + +#Phase2: All Evidence +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/REQUIREMENTS#REQUIREMENT", csv: "REQUIREMENTS_REQUIREMENT2.csv"} diff --git a/EntityResolution/TestData/Resolutions-1/PROV_S_ACTIVITY1.csv b/EntityResolution/TestData/Resolutions-1/PROV_S_ACTIVITY1.csv new file mode 100644 index 00000000..933e9b41 --- /dev/null +++ b/EntityResolution/TestData/Resolutions-1/PROV_S_ACTIVITY1.csv @@ -0,0 +1,2 @@ +identifier +Resolutions-1 diff --git a/EntityResolution/TestData/Resolutions-1/PROV_S_ACTIVITY2.csv b/EntityResolution/TestData/Resolutions-1/PROV_S_ACTIVITY2.csv new file mode 100644 index 00000000..85020507 --- /dev/null +++ b/EntityResolution/TestData/Resolutions-1/PROV_S_ACTIVITY2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +Resolutions-1,Resolutions-1,Data that was ingested using the ARCOS Scraping Tool Kit.,2022-12-08 14:39:56,Resolutions-1, +Resolutions-1,Resolutions-1,,,,2022-12-08 14:39:56 diff --git a/EntityResolution/TestData/Resolutions-1/RESOLUTIONS_SAME_AS1.csv b/EntityResolution/TestData/Resolutions-1/RESOLUTIONS_SAME_AS1.csv new file mode 100644 index 00000000..2a8effa7 --- /dev/null +++ b/EntityResolution/TestData/Resolutions-1/RESOLUTIONS_SAME_AS1.csv @@ -0,0 +1 @@ +identifier diff --git a/EntityResolution/TestData/Resolutions-1/RESOLUTIONS_SAME_AS2.csv b/EntityResolution/TestData/Resolutions-1/RESOLUTIONS_SAME_AS2.csv new file mode 100644 index 00000000..6b3fdbca --- /dev/null +++ b/EntityResolution/TestData/Resolutions-1/RESOLUTIONS_SAME_AS2.csv @@ -0,0 +1,2 @@ +identifier,dataInsertedBy_identifier,primary_identifier,secondary_identifier +,Resolutions-1,L1-REQ-1,{L1-REQ-1} diff --git a/EntityResolution/TestData/Resolutions-1/import.yaml b/EntityResolution/TestData/Resolutions-1/import.yaml new file mode 100644 index 00000000..c8fed863 --- /dev/null +++ b/EntityResolution/TestData/Resolutions-1/import.yaml @@ -0,0 +1,9 @@ +data-graph: "http://rack001/data" +ingestion-steps: +#Phase1: Identifiers Only +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/RESOLUTIONS#SAME_AS", csv: "RESOLUTIONS_SAME_AS1.csv"} + +#Phase2: All Evidence +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/RESOLUTIONS#SAME_AS", csv: "RESOLUTIONS_SAME_AS2.csv"} diff --git a/EntityResolution/TestData/Resolutions-2/PROV_S_ACTIVITY1.csv b/EntityResolution/TestData/Resolutions-2/PROV_S_ACTIVITY1.csv new file mode 100644 index 00000000..ebf03678 --- /dev/null +++ b/EntityResolution/TestData/Resolutions-2/PROV_S_ACTIVITY1.csv @@ -0,0 +1,2 @@ +identifier +Resolutions-2 diff --git a/EntityResolution/TestData/Resolutions-2/PROV_S_ACTIVITY2.csv b/EntityResolution/TestData/Resolutions-2/PROV_S_ACTIVITY2.csv new file mode 100644 index 00000000..f2f8ec6a --- /dev/null +++ b/EntityResolution/TestData/Resolutions-2/PROV_S_ACTIVITY2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +Resolutions-2,Resolutions-2,Data that was ingested using the ARCOS Scraping Tool Kit.,2022-12-08 14:39:56,Resolutions-2, +Resolutions-2,Resolutions-2,,,,2022-12-08 14:39:56 diff --git a/EntityResolution/TestData/Resolutions-2/RESOLUTIONS_SAME_AS1.csv b/EntityResolution/TestData/Resolutions-2/RESOLUTIONS_SAME_AS1.csv new file mode 100644 index 00000000..2a8effa7 --- /dev/null +++ b/EntityResolution/TestData/Resolutions-2/RESOLUTIONS_SAME_AS1.csv @@ -0,0 +1 @@ +identifier diff --git a/EntityResolution/TestData/Resolutions-2/RESOLUTIONS_SAME_AS2.csv b/EntityResolution/TestData/Resolutions-2/RESOLUTIONS_SAME_AS2.csv new file mode 100644 index 00000000..6409b459 --- /dev/null +++ b/EntityResolution/TestData/Resolutions-2/RESOLUTIONS_SAME_AS2.csv @@ -0,0 +1,2 @@ +identifier,dataInsertedBy_identifier,primary_identifier,secondary_identifier +,Resolutions-2,L1-REQ-2,[L1-REQ-2] diff --git a/EntityResolution/TestData/Resolutions-2/import.yaml b/EntityResolution/TestData/Resolutions-2/import.yaml new file mode 100644 index 00000000..c8fed863 --- /dev/null +++ b/EntityResolution/TestData/Resolutions-2/import.yaml @@ -0,0 +1,9 @@ +data-graph: "http://rack001/data" +ingestion-steps: +#Phase1: Identifiers Only +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/RESOLUTIONS#SAME_AS", csv: "RESOLUTIONS_SAME_AS1.csv"} + +#Phase2: All Evidence +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/RESOLUTIONS#SAME_AS", csv: "RESOLUTIONS_SAME_AS2.csv"} diff --git a/EntityResolution/getData.json b/EntityResolution/getData.json new file mode 100644 index 00000000..6063a85f --- /dev/null +++ b/EntityResolution/getData.json @@ -0,0 +1,314 @@ +{ + "version": 3, + "sparqlConn": { + "name": "RACK local fuseki", + "domain": "", + "enableOwlImports": false, + "model": [ + { + "type": "fuseki", + "url": "http://localhost:3030/RACK", + "graph": "http://rack001/model" + } + ], + "data": [ + { + "type": "fuseki", + "url": "http://localhost:3030/RACK", + "graph": "http://rack001/data" + } + ] + }, + "sNodeGroup": { + "version": 20, + "limit": 0, + "offset": 0, + "sNodeList": [ + { + "propList": [ + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", + "Constraints": "", + "SparqlID": "?dataInsertedBy_identifier", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + } + ], + "nodeList": [], + "fullURIName": "http://arcos.rack/PROV-S#ACTIVITY", + "SparqlID": "?ACTIVITY", + "isReturned": false, + "isRuntimeConstrained": false, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE", + "binding": "?dataInsertedBy_ACTIVITY", + "isBindingReturned": false + }, + { + "propList": [ + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", + "Constraints": "", + "SparqlID": "?definedIn_identifier", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + } + ], + "nodeList": [], + "fullURIName": "http://arcos.rack/FILE#FILE", + "SparqlID": "?FILE", + "isReturned": false, + "isRuntimeConstrained": false, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE", + "binding": "?definedIn_FILE", + "isBindingReturned": false + }, + { + "propList": [ + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#description", + "Constraints": "", + "SparqlID": "?description", + "isReturned": true, + "optMinus": 1, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + }, + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", + "Constraints": "", + "SparqlID": "?identifier", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + }, + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#title", + "Constraints": "", + "SparqlID": "?title", + "isReturned": true, + "optMinus": 1, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + } + ], + "nodeList": [ + { + "SnodeSparqlIDs": [ + "?FILE" + ], + "OptionalMinus": [ + 1 + ], + "Qualifiers": [ + "" + ], + "DeletionMarkers": [ + false + ], + "range": [ + "http://arcos.rack/FILE#FILE" + ], + "ConnectBy": "definedIn", + "Connected": true, + "UriConnectBy": "http://arcos.rack/FILE#definedIn" + }, + { + "SnodeSparqlIDs": [ + "?ACTIVITY" + ], + "OptionalMinus": [ + 1 + ], + "Qualifiers": [ + "" + ], + "DeletionMarkers": [ + false + ], + "range": [ + "http://arcos.rack/PROV-S#ACTIVITY" + ], + "ConnectBy": "dataInsertedBy", + "Connected": true, + "UriConnectBy": "http://arcos.rack/PROV-S#dataInsertedBy" + } + ], + "fullURIName": "http://arcos.rack/PROV-S#THING", + "SparqlID": "?THING", + "isReturned": true, + "isRuntimeConstrained": true, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE", + "isTypeReturned": true + } + ], + "orderBy": [], + "groupBy": [], + "unionHash": {}, + "queryType": "CONSTRUCT", + "columnOrder": [] + }, + "importSpec": { + "version": "1", + "baseURI": "", + "columns": [ + { + "colId": "col_0", + "colName": "description" + }, + { + "colId": "col_1", + "colName": "identifier" + }, + { + "colId": "col_2", + "colName": "title" + }, + { + "colId": "col_3", + "colName": "definedIn_identifier" + }, + { + "colId": "col_4", + "colName": "dataInsertedBy_identifier" + } + ], + "dataValidator": [], + "texts": [], + "transforms": [ + { + "transId": "trans_0", + "name": "rm_null", + "transType": "replaceAll", + "arg1": "^(null|Null|NULL)$", + "arg2": "" + } + ], + "nodes": [ + { + "sparqlID": "?THING", + "type": "http://arcos.rack/PROV-S#THING", + "URILookupMode": "createIfMissing", + "mapping": [], + "props": [ + { + "URIRelation": "http://arcos.rack/PROV-S#description", + "mapping": [ + { + "colId": "col_0", + "transformList": [ + "trans_0" + ] + } + ] + }, + { + "URIRelation": "http://arcos.rack/PROV-S#identifier", + "URILookup": [ + "?THING" + ], + "mapping": [ + { + "colId": "col_1", + "transformList": [ + "trans_0" + ] + } + ] + }, + { + "URIRelation": "http://arcos.rack/PROV-S#title", + "mapping": [ + { + "colId": "col_2", + "transformList": [ + "trans_0" + ] + } + ] + } + ] + }, + { + "sparqlID": "?FILE", + "type": "http://arcos.rack/FILE#FILE", + "URILookupMode": "noCreate", + "mapping": [], + "props": [ + { + "URIRelation": "http://arcos.rack/PROV-S#identifier", + "URILookup": [ + "?FILE" + ], + "mapping": [ + { + "colId": "col_3", + "transformList": [ + "trans_0" + ] + } + ] + } + ] + }, + { + "sparqlID": "?ACTIVITY", + "type": "http://arcos.rack/PROV-S#ACTIVITY", + "URILookupMode": "noCreate", + "mapping": [], + "props": [ + { + "URIRelation": "http://arcos.rack/PROV-S#identifier", + "URILookup": [ + "?ACTIVITY" + ], + "mapping": [ + { + "colId": "col_4", + "transformList": [ + "trans_0" + ] + } + ] + } + ] + } + ] + }, + "plotSpecs": [] +} \ No newline at end of file diff --git a/EntityResolution/manifest_template/manifest.yaml b/EntityResolution/manifest_template/manifest.yaml new file mode 100644 index 00000000..7a6cb667 --- /dev/null +++ b/EntityResolution/manifest_template/manifest.yaml @@ -0,0 +1,11 @@ +name: 'Entity Resolution Data' + +footprint: + model-graphs: + - http://rack001/model + data-graphs: + - http://rack001/data + +steps: + - nodegroups: nodegroups + - data: resolutions/import.yaml diff --git a/EntityResolution/manifest_template/nodegroups/ingest_SAME_AS.json b/EntityResolution/manifest_template/nodegroups/ingest_SAME_AS.json new file mode 100644 index 00000000..7730e3d1 --- /dev/null +++ b/EntityResolution/manifest_template/nodegroups/ingest_SAME_AS.json @@ -0,0 +1,323 @@ +{ + "version": 3, + "sparqlConn": { + "name": "RACK local fuseki copy", + "domain": "", + "enableOwlImports": false, + "model": [ + { + "type": "fuseki", + "url": "http://localhost:3030/RACK", + "graph": "http://rack001/model" + } + ], + "data": [ + { + "type": "fuseki", + "url": "http://localhost:3030/RACK", + "graph": "http://rack001/data" + } + ] + }, + "sNodeGroup": { + "version": 20, + "limit": 0, + "offset": 0, + "sNodeList": [ + { + "propList": [ + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", + "Constraints": "", + "SparqlID": "?secondary_identifier", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + } + ], + "nodeList": [], + "fullURIName": "http://arcos.rack/PROV-S#THING", + "SparqlID": "?THING_0", + "isReturned": false, + "isRuntimeConstrained": false, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE", + "isTypeReturned": true, + "binding": "?secondary_THING", + "isBindingReturned": false + }, + { + "propList": [ + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", + "Constraints": "", + "SparqlID": "?primary_identifier", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + } + ], + "nodeList": [], + "fullURIName": "http://arcos.rack/PROV-S#THING", + "SparqlID": "?THING", + "isReturned": false, + "isRuntimeConstrained": false, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE", + "isTypeReturned": true, + "binding": "?primary_THING", + "isBindingReturned": false + }, + { + "propList": [ + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", + "Constraints": "", + "SparqlID": "?dataInsertedBy_identifier", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + } + ], + "nodeList": [], + "fullURIName": "http://arcos.rack/PROV-S#ACTIVITY", + "SparqlID": "?ACTIVITY", + "isReturned": false, + "isRuntimeConstrained": false, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE", + "binding": "?dataInsertedBy_ACTIVITY", + "isBindingReturned": false + }, + { + "propList": [], + "nodeList": [ + { + "SnodeSparqlIDs": [ + "?ACTIVITY" + ], + "OptionalMinus": [ + 1 + ], + "Qualifiers": [ + "" + ], + "DeletionMarkers": [ + false + ], + "range": [ + "http://arcos.rack/PROV-S#ACTIVITY" + ], + "ConnectBy": "dataInsertedBy", + "Connected": true, + "UriConnectBy": "http://arcos.rack/PROV-S#dataInsertedBy" + }, + { + "SnodeSparqlIDs": [ + "?THING" + ], + "OptionalMinus": [ + 0 + ], + "Qualifiers": [ + "" + ], + "DeletionMarkers": [ + false + ], + "range": [ + "http://arcos.rack/PROV-S#THING" + ], + "ConnectBy": "primary", + "Connected": true, + "UriConnectBy": "http://arcos.rack/RESOLUTIONS#primary" + }, + { + "SnodeSparqlIDs": [ + "?THING_0" + ], + "OptionalMinus": [ + 0 + ], + "Qualifiers": [ + "" + ], + "DeletionMarkers": [ + false + ], + "range": [ + "http://arcos.rack/PROV-S#THING" + ], + "ConnectBy": "secondary", + "Connected": true, + "UriConnectBy": "http://arcos.rack/RESOLUTIONS#secondary" + } + ], + "fullURIName": "http://arcos.rack/RESOLUTIONS#SAME_AS", + "SparqlID": "?SAME_AS", + "isReturned": false, + "isRuntimeConstrained": false, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE" + } + ], + "orderBy": [], + "groupBy": [], + "unionHash": {}, + "columnOrder": [] + }, + "importSpec": { + "version": "1", + "baseURI": "", + "columns": [ + { + "colId": "col_0", + "colName": "dataInsertedBy_identifier" + }, + { + "colId": "col_1", + "colName": "primary_identifier" + }, + { + "colId": "col_2", + "colName": "secondary_identifier" + }, + { + "colId": "col_3", + "colName": "primary_THING_type" + }, + { + "colId": "col_4", + "colName": "secondary_THING_type" + } + ], + "dataValidator": [], + "texts": [], + "transforms": [ + { + "transId": "trans_0", + "name": "rm_null", + "transType": "replaceAll", + "arg1": "^(null|Null|NULL)$", + "arg2": "" + } + ], + "nodes": [ + { + "sparqlID": "?SAME_AS", + "type": "http://arcos.rack/RESOLUTIONS#SAME_AS", + "mapping": [], + "props": [] + }, + { + "sparqlID": "?ACTIVITY", + "type": "http://arcos.rack/PROV-S#ACTIVITY", + "URILookupMode": "noCreate", + "mapping": [], + "props": [ + { + "URIRelation": "http://arcos.rack/PROV-S#identifier", + "URILookup": [ + "?ACTIVITY" + ], + "mapping": [ + { + "colId": "col_0", + "transformList": [ + "trans_0" + ] + } + ] + } + ] + }, + { + "sparqlID": "?THING", + "type": "http://arcos.rack/PROV-S#THING", + "URILookupMode": "noCreate", + "mapping": [], + "props": [ + { + "URIRelation": "http://arcos.rack/PROV-S#identifier", + "URILookup": [ + "?THING" + ], + "mapping": [ + { + "colId": "col_1", + "transformList": [ + "trans_0" + ] + } + ] + } + ], + "type_restriction": { + "URILookup": [ + "?THING" + ], + "mapping": [ + { + "colId": "col_3" + } + ] + } + }, + { + "sparqlID": "?THING_0", + "type": "http://arcos.rack/PROV-S#THING", + "URILookupMode": "noCreate", + "mapping": [], + "props": [ + { + "URIRelation": "http://arcos.rack/PROV-S#identifier", + "URILookup": [ + "?THING_0" + ], + "mapping": [ + { + "colId": "col_2", + "transformList": [ + "trans_0" + ] + } + ] + } + ], + "type_restriction": { + "URILookup": [ + "?THING_0" + ], + "mapping": [ + { + "colId": "col_4" + } + ] + } + } + ] + }, + "plotSpecs": [] +} diff --git a/EntityResolution/manifest_template/nodegroups/store_data.csv b/EntityResolution/manifest_template/nodegroups/store_data.csv new file mode 100644 index 00000000..477b7e29 --- /dev/null +++ b/EntityResolution/manifest_template/nodegroups/store_data.csv @@ -0,0 +1,2 @@ +ID,comments,creator,jsonFile,itemType +ingest_SAME_AS,Nodegroup used by Entity Resolution to ingest SAME_AS relationship as generated by the Entity Resolution Tool,Entity Resolution,ingest_SAME_AS.json,PrefabNodeGroup diff --git a/EntityResolution/manifest_template/resolutions/import.yaml b/EntityResolution/manifest_template/resolutions/import.yaml new file mode 100644 index 00000000..a2719f17 --- /dev/null +++ b/EntityResolution/manifest_template/resolutions/import.yaml @@ -0,0 +1,4 @@ +data-graph: "http://rack001/data" +ingestion-steps: + +- {nodegroup: "ingest_SAME_AS", csv: "SAME_AS.csv"} diff --git a/GE-Ontology/OwlModels/ont-policy.rdf b/GE-Ontology/OwlModels/ont-policy.rdf index d69ad970..356dd505 100644 --- a/GE-Ontology/OwlModels/ont-policy.rdf +++ b/GE-Ontology/OwlModels/ont-policy.rdf @@ -2,49 +2,49 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:j.0="http://jena.hpl.hp.com/schemas/2003/03/ont-manager#"> - platform:/resource/GE-Ontology/ontology/CPS.sadl - CPS - SADL + + - - + SADL + turnstile + platform:/resource/GE-Ontology/ontology/GE.sadl - - sadlimplicitmodel - SADL - - platform:/resource/GE-Ontology/ImplicitModel/SadlImplicitModel.sadl + + + SADL + sadlimplicitmodel + - sadllistmodel - SADL + platform:/resource/GE-Ontology/ontology/CPS.sadl + - - + SADL + CPS + - - builtinfunctions - SADL + + - - platform:/resource/GE-Ontology/ImplicitModel/SadlBuiltinFunctions.sadl + SADL + sadlbasemodel - platform:/resource/GE-Ontology/ontology/GE.sadl - turnstile - SADL + + - - + SADL + sadllistmodel - sadlbasemodel - SADL + platform:/resource/GE-Ontology/ImplicitModel/SadlBuiltinFunctions.sadl + - - + SADL + builtinfunctions + diff --git a/GE-Ontology/ontology/CPS.sadl b/GE-Ontology/ontology/CPS.sadl index cf9557ff..77f49190 100644 --- a/GE-Ontology/ontology/CPS.sadl +++ b/GE-Ontology/ontology/CPS.sadl @@ -75,7 +75,7 @@ Connection (note "An INTERFACE with specific input and output ports") is a type described by infoFlowSeverity with a single value of type int // properties that allow for mitigating of threats - described by implControl with values of type ImplControl. + described by implConnControl with values of type ImplControl. ConnectionType is a type of THING. diff --git a/LM-Ontology/ontology/LM.sadl b/LM-Ontology/ontology/LM.sadl index 6c930f59..93f0cb70 100644 --- a/LM-Ontology/ontology/LM.sadl +++ b/LM-Ontology/ontology/LM.sadl @@ -78,11 +78,11 @@ TerminologyElement TerminologyPackage is a type of TerminologyElement. - hasElement describes TerminologyPackage with values of type TerminologyElement. + terminologyPackageComponent describes TerminologyPackage with values of type TerminologyElement. TerminologyGroup is a type of TerminologyElement. - hasElement describes TerminologyGroup with values of type TerminologyElement. + terminologyGroupElement describes TerminologyGroup with values of type TerminologyElement. TerminologyAsset is a type of TerminologyElement. @@ -117,7 +117,7 @@ ArgumentPackage ArgumentAsset is a type of ArgumentationElement. - hasContent describes ArgumentAsset with values of type MultiLangString. + argumentContent describes ArgumentAsset with values of type MultiLangString. ArgumentReasoning is a type of ArgumentAsset. @@ -162,10 +162,10 @@ Property ArtifactAssetRelationship is a type of ArtifactAsset. - source describes ArtifactAssetRelationship with values of type ArtifactAsset. - source is a type of wasDerivedFrom. - target describes ArtifactAssetRelationship with values of type ArtifactAsset. - target is a type of wasDerivedFrom. + sourceArtifact describes ArtifactAssetRelationship with values of type ArtifactAsset. + sourceArtifact is a type of wasDerivedFrom. + targetArtifact describes ArtifactAssetRelationship with values of type ArtifactAsset. + targetArtifact is a type of wasDerivedFrom. Artifact is a type of ArtifactAsset. diff --git a/RACK-Ontology/OwlModels/import.yaml b/RACK-Ontology/OwlModels/import.yaml index 385ada86..904cb39b 100644 --- a/RACK-Ontology/OwlModels/import.yaml +++ b/RACK-Ontology/OwlModels/import.yaml @@ -5,8 +5,10 @@ files: - AGENTS.owl - ANALYSIS.owl - BASELINE.owl +- CLAIM.owl - CONFIDENCE.owl - DOCUMENT.owl +- EntityResolution.owl - FILE.owl - HARDWARE.owl - HAZARD.owl @@ -19,3 +21,4 @@ files: - SOFTWARE.owl - SYSTEM.owl - TESTING.owl +- RESOLUTIONS.owl diff --git a/RACK-Ontology/ontology/ARP-4754A/import.yaml b/RACK-Ontology/ontology/ARP-4754A/import.yaml index 0df46f35..45523976 100644 --- a/RACK-Ontology/ontology/ARP-4754A/import.yaml +++ b/RACK-Ontology/ontology/ARP-4754A/import.yaml @@ -1,13 +1,13 @@ data-graph: "http://rack001/arp-4754a" ingestion-steps: #Phase1: Identifiers Only -- {nodegroup: "ingest_AGENT", csv: "AGENT_1.csv"} -- {nodegroup: "ingest_SPECIFICATION", csv: "SPECIFICATION_1.csv"} -- {nodegroup: "ingest_SECTION", csv: "SECTION_1.csv"} -- {nodegroup: "ingest_OBJECTIVE", csv: "OBJECTIVE_1.csv"} +- {class: "http://arcos.rack/PROV-S#AGENT", csv: "AGENT_1.csv"} +- {class: "http://arcos.rack/DOCUMENT#SPECIFICATION", csv: "SPECIFICATION_1.csv"} +- {class: "http://arcos.rack/DOCUMENT#SECTION", csv: "SECTION_1.csv"} +- {class: "http://arcos.rack/PROCESS#OBJECTIVE", csv: "OBJECTIVE_1.csv"} #Phase2: The rest of the data -- {nodegroup: "ingest_AGENT", csv: "AGENT_2.csv"} -- {nodegroup: "ingest_SPECIFICATION", csv: "SPECIFICATION_2.csv"} -- {nodegroup: "ingest_SECTION", csv: "SECTION_2.csv"} -- {nodegroup: "ingest_OBJECTIVE", csv: "OBJECTIVE_2.csv"} +- {class: "http://arcos.rack/PROV-S#AGENT", csv: "AGENT_2.csv"} +- {class: "http://arcos.rack/DOCUMENT#SPECIFICATION", csv: "SPECIFICATION_2.csv"} +- {class: "http://arcos.rack/DOCUMENT#SECTION", csv: "SECTION_2.csv"} +- {class: "http://arcos.rack/PROCESS#OBJECTIVE", csv: "OBJECTIVE_2.csv"} diff --git a/RACK-Ontology/ontology/CAPEC/import.yaml b/RACK-Ontology/ontology/CAPEC/import.yaml index 34e3650c..a1c01ae9 100644 --- a/RACK-Ontology/ontology/CAPEC/import.yaml +++ b/RACK-Ontology/ontology/CAPEC/import.yaml @@ -1,7 +1,7 @@ data-graph: "http://rack001/capec" ingestion-steps: #Phase1: Identifiers Only -- {nodegroup: "ingest_THREAT", csv: "CAPEC1.csv"} +- {class: "http://arcos.rack/SECURITY#THREAT", csv: "CAPEC1.csv"} #Phase2: The rest of the data -- {nodegroup: "ingest_THREAT", csv: "CAPEC2.csv"} +- {class: "http://arcos.rack/SECURITY#THREAT", csv: "CAPEC2.csv"} diff --git a/RACK-Ontology/ontology/CLAIM.sadl b/RACK-Ontology/ontology/CLAIM.sadl new file mode 100644 index 00000000..748ce3ea --- /dev/null +++ b/RACK-Ontology/ontology/CLAIM.sadl @@ -0,0 +1,215 @@ +/* Copyright (c) 2022, General Electric Company, Galois, Inc. + * + * All Rights Reserved + * + * This material is based upon work supported by the Defense Advanced Research + * Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. + * + * Any opinions, findings and conclusions or recommendations expressed in this + * material are those of the author(s) and do not necessarily reflect the views + * of the Defense Advanced Research Projects Agency (DARPA). + */ + +uri "http://arcos.rack/CLAIM" alias claim. +import "http://arcos.rack/PROV-S". +import "http://arcos.rack/PROCESS". + +CLAIM (note "An argument that a set of properties hold based on system architecture and evidence") + is a type of ENTITY. + +addresses (note "The entity that this claim addresses") + describes CLAIM with values of type ENTITY. + +declares (note "The PROPERTYs that this claim declares to hold") + describes CLAIM with values of type PROPERTY. + +appliesWhen (note "Environmental factor ranges constrainting this CLAIM") + describes CLAIM with values of type ENVIRONMENT_RANGE. + +usesTheory (note "The theory invoked to justify a claim.") + describes CLAIM with values of type THEORY. + +partiallySupports (note "The claims are made in the context of pursuing an OBJECTIVE") + describes CLAIM with values of type OBJECTIVE. + +//////////////////////////////////////////////////////////////////////// + +THEORY (note "A set of principles used to reason about logical claims.") + is a type of THING. + +//////////////////////////////////////////////////////////////////////// + +PROPERTY_RESULT (note "A particular result for a property.") + is a type of ENTITY. + +demonstrates (note "The property being demonstrated to have a result.") + describes PROPERTY_RESULT with a single value of type PROPERTY. + +supportedBy (note "The evidence that supports the property result.") + describes PROPERTY_RESULT with values of type ENTITY. + +//////////////////////////////////////////////////////////////////////// + +COVERAGE_PROPERTY_RESULT (note "A coverage property result") + is a type of PROPERTY_RESULT. + +coverageResult (note "Coverage value between 0 and 1 inclusive") + describes COVERAGE_PROPERTY_RESULT with a single value of type double. + +//////////////////////////////////////////////////////////////////////// + +SUPPORTED_PROPERTY_RESULT (note "An support-level property result") + is a type of PROPERTY_RESULT. + +supportLevel (note "Support level asserted by this result") + describes SUPPORTED_PROPERTY_RESULT with a single value of type SUPPORT_LEVEL. + +SUPPORT_LEVEL (note "Enumeration of support levels") + is a type of THING + must be one of {SupportLevelSupported, SupportLevelUnsupported, SupportLevelCountermanded}. + +SupportLevelSupported is a SUPPORT_LEVEL + identifier "Supported" + title "Supported". + +SupportLevelUnsupported is a SUPPORT_LEVEL + identifier "Unsupported" + title "Unsupported". + +SupportLevelCountermanded is a SUPPORT_LEVEL + identifier "Countermanded" + title "Countermanded". + +//////////////////////////////////////////////////////////////////////// + +ROBUSTNESS_PROPERTY_RESULT (note "An unconstrained robustness property result") + is a type of PROPERTY_RESULT. + +robustness (note "Unconstrained robustness metric") + describes ROBUSTNESS_PROPERTY_RESULT with a single value of type double. + +//////////////////////////////////////////////////////////////////////// + +BOOLEAN_PROPERTY_RESULT (note "A boolean property result") + is a type of PROPERTY_RESULT. + +booleanResult (note "Boolean outcome") + describes BOOLEAN_PROPERTY_RESULT with a single value of type boolean. + +//////////////////////////////////////////////////////////////////////// + +REAL_PROPERTY_RESULT (note "A real-valued property result") + is a type of PROPERTY_RESULT. + +realResult (note "Real-value outcome") + describes REAL_PROPERTY_RESULT with a single value of type double. + +//////////////////////////////////////////////////////////////////////// + +DECISION_PROPERTY_RESULT + (note "A decision property result") + is a type of PROPERTY_RESULT. + +decisionOutcome + (note "Decision for a property result") + describes DECISION_PROPERTY_RESULT with a single value of type DECISION_OUTCOME. + +DECISION_OUTCOME (note "Enumeration of decision outcomes") + is a type of THING + must be one of {DecisionOutcomeSatisfied, DecisionOutcomeNotSatisfied, DecisionOutcomeUnknown}. + +DecisionOutcomeSatisfied is a DECISION_OUTCOME + identifier "Satisfied" + title "Satisfied". + +DecisionOutcomeNotSatisfied is a DECISION_OUTCOME + identifier "NotSatisfied" + title "Not Satisfied". + +DecisionOutcomeUnknown is a DECISION_OUTCOME + identifier "Unknown" + title "Unknown". + +//////////////////////////////////////////////////////////////////////// + +TEST_EXECUTION_PROPERTY_RESULT + (note "A test execution property result") + is a type of PROPERTY_RESULT. + +testExecutionOutcome + (note "Outcome for a test execution result") + describes TEST_EXECUTION_PROPERTY_RESULT with a single value of type TEST_EXECUTION_OUTCOME. + +TEST_EXECUTION_OUTCOME (note "Enumeration of test execution outcomes") + is a type of THING + must be one of {TextExecutionOutcomePass, TextExecutionOutcomeFail}. + +TextExecutionOutcomePass is a TEST_EXECUTION_OUTCOME + identifier "Pass" + title "Pass". + +TextExecutionOutcomeFail is a TEST_EXECUTION_OUTCOME + identifier "Fail" + title "Fail". + +//////////////////////////////////////////////////////////////////////// + +STATIC_ANALYSIS_PROPERTY_RESULT + (note "A static analysis property result") + is a type of PROPERTY_RESULT. + +staticAnalysisOutcome + (note "Result of static analysis") + describes STATIC_ANALYSIS_PROPERTY_RESULT with a single value of type STATIC_ANALYSIS_OUTCOME. + +STATIC_ANALYSIS_OUTCOME (note "Enumeration of static analysis outcomes") + is a type of THING + must be one of {StaticAnalysisLevelAbsent, StaticAnalysisLevelMitigated, StaticAnalysisLevelUnmitigated}. + +StaticAnalysisOutcomeAbsent is a STATIC_ANALYSIS_OUTCOME + identifier "Absent" + title "Absent". + +StaticAnalysisOutcomeMitigated is a STATIC_ANALYSIS_OUTCOME + identifier "Mitigated" + title "Mitigated". + +StaticAnalysisOutcomeUnmitigated is a STATIC_ANALYSIS_OUTCOME + identifier "Unmitigated" + title "Unmitigated". + +//////////////////////////////////////////////////////////////////////// + +CONCERN_TYPE (note "An enumeration of concerns arising when making claims") + is a type of THING. + +//////////////////////////////////////////////////////////////////////// + +CONCERN (note "Part of a set of concerns associated with a particular CLAIM") + is a type of THING. + +questions (note "The CLAIM that is doubted by this concern") + describes CONCERN with values of type CLAIM. + +concernCategory (note "The category of concern raised by the related evidence") + describes CONCERN with a single value of type CONCERN_TYPE. + +raisedBy (note "The evidence associated with this raised concern") + describes CONCERN with values of type ENTITY. + +//////////////////////////////////////////////////////////////////////// + +ENVIRONMENT_FACTOR (note "An enumeration of the supported enviromental factors") + is a type of THING. + +ENVIRONMENT_RANGE (note "Part of a set of environmental restrictions applied to a particular claim") + is a type of THING. + +environmentFactor (note "The environmental factor that is being bounded") + describes ENVIRONMENT_RANGE with a single value of type ENVIRONMENT_FACTOR. + +lowerBound (note "The lower bound of this environmental range") + describes ENVIRONMENT_RANGE with a single value of type double. + +upperBound (note "The upper bound of this evironmental range") + describes ENVIRONMENT_RANGE with a single value of type double. diff --git a/RACK-Ontology/ontology/CONFIDENCE.sadl b/RACK-Ontology/ontology/CONFIDENCE.sadl index a040fd36..cc8313a9 100644 --- a/RACK-Ontology/ontology/CONFIDENCE.sadl +++ b/RACK-Ontology/ontology/CONFIDENCE.sadl @@ -22,7 +22,7 @@ uri "http://arcos.rack/CONFIDENCE" alias CONFIDENCE. import "http://arcos.rack/PROV-S". -CONFIDENCE_ASSESSMENT (note "Superclass for confidence assessments over some other data in the ontology.") is a type of THING. +CONFIDENCE_ASSESSMENT (note "Superclass for confidence assessments over some other data in the ontology.") is a type of ENTITY. assesses (note "ENTITY(s) whose confidence is assessed") describes CONFIDENCE_ASSESSMENT with values of type ENTITY. assesses describes CONFIDENCE_ASSESSMENT with at most 1 value. @@ -31,8 +31,8 @@ CONFIDENCE_ASSESSMENT (note "Superclass for confidence assessments over some oth wasGeneratedBy of CONFIDENCE_ASSESSMENT only has values of type ASSESSING_CONFIDENCE. BDU_CONFIDENCE_ASSESSMENT (note "A belief-disbelief-uncertainty confidence assessment, c.f. Subjective Logic. belief, disbelief, and uncertainty should sum to 1") is a type of CONFIDENCE_ASSESSMENT. - belief (note "belief that an assessment is true") describes CONFIDENCE_ASSESSMENT with a single value of type float. // [0,1]. - disbelief (note "belief that an assessment is false") describes CONFIDENCE_ASSESSMENT with a single value of type float. // [0,1]. - uncertainty (note "uncommitted belief") describes CONFIDENCE_ASSESSMENT with a single value of type float. // [0,1]. + belief (note "belief that an assessment is true") describes BDU_CONFIDENCE_ASSESSMENT with a single value of type float. // [0,1]. + disbelief (note "belief that an assessment is false") describes BDU_CONFIDENCE_ASSESSMENT with a single value of type float. // [0,1]. + uncertainty (note "uncommitted belief") describes BDU_CONFIDENCE_ASSESSMENT with a single value of type float. // [0,1]. ASSESSING_CONFIDENCE (note "ACTIVITY that establishes a CONFIDENCE_ASSESSMENT") is a type of ACTIVITY. diff --git a/RACK-Ontology/ontology/DO-178C/import.yaml b/RACK-Ontology/ontology/DO-178C/import.yaml index 3ea55538..6ae0de5a 100644 --- a/RACK-Ontology/ontology/DO-178C/import.yaml +++ b/RACK-Ontology/ontology/DO-178C/import.yaml @@ -1,12 +1,12 @@ data-graph: "http://rack001/do-178c" ingestion-steps: #Phase1: Identifiers Only -- {nodegroup: "ingest_AGENT", csv: "AGENT_1.csv"} -- {nodegroup: "ingest_SPECIFICATION", csv: "SPECIFICATION_1.csv"} -- {nodegroup: "ingest_SECTION", csv: "SECTION_1.csv"} -- {nodegroup: "ingest_OBJECTIVE", csv: "OBJECTIVE_1.csv"} +- {class: "http://arcos.rack/PROV-S#AGENT", csv: "AGENT_1.csv"} +- {class: "http://arcos.rack/DOCUMENT#SPECIFICATION", csv: "SPECIFICATION_1.csv"} +- {class: "http://arcos.rack/DOCUMENT#SECTION", csv: "SECTION_1.csv"} +- {class: "http://arcos.rack/PROCESS#OBJECTIVE", csv: "OBJECTIVE_1.csv"} #Phase2: The rest of the data -- {nodegroup: "ingest_SPECIFICATION", csv: "SPECIFICATION_2.csv"} -- {nodegroup: "ingest_SECTION", csv: "SECTION_2.csv"} -- {nodegroup: "ingest_OBJECTIVE", csv: "OBJECTIVE_2.csv"} +- {class: "http://arcos.rack/DOCUMENT#SPECIFICATION", csv: "SPECIFICATION_2.csv"} +- {class: "http://arcos.rack/DOCUMENT#SECTION", csv: "SECTION_2.csv"} +- {class: "http://arcos.rack/PROCESS#OBJECTIVE", csv: "OBJECTIVE_2.csv"} diff --git a/RACK-Ontology/ontology/DO-330/import.yaml b/RACK-Ontology/ontology/DO-330/import.yaml index c1fe3382..0f0563d8 100644 --- a/RACK-Ontology/ontology/DO-330/import.yaml +++ b/RACK-Ontology/ontology/DO-330/import.yaml @@ -1,12 +1,12 @@ data-graph: "http://rack001/do-330" ingestion-steps: #Phase1: Identifiers Only -- {nodegroup: "ingest_AGENT", csv: "AGENT_1.csv"} -- {nodegroup: "ingest_SPECIFICATION", csv: "SPECIFICATION_1.csv"} -- {nodegroup: "ingest_SECTION", csv: "SECTION_1.csv"} -- {nodegroup: "ingest_OBJECTIVE", csv: "OBJECTIVE_1.csv"} +- {class: "http://arcos.rack/PROV-S#AGENT", csv: "AGENT_1.csv"} +- {class: "http://arcos.rack/DOCUMENT#SPECIFICATION", csv: "SPECIFICATION_1.csv"} +- {class: "http://arcos.rack/DOCUMENT#SECTION", csv: "SECTION_1.csv"} +- {class: "http://arcos.rack/PROCESS#OBJECTIVE", csv: "OBJECTIVE_1.csv"} #Phase2: The rest of the data -- {nodegroup: "ingest_SPECIFICATION", csv: "SPECIFICATION_2.csv"} -- {nodegroup: "ingest_SECTION", csv: "SECTION_2.csv"} -- {nodegroup: "ingest_OBJECTIVE", csv: "OBJECTIVE_2.csv"} +- {class: "http://arcos.rack/DOCUMENT#SPECIFICATION", csv: "SPECIFICATION_2.csv"} +- {class: "http://arcos.rack/DOCUMENT#SECTION", csv: "SECTION_2.csv"} +- {class: "http://arcos.rack/PROCESS#OBJECTIVE", csv: "OBJECTIVE_2.csv"} diff --git a/RACK-Ontology/ontology/EntityResolution.sadl b/RACK-Ontology/ontology/EntityResolution.sadl new file mode 100644 index 00000000..42e48a0a --- /dev/null +++ b/RACK-Ontology/ontology/EntityResolution.sadl @@ -0,0 +1,30 @@ +uri "http://research.ge.com/semtk/EntityResolution" alias EntityResolution. + + +SameAs is a top-level class, + described by target with a single value of type class, + described by duplicate with a single value of type class. + + + +// -- range for examples +// THING is a class. + + +// -- simple example of subclassing SameAs with your own type(SAME_AS1) and range (THING) +// +// SAME_AS1 is a type of SameAs. +// target of SAME_AS1 only has values of type THING. +// duplicate of SAME_AS1 only has values of type THING. + + +// -- example of subclassing SameAs with your own type (SAME_AS2) +// and changing the names of the properties to 'primary' and 'secondary' +// and setting the range to THING +// +// SAME_AS2 is a type of SameAs, +// described by primary with a single value of type THING, +// described by secondary with a single value of type THING. +// +// primary is a type of target. +// secondary is a type of duplicate. \ No newline at end of file diff --git a/RACK-Ontology/ontology/MITRE-CWE/import.yaml b/RACK-Ontology/ontology/MITRE-CWE/import.yaml index 9ba0f0bc..2c998017 100644 --- a/RACK-Ontology/ontology/MITRE-CWE/import.yaml +++ b/RACK-Ontology/ontology/MITRE-CWE/import.yaml @@ -2,9 +2,9 @@ # in the directory above. data-graph: "http://rack001/mitre-cwe" ingestion-steps: -- {nodegroup: "CWE ingestion", csv: "MITRE_CWE.csv" } -- {nodegroup: "CWE effectivenesses", csv: "CWE_EFFECTIVENESS.csv" } -- {nodegroup: "CWE methods",csv: "CWE_METHOD.csv" } +- {class: "http://arcos.acert/MITRE-CWE#MITRE_CWE", csv: "MITRE_CWE.csv" } +- {class: "http://arcos.acert/MITRE-CWE#CWE_EFFECTIVENESS", csv: "CWE_EFFECTIVENESS.csv" } +- {class: "http://arcos.acert/MITRE-CWE#CWE_DETECTION_METHOD",csv: "CWE_METHOD.csv" } - {nodegroup: "CWE effectiveness association", csv: "CWE_TOOL_EFFECTIVENESS.csv" } -- {nodegroup: "ingest_THREAT", csv: "CAPEC.csv"} -- {nodegroup: "ingest_THREAT", csv: "CAPEC_CWE.csv"} +- {class: "http://arcos.rack/SECURITY#THREAT", csv: "CAPEC.csv"} +- {class: "http://arcos.rack/SECURITY#THREAT", csv: "CAPEC_CWE.csv"} diff --git a/RACK-Ontology/ontology/NIST-800-53/import.yaml b/RACK-Ontology/ontology/NIST-800-53/import.yaml index 6782ed0c..009685cf 100644 --- a/RACK-Ontology/ontology/NIST-800-53/import.yaml +++ b/RACK-Ontology/ontology/NIST-800-53/import.yaml @@ -1,7 +1,7 @@ data-graph: "http://rack001/nist-800-53" ingestion-steps: #Phase1: Identifiers Only -- {nodegroup: "ingest_CONTROL", csv: "NIST-800-53_1.csv"} +- {class: "http://arcos.rack/SECURITY#CONTROL", csv: "NIST-800-53_1.csv"} #Phase2: The rest of the data -- {nodegroup: "ingest_CONTROL", csv: "NIST-800-53_2.csv"} +- {class: "http://arcos.rack/SECURITY#CONTROL", csv: "NIST-800-53_2.csv"} diff --git a/RACK-Ontology/ontology/PROCESS.sadl b/RACK-Ontology/ontology/PROCESS.sadl index a4df7161..d69c1c7b 100644 --- a/RACK-Ontology/ontology/PROCESS.sadl +++ b/RACK-Ontology/ontology/PROCESS.sadl @@ -20,13 +20,18 @@ OBJECTIVE satisfiedBy (note "An ACTIVITY that demonstrates that the OBJECTIVE has been satisfied.") describes OBJECTIVE with values of type ACTIVITY. PROPERTY - (note "A general property that holds on the basis of some ANALYSIS") + (note "A general property that holds on the basis of some ANALYSIS") is a type of ENTITY. - partiallySupports (note "One or more PROPERTY may be needed to address an OBJECTIVE.") describes PROPERTY with values of type OBJECTIVE. + propertyType (note "The semantic tag for this property instance.") + describes PROPERTY with a single value of type PROPERTY_TYPE. scopeOf (note "ENTITY(s) over which the PROPERTY holds") describes PROPERTY with values of type ENTITY. scopeOf is a type of wasImpactedBy. mitigates (note "ENTITY(s) that is being mitigated by this PROPERTY") describes PROPERTY with values of type ENTITY. mitigates is a type of wasImpactedBy. + +PROPERTY_TYPE + (note "The target-independent identifier of the semantics of a PROPERTY.") + is a type of THING. diff --git a/RACK-Ontology/ontology/PROV-S.sadl b/RACK-Ontology/ontology/PROV-S.sadl index 6206a9b4..8270c0ad 100644 --- a/RACK-Ontology/ontology/PROV-S.sadl +++ b/RACK-Ontology/ontology/PROV-S.sadl @@ -19,15 +19,17 @@ uri "http://arcos.rack/PROV-S" alias provs (note "a basic Implementation of PROV Data Model standard in SADL based on table https://www.w3.org/TR/prov-dm/#relations-at-a-glance"). +NODE is a class. + dataInsertedBy (note "The activity that caused this data to be added to RACK") describes NODE with values of type ACTIVITY. -THING (note "A piece of data stored in RACK") is a class. + +THING (note "A piece of data stored in RACK") is a type of NODE. identifier (note "identifier is any data item that is used to associate items on when loading into the data store.") describes THING with values of type string. identifier describes THING with at most 1 value. title (note "A short, human-readable identifying label.") describes THING with values of type string. title describes THING with at most 1 value. description (note "A free-form, multi-line, human-readable explanation of this data element.") describes THING with values of type string. description describes THING with at most 1 value. - dataInsertedBy (note "The activity that caused this data to be added to RACK") describes THING with values of type ACTIVITY. ENTITY (note "An entity is a physical, digital, conceptual, or other kind of thing with some fixed aspects; entities may be real or imaginary.") is a type of THING. @@ -35,7 +37,7 @@ ENTITY (note "An entity is a physical, digital, conceptual, or other kind of thi wasDerivedFrom (note "A derivation is a transformation of an entity into another, an update of an entity resulting in a new one, or the construction of a new entity based on a pre-existing entity.") describes ENTITY with values of type ENTITY. wasRevisionOf (note "Indicates a direct line of primary descendancy from one entity to a derivative entity.") describes ENTITY with values of type ENTITY. wasRevisionOf is a type of wasDerivedFrom. - wasImpactedBy (note "Indicates that an entity materially affected another entity, and changing the former might affect or invalidate the latter.") describes ENTITY with values of type ENTITY. + wasImpactedBy (note "Indicates that an entity materially affected another entity, and changing the latter might affect or invalidate the former.") describes ENTITY with values of type ENTITY. wasImpactedBy is a type of wasDerivedFrom. wasGeneratedBy (note "Generation is the completion of production of a new entity by an activity. This entity did not exist before generation and becomes available for usage after this generation.")describes ENTITY with values of type ACTIVITY. wasGeneratedBy describes ENTITY with at most 1 value. diff --git a/RACK-Ontology/ontology/RESOLUTIONS.sadl b/RACK-Ontology/ontology/RESOLUTIONS.sadl new file mode 100644 index 00000000..57a24114 --- /dev/null +++ b/RACK-Ontology/ontology/RESOLUTIONS.sadl @@ -0,0 +1,30 @@ +/* Copyright (c) 20202, General Electric Company, Galois, Inc. + * + * All Rights Reserved + * + * This material is based upon work supported by the Defense Advanced Research + * Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. + * + * Any opinions, findings and conclusions or recommendations expressed in this + * material are those of the author(s) and do not necessarily reflect the views + * of the Defense Advanced Research Projects Agency (DARPA). + */ + +/************** edit history ***************** + * + * + *********************************************/ + +uri "http://arcos.rack/RESOLUTIONS" alias Rs. +import "http://arcos.rack/PROV-S". +import "http://research.ge.com/semtk/EntityResolution". + + +SAME_AS (note "Used to create curation relationships between two nodes. When two THINGs are connected via the SAME_AS relationship it means that the THINGs are actually describing the same. SAME_AS relationships will be collapsed into a single THING by the resolution process.") is a type of NODE. + primary (note "The primary THING is the one which will remain after the merge processes any conflicts will be resolved by using the primary's value, for example the resulting identifier will be the identifier from the primary") describes SAME_AS with a single value of type THING. + secondary (note "the secondary THINGs are the entity that will be removed during the resolution process, any attributes that do not conflict will be copied to the to the primary,") describes SAME_AS with values of type THING. + +// Make SAME_AS compatible with semTK entity resolution functions. +SAME_AS is a type of EntityResolution:SameAs. +primary is a type of EntityResolution:target. +secondary is a type of EntityResolution:duplicate. diff --git a/RACK-Ontology/ontology/SYSTEM.sadl b/RACK-Ontology/ontology/SYSTEM.sadl index 44eb31f0..4423b032 100644 --- a/RACK-Ontology/ontology/SYSTEM.sadl +++ b/RACK-Ontology/ontology/SYSTEM.sadl @@ -51,7 +51,7 @@ INTERFACE destination is a type of wasImpactedBy. SYSTEM_DEVELOPMENT - (note "ACTIVITY relating to the creation of one or more some SYSTEMs") + (note "ACTIVITY related to the creation of one or more SYSTEM(s)") is a type of ACTIVITY. FUNCTION diff --git a/RACK-Ontology/ontology/claims/CONCERN_TYPES.csv b/RACK-Ontology/ontology/claims/CONCERN_TYPES.csv new file mode 100644 index 00000000..4e9a8034 --- /dev/null +++ b/RACK-Ontology/ontology/claims/CONCERN_TYPES.csv @@ -0,0 +1,20 @@ +source,identifier,title,description +ACERT,Approximate_Modeling,Approximate Modeling,The analysis is neither sound nor complete +ACERT,Partial_Scope,Partial Scope,The analysis only targets specific patterns +DesCert,Inadequate_Enumeration_Test_Oracles,Inadequate Enumeration Test Oracles,All equivalence classes enumeration for a particular behavioral operator may not be adequately created +DesCert,Inadequate_Requirements_based_Testing_Aspects,Inadequate Requirements based Testing Aspects,The theory of test oracle is missing criteria to cover aggregate behavior of operators - e.g.: some types of implementation level errors might go undetected. +DesCert,Inadequate_Requirements_based_Test_Coverage_Criteria,Inadequate Requirements based Test Coverage Criteria,"Analysis used to determine Observability is not exact, i.e., incorrectly identifying some variable as observable, when it is not." +DesCert,Incorrect_Abstraction_in_PVS_Models,Incorrect Abstraction in PVS Models, +DesCert,Incorrect_UserAnnotation_in_Code,Incorrect UserAnnotation in Code,Incorrect abstraction of the system is used as a model for this analysis +DesCert,Incorrect_Code_Context_and_Boundaries ,Incorrect Code Context and Boundaries ,User's annotation in code is incorrect +DesCert,Inadequate_Enumeration_of_Requirements_Properties,Inadequate Enumeration of Requirements Properties,Incorrect Determination of Analyzed code context and boundaries in the system +DesCert,Inadequate_Enumeration_of_Control_Protections,Inadequate Enumeration of Control Protections,Missing requirements Analysis criteria such as vacuity and clairvoyance properties +DesCert,Ineffective_Control_Protections,Ineffective Control Protections, +DesCert,Inadequate_Enumeration_of_Security_Specifications,Inadequate Enumeration of Security Specifications, +DesCert,Inadequate_Security_Assessment,Inadequate Security Assessment, +DesCert,Incorrect_Specification_of_Security_Properties,Incorrect Specification of Security Properties,"Vulnerability assessment is not complete, threat models are incorrect " +DesCert,Incorrect_Specific_Property_Specification,Incorrect Specific Property Specification, +DesCert,Incorrect_Proof_Due_to_Vacuous_Model_Checking,Incorrect Proof Due to Vacuous Model Checking, +DesCert,Incorrect_Model_Translation,Incorrect Model Translation, +DesCert,Incorrectness_in_Tool_Output,Incorrectness in Tool Output, +DesCert,False_Positive_and_False_Negative_Output,False Positive and False Negative Output, \ No newline at end of file diff --git a/RACK-Ontology/ontology/claims/PROPERTY_TYPES.csv b/RACK-Ontology/ontology/claims/PROPERTY_TYPES.csv new file mode 100644 index 00000000..3ce1f452 --- /dev/null +++ b/RACK-Ontology/ontology/claims/PROPERTY_TYPES.csv @@ -0,0 +1,973 @@ +source,identifier,title,description +CertGate,Testing__Requirement_Satisfaction,Testing: Requirement Satisfaction, +CertGate,Testing__Statement_Coverage,Testing: Statement Coverage, +CertGate,Testing__Oracle_Monitored_Coverage,Testing: Oracle Monitored Coverage, +CertGate,Testing__Input_Space_Coverage,Testing: Input Space Coverage, +CertGate,Static_Analysis__CWE,Static Analysis: CWE, +CertGate,Static_Analysis__Issue,Static Analysis: Issue, +DesCert,ArchSpec_QuasiPeriodicMultiRateSubsystem_ComputationalModelRestriction,ArchSpec QuasiPeriodicMultiRateSubsystem ComputationalModelRestriction,"Property Objective: Software architecture of ArduPilot Advanced Fail Safe (AFS) subsystem conforms and is restricted to quasi-periodic multi-rate computational model. +Property met rationale: ArduPilot Advanced Fail Safe (AFS) subsystem include afs_gateway and afs_function that are specified in afs.radl with document identifier DOCUMENT_RADL_Specification_ArduPilot_AFS_1. Radler build process used the afs.radl specification which included multiple rates of different computational nodes (tasks running at fixed period) with communicating topics/messages between publishers and subscribers over channels with expectation of guaranteed delivery and latency/timing/delays. Radler compiles the associated software source code related to afs_gateway and afs_function (RADL nodes of AFS) and then executes the code within a ROS environment with a fixed period that is may or may not vary but is bounded (i.e. period may vary between min and max clock)." +DesCert,ArchSpec_ComputationalModel_ComunicationLatencyTimingBufferSizeAndMessageFreshness,ArchSpec ComputationalModel ComunicationLatencyTimingBufferSizeAndMessageFreshness,"Property Objective: Quasi-periodic computational model of any RADL architecture and in particular ArduPilot Advanced Fail Safe (AFS) subsystem has the following 5 properties: (1) Bounded processing latency for any message/topic between every pair of publisher and subscriber (2) communication messages are delivered in order i.e. no overtaking, with timing assumptions (3) Given fixed buffer (including size 1), consecutive message losses can be bounded (4) Message Loss can be eliminated with Bounded queue length which can be used to provision communication channel for transporting message/topic between publisher & subscribers appropriately and (5) Age and/or Freshness of any message at any subscriber in terms of time steps is bounded. +Property met rationale: Analysis results presented in documents with identifiers DOCUMENT_RADL_Paper_Memocode_2014, DOCUMENT_RADL_Slides_Memocode_2014 and summarized in documents with identifiers DOCUMENT_RADL_Paper_Memocode_2015, DOCUMENT_RADL_Slides_Memocode_2015." +DesCert,ArchSpec_RuntimeCodeMonitor_PlatformAssumptions,ArchSpec RuntimeCodeMonitor PlatformAssumptions,"Property Objective: Radler, validates platform/physical layer performance when bound to logical layer functions as well as any other assumptions on the architectural model used in verifying any other properties, for any RADL Specification and in particular ArduPilot Advanced Fail Safe (AFS) subsystem, the following 4 properties are always held at run-time: (1) No stale message received after it's latency and period (2) every message is never received more than it's timeout duration latency and period (3) system healthy and no failures and (4)max latencies, node periods, execution times adheres to the specifications. +Property met rationale: Radler enforces for each node, a state structure, an initialization function, a step function, and a finish function code structure as well as generates the communication layer (glue code), the scheduler, the overall compilation script and configuration files, and builds an executable for each machine. Radler also instruments the code for runtime monitoring and validation of platform performance and assumptions. Please see detailed rationale in documents with identifiers DOCUMENT_RADL_Paper_Memocode_2015, DOCUMENT_RADL_Slides_Memocode_2015." +DesCert,ArchSpec_Robust_Time_and_Space_Partitioning,ArchSpec Robust Time and Space Partitioning,"Property Objective: Physical Layer of RADL Architectural Specification and in particular ArduPilot Advanced Fail Safe (AFS) subsystem physical layer has robust time and space partitioning. +Property met rationale: Robust Space Partitioning based on the memory partitioning strategy in the specification depending on whether the two RADL nodes in are in (1) same virtual machine within a RTOS or (2) two different virtual machines with different individual RTOS but in the same hypervisor within a single machine or (3) two machines then the Radler will ensure provisioning respectively for (1) a shared memory ring buffer (intra partition) or (2) a ring buffer will be setup in a memory region shared +between those two virtual machine with message passing APIs (inter-partition) and (3) IP-based communication will be used with queuing and sampling ports (inter-partition) appropriately. Robust time partitioning with WCETs for every step function (computation duration) within each RADL node being specified in the RADL specification and also subsequently radler tool is also able to generate an instrumented version of the software code and monitor the system with runtime checks for violations of timing properties such as maximum latency of channels, node periods, execution times, etc. The radler tool also generates local system log that radler can be analyzed and validated against the architecture specification. Such runtime checks are often the only way of validating the timing parameters assumed by the model. Please see detailed rationale in documents with identifiers DOCUMENT_RADL_Paper_Memocode_2015, DOCUMENT_RADL_Slides_Memocode_2015." +DesCert,Req_Consistent,Req Consistent,"Requirements (in a given set) are mutually consistent, i.e., there are no conflicts among them" +DesCert,Req_No_Mode_Thrashing,Req No Mode Thrashing,Requirements (in a given set) are free of mode thrashing errors +DesCert,Req_NonAmbiguous,Req NonAmbiguous,Requirements are non-ambiguous +DesCert,Req_Verifiable,Req Verifiable,Requirements are verifiable +DesCert,Req_Output_Space_Complete,Req Output Space Complete,The Output Space produced by requirements (in a given set) is complete for Booleans and enumerations +DesCert,Req_Input_Space_Complete,Req Input Space Complete,The Input Space (domain) of requirements (in a given set) is internally complete +DesCert,Req_Accurate,Req Accurate,"Requirements are accurate; e.g., input conditions, output values, and timing is precisely specified" +DesCert,ArchControl_NonInterference_Isolation,ArchControl NonInterference Isolation,Non-Interference and isolation guarantees whereby interference of one partition will not impact another partition +DesCert,ArchControl_TSN_Partition_Guarantees,ArchControl TSN Partition Guarantees,"Time-space-network (TSN) resources (e.g., cpu cycles, memory, bandwidth etc) are partitioned/allocated properly" +DesCert,ArchControl_Data_Flows_Encrypted,ArchControl Data Flows Encrypted,All dataflows are always encrypted (due to architectural controls) +DesCert,ArchControl_Valid_Pub_Subs,ArchControl Valid Pub Subs,"Only valid, authenticated publisher and subscribers cap participate in Secure DDS" +DesCert,ArchControl_SecureData_Between_Pub_Subs,ArchControl SecureData Between Pub Subs,Dataflows flow only between configured publisher and subscribers in Secure DDS +DesCert,ArchControl_Com_Port_Info_Leak,ArchControl Com Port Info Leak,All communication ports deny exfiltration and infiltration opportunities +DesCert,ArchControl_Platform_Software_Config,ArchControl Platform Software Config,"All platform software configuration aspects (ROS nodes, topics, dataflows) and logical layer, physical layer specs are adhered to (make it generic)" +DesCert,ArchControl_Certified_Code_Binary_Build_Execution,ArchControl Certified Code Binary Build Execution,No code and binaries built bypasses certified build and proper attestation of code bring built and only attested code is executed +DesCert,ArchControl_No_Undetected_Events,ArchControl No Undetected Events,"no fault/failure events goes undetected utilizing Radler for Platform Status and Faults, Logger for AFS Contingency Events and BeepBeep Monitor for Application Performance" +DesCert,SecuritySpec_Well_Formed_Acyclic,SecuritySpec Well Formed Acyclic,Analysis of Architecture & Security Specification: The graph of architecture and security relationships is acyclic directed graph. +DesCert,SecuritySpec_TouchPt_Not_EmptyOrNull,SecuritySpec TouchPt Not EmptyOrNull,"For each object with touchpoint, its touchpoint attribute cannot be null or empty set. (This could apply to other attributes of each type definition that requires proper initialization)." +DesCert,SecuritySpec_Valid_Prop_Result_ForEvery_Vul_AAVec,SecuritySpec Valid Prop Result ForEvery Vul AAVec,"In entire graph: For each vulnerability exploited by attackVector, all properties that mitigate the vulnerability on the same architecture touchpoints have a valid property result." +DesCert,SecuritySpec_VulTouchPts_Covered_By_Property,SecuritySpec VulTouchPts Covered By Property,"In entire graph: For each combination of vulnerability instance and attackVector instance, and corresponding assigned property that mitigates, is every touchpoint shared by both vulnerability and attack vector is mitigated by at least one property." +DesCert,SecuritySpec_No_Duplicate_Objects,SecuritySpec No Duplicate Objects,"In entire graph: No duplicated object instances exist (e.g., identical vulnerabilities, controls etc.)." +DesCert,CodeTypeCheck_No_Tainted_DataFlow,CodeTypeCheck No Tainted DataFlow,No tainted data flows to an untrusted component that is vulnerable to tainted data (e.g. prevents Log4j vulnerability exploitation) +DesCert,CodeTypeCheck_No_Resource_Leak,CodeTypeCheck No Resource Leak,No resource leakage from software component +DesCert,CodeTypeCheck_No_InfoPrivacy_Leak,CodeTypeCheck No InfoPrivacy Leak,No information flow privacy leakage from software component +DesCert,CodeTypeCheck_No_Remote_Cmd_Injection,CodeTypeCheck No Remote Cmd Injection,No remote command injection from a software component +DesCert,CodeTypeCheck_No_Remote_Code_Exec,CodeTypeCheck No Remote Code Exec,No remote execution/insertion of malicious code vulnerabilities +DesCert,CodeTypeCheck_No_Nullness_DoS,CodeTypeCheck No Nullness DoS,No denial of service due to triggering of nullness exceptions +DesCert,Model_Check_Specific_Behavior,Model Check Specific Behavior,"Specific (application temporal, non-temporal) behavior properties that are model checked " +DesCert,Testing_Adequacy_of_Test_Oracle_wrt_Requirements,Testing Adequacy of Test Oracle wrt Requirements,All test oracles for requirements were generated +DesCert,Testing_Coverage_of_TestCase_on_TestOracles,Testing Coverage of TestCase on TestOracles,Coverage of test oracles by test cases +DesCert,Testing_Compositional_Coverage_of_TestCase_on_Requirements,Testing Compositional Coverage of TestCase on Requirements,Combines: Test_Oracle_Adequacy_wrt_Requirements + Coverage_of_TestCase_on_TestOracles +DesCert,Testing_Execution_of_Each_Test_Case_on_Object_Code,Testing Execution of Each Test Case on Object Code,Execution of each test case on object code. Result is Pass/Fail +DesCert,Testing_No_UnDispositioned_Failed_Tests,Testing No UnDispositioned Failed Tests,There are no tests that are failed and have not dispositioned. +ACERT,CWE-5,CWE-5 (J2EE Misconfiguration: Data Transmission Without Encryption) is present in a module,Information sent over a network can be compromised while in transit. An attacker may be able to read or modify the contents if the data are sent in plaintext or are weakly encrypted. +ACERT,CWE-6,CWE-6 (J2EE Misconfiguration: Insufficient Session-ID Length) is present in a module,The J2EE application is configured to use an insufficient session ID length. +ACERT,CWE-7,CWE-7 (J2EE Misconfiguration: Missing Custom Error Page) is present in a module,The default error page of a web application should not display sensitive information about the software system. +ACERT,CWE-8,CWE-8 (J2EE Misconfiguration: Entity Bean Declared Remote) is present in a module,"When an application exposes a remote interface for an entity bean, it might also expose methods that get or set the bean's data. These methods could be leveraged to read sensitive information, or to change data in ways that violate the application's expectations, potentially leading to other vulnerabilities." +ACERT,CWE-9,CWE-9 (J2EE Misconfiguration: Weak Access Permissions for EJB Methods) is present in a module,"If elevated access rights are assigned to EJB methods, then an attacker can take advantage of the permissions to exploit the software system." +ACERT,CWE-11,CWE-11 (ASP.NET Misconfiguration: Creating Debug Binary) is present in a module,Debugging messages help attackers learn about the system and plan a form of attack. +ACERT,CWE-12,CWE-12 (ASP.NET Misconfiguration: Missing Custom Error Page) is present in a module,An ASP .NET application must enable custom error pages in order to prevent attackers from mining information from the framework's built-in responses. +ACERT,CWE-13,CWE-13 (ASP.NET Misconfiguration: Password in Configuration File) is present in a module,Storing a plaintext password in a configuration file allows anyone who can read the file access to the password-protected resource making them an easy target for attackers. +ACERT,CWE-14,CWE-14 (Compiler Removal of Code to Clear Buffers) is present in a module,"Sensitive memory is cleared according to the source code, but compiler optimizations leave the memory untouched when it is not read from again, aka dead store removal." +ACERT,CWE-15,CWE-15 (External Control of System or Configuration Setting) is present in a module,One or more system settings or configuration elements can be externally controlled by a user. +ACERT,CWE-20,CWE-20 (Improper Input Validation) is present in a module,"The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly." +ACERT,CWE-22,CWE-22 (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) is present in a module,"The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory." +ACERT,CWE-23,CWE-23 (Relative Path Traversal) is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as .. that can resolve to a location that is outside of that directory." +ACERT,CWE-24,CWE-24 (Path Traversal: '../filedir') is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize ../ sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-25,CWE-25 (Path Traversal: '/../filedir') is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize /../ sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-26,CWE-26 (Path Traversal: '/dir/../filename') is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize /dir/../filename sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-27,CWE-27 (Path Traversal: 'dir/../../filename') is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize multiple internal ../ sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-28,CWE-28 (Path Traversal: '..filedir') is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize .. sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-29,CWE-29 (Path Traversal: '..filename') is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '..filename' (leading backslash dot dot) sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-30,CWE-30 (Path Traversal: 'dir..filename') is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize 'dir..filename' (leading backslash dot dot) sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-31,CWE-31 (Path Traversal: 'dir....filename') is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize 'dir....filename' (multiple internal backslash dot dot) sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-32,CWE-32 (Path Traversal: '...' (Triple Dot)) is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '...' (triple dot) sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-33,CWE-33 (Path Traversal: '....' (Multiple Dot)) is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '....' (multiple dot) sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-34,CWE-34 (Path Traversal: '....//') is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '....//' (doubled dot dot slash) sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-35,CWE-35 (Path Traversal: '.../...//') is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '.../...//' (doubled triple dot slash) sequences that can resolve to a location that is outside of that directory." +ACERT,CWE-36,CWE-36 (Absolute Path Traversal) is present in a module,"The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as /abs/path that can resolve to a location that is outside of that directory." +ACERT,CWE-37,CWE-37 (Path Traversal: '/absolute/pathname/here') is present in a module,A software system that accepts input in the form of a slash absolute path ('/absolute/pathname/here') without appropriate validation can allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-38,CWE-38 (Path Traversal: 'absolutepathnamehere') is present in a module,A software system that accepts input in the form of a backslash absolute path ('absolutepathnamehere') without appropriate validation can allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-39,CWE-39 (Path Traversal: 'C:dirname') is present in a module,An attacker can inject a drive letter or Windows volume letter ('C:dirname') into a software system to potentially redirect access to an unintended location or arbitrary file. +ACERT,CWE-40,CWE-40 (Path Traversal: 'UNCsharename' (Windows UNC Share)) is present in a module,An attacker can inject a Windows UNC share ('UNCsharename') into a software system to potentially redirect access to an unintended location or arbitrary file. +ACERT,CWE-41,CWE-41 (Improper Resolution of Path Equivalence) is present in a module,The system or application is vulnerable to file system contents disclosure through path equivalence. Path equivalence involves the use of special characters in file and directory names. The associated manipulations are intended to generate multiple names for the same object. +ACERT,CWE-42,CWE-42 (Path Equivalence: 'filename.' (Trailing Dot)) is present in a module,A software system that accepts path input in the form of trailing dot ('filedir.') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-43,CWE-43 (Path Equivalence: 'filename....' (Multiple Trailing Dot)) is present in a module,A software system that accepts path input in the form of multiple trailing dot ('filedir....') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-44,CWE-44 (Path Equivalence: 'file.name' (Internal Dot)) is present in a module,A software system that accepts path input in the form of internal dot ('file.ordir') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-45,CWE-45 (Path Equivalence: 'file...name' (Multiple Internal Dot)) is present in a module,A software system that accepts path input in the form of multiple internal dot ('file...dir') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-46,CWE-46 (Path Equivalence: 'filename ' (Trailing Space)) is present in a module,A software system that accepts path input in the form of trailing space ('filedir ') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-47,CWE-47 (Path Equivalence: ' filename' (Leading Space)) is present in a module,A software system that accepts path input in the form of leading space (' filedir') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-48,CWE-48 (Path Equivalence: 'file name' (Internal Whitespace)) is present in a module,A software system that accepts path input in the form of internal space ('file(SPACE)name') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-49,CWE-49 (Path Equivalence: 'filename/' (Trailing Slash)) is present in a module,A software system that accepts path input in the form of trailing slash ('filedir/') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-50,CWE-50 (Path Equivalence: '//multiple/leading/slash') is present in a module,A software system that accepts path input in the form of multiple leading slash ('//multiple/leading/slash') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-51,CWE-51 (Path Equivalence: '/multiple//internal/slash') is present in a module,A software system that accepts path input in the form of multiple internal slash ('/multiple//internal/slash/') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-52,CWE-52 (Path Equivalence: '/multiple/trailing/slash//') is present in a module,A software system that accepts path input in the form of multiple trailing slash ('/multiple/trailing/slash//') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-53,CWE-53 (Path Equivalence: 'multipleinternalbackslash') is present in a module,A software system that accepts path input in the form of multiple internal backslash ('multipletrailingslash') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-54,CWE-54 (Path Equivalence: 'filedir' (Trailing Backslash)) is present in a module,A software system that accepts path input in the form of trailing backslash ('filedir') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-55,CWE-55 (Path Equivalence: '/./' (Single Dot Directory)) is present in a module,A software system that accepts path input in the form of single dot directory exploit ('/./') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-56,CWE-56 (Path Equivalence: 'filedir*' (Wildcard)) is present in a module,A software system that accepts path input in the form of asterisk wildcard ('filedir*') without appropriate validation can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files. +ACERT,CWE-57,CWE-57 (Path Equivalence: 'fakedir/../realdir/filename') is present in a module,"The software contains protection mechanisms to restrict access to 'realdir/filename', but it constructs pathnames using external input in the form of 'fakedir/../realdir/filename' that are not handled by those mechanisms. This allows attackers to perform unauthorized actions against the targeted file." +ACERT,CWE-58,CWE-58 (Path Equivalence: Windows 8.3 Filename) is present in a module,"The software contains a protection mechanism that restricts access to a long filename on a Windows operating system, but the software does not properly restrict access to the equivalent short 8.3 filename." +ACERT,CWE-59,CWE-59 (Improper Link Resolution Before File Access ('Link Following')) is present in a module,"The software attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource." +ACERT,CWE-61,CWE-61 (UNIX Symbolic Link (Symlink) Following) is present in a module,"The software, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the software to operate on unauthorized files." +ACERT,CWE-62,CWE-62 (UNIX Hard Link) is present in a module,"The software, when opening a file or directory, does not sufficiently account for when the name is associated with a hard link to a target that is outside of the intended control sphere. This could allow an attacker to cause the software to operate on unauthorized files." +ACERT,CWE-64,CWE-64 (Windows Shortcut Following (.LNK)) is present in a module,"The software, when opening a file or directory, does not sufficiently handle when the file is a Windows shortcut (.LNK) whose target is outside of the intended control sphere. This could allow an attacker to cause the software to operate on unauthorized files." +ACERT,CWE-65,CWE-65 (Windows Hard Link) is present in a module,"The software, when opening a file or directory, does not sufficiently handle when the name is associated with a hard link to a target that is outside of the intended control sphere. This could allow an attacker to cause the software to operate on unauthorized files." +ACERT,CWE-66,CWE-66 (Improper Handling of File Names that Identify Virtual Resources) is present in a module,"The product does not handle or incorrectly handles a file name that identifies a virtual resource that is not directly specified within the directory that is associated with the file name, causing the product to perform file-based operations on a resource that is not a file." +ACERT,CWE-67,CWE-67 (Improper Handling of Windows Device Names) is present in a module,"The software constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as AUX or CON. This typically leads to denial of service or an information exposure when the application attempts to process the pathname as a regular file." +ACERT,CWE-69,CWE-69 (Improper Handling of Windows ::DATA Alternate Data Stream) is present in a module,"The software does not properly prevent access to, or detect usage of, alternate data streams (ADS)." +ACERT,CWE-72,CWE-72 (Improper Handling of Apple HFS+ Alternate Data Stream Path) is present in a module,The software does not properly handle special paths that may identify the data or resource fork of a file on the HFS+ file system. +ACERT,CWE-73,CWE-73 (External Control of File Name or Path) is present in a module,The software allows user input to control or influence paths or file names that are used in filesystem operations. +ACERT,CWE-74,CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) is present in a module,"The software constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component." +ACERT,CWE-75,CWE-75 (Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)) is present in a module,The software does not adequately filter user-controlled input for special elements with control implications. +ACERT,CWE-76,CWE-76 (Improper Neutralization of Equivalent Special Elements) is present in a module,"The software properly neutralizes certain special elements, but it improperly neutralizes equivalent special elements." +ACERT,CWE-77,CWE-77 (Improper Neutralization of Special Elements used in a Command ('Command Injection')) is present in a module,"The software constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component." +ACERT,CWE-78,CWE-78 (Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) is present in a module,"The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component." +ACERT,CWE-79,CWE-79 (Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) is present in a module,The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. +ACERT,CWE-80,CWE-80 (Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as <, >, and & that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages." +ACERT,CWE-81,CWE-81 (Improper Neutralization of Script in an Error Message Web Page) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters that could be interpreted as web-scripting elements when they are sent to an error page." +ACERT,CWE-82,CWE-82 (Improper Neutralization of Script in Attributes of IMG Tags in a Web Page) is present in a module,"The web application does not neutralize or incorrectly neutralizes scripting elements within attributes of HTML IMG tags, such as the src attribute." +ACERT,CWE-83,CWE-83 (Improper Neutralization of Script in Attributes in a Web Page) is present in a module,"The software does not neutralize or incorrectly neutralizes javascript: or other URIs from dangerous attributes within tags, such as onmouseover, onload, onerror, or style." +ACERT,CWE-84,CWE-84 (Improper Neutralization of Encoded URI Schemes in a Web Page) is present in a module,The web application improperly neutralizes user-controlled input for executable script disguised with URI encodings. +ACERT,CWE-85,CWE-85 (Doubled Character XSS Manipulations) is present in a module,The web application does not filter user-controlled input for executable script disguised using doubling of the involved characters. +ACERT,CWE-86,CWE-86 (Improper Neutralization of Invalid Characters in Identifiers in Web Pages) is present in a module,"The software does not neutralize or incorrectly neutralizes invalid characters or byte sequences in the middle of tag names, URI schemes, and other identifiers." +ACERT,CWE-87,CWE-87 (Improper Neutralization of Alternate XSS Syntax) is present in a module,The software does not neutralize or incorrectly neutralizes user-controlled input for alternate script syntax. +ACERT,CWE-88,CWE-88 (Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')) is present in a module,"The software constructs a string for a command to executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string." +ACERT,CWE-89,CWE-89 (Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) is present in a module,"The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component." +ACERT,CWE-90,CWE-90 (Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')) is present in a module,"The software constructs all or part of an LDAP query using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended LDAP query when it is sent to a downstream component." +ACERT,CWE-91,CWE-91 (XML Injection (aka Blind XPath Injection)) is present in a module,"The software does not properly neutralize special elements that are used in XML, allowing attackers to modify the syntax, content, or commands of the XML before it is processed by an end system." +ACERT,CWE-93,CWE-93 (Improper Neutralization of CRLF Sequences ('CRLF Injection')) is present in a module,"The software uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs." +ACERT,CWE-94,CWE-94 (Improper Control of Generation of Code ('Code Injection')) is present in a module,"The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment." +ACERT,CWE-95,CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. eval)." +ACERT,CWE-96,CWE-96 (Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before inserting the input into an executable resource, such as a library, configuration file, or template." +ACERT,CWE-97,CWE-97 (Improper Neutralization of Server-Side Includes (SSI) Within a Web Page) is present in a module,"The software generates a web page, but does not neutralize or incorrectly neutralizes user-controllable input that could be interpreted as a server-side include (SSI) directive." +ACERT,CWE-98,CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')) is present in a module,"The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in require, include, or similar functions." +ACERT,CWE-99,CWE-99 (Improper Control of Resource Identifiers ('Resource Injection')) is present in a module,"The software receives input from an upstream component, but it does not restrict or incorrectly restricts the input before it is used as an identifier for a resource that may be outside the intended sphere of control." +ACERT,CWE-102,CWE-102 (Struts: Duplicate Validation Forms) is present in a module,"The application uses multiple validation forms with the same name, which might cause the Struts Validator to validate a form that the programmer does not expect." +ACERT,CWE-103,CWE-103 (Struts: Incomplete validate() Method Definition) is present in a module,"The application has a validator form that either does not define a validate() method, or defines a validate() method but does not call super.validate()." +ACERT,CWE-104,CWE-104 (Struts: Form Bean Does Not Extend Validation Class) is present in a module,"If a form bean does not extend an ActionForm subclass of the Validator framework, it can expose the application to other weaknesses related to insufficient input validation." +ACERT,CWE-105,CWE-105 (Struts: Form Field Without Validator) is present in a module,"The application has a form field that is not validated by a corresponding validation form, which can introduce other weaknesses related to insufficient input validation." +ACERT,CWE-106,CWE-106 (Struts: Plug-in Framework not in Use) is present in a module,"When an application does not use an input validation framework such as the Struts Validator, there is a greater risk of introducing weaknesses related to insufficient input validation." +ACERT,CWE-107,CWE-107 (Struts: Unused Validation Form) is present in a module,An unused validation form indicates that validation logic is not up-to-date. +ACERT,CWE-108,CWE-108 (Struts: Unvalidated Action Form) is present in a module,Every Action Form must have a corresponding validation form. +ACERT,CWE-109,CWE-109 (Struts: Validator Turned Off) is present in a module,"Automatic filtering via a Struts bean has been turned off, which disables the Struts Validator and custom validation logic. This exposes the application to other weaknesses related to insufficient input validation." +ACERT,CWE-110,CWE-110 (Struts: Validator Without Form Field) is present in a module,Validation fields that do not appear in forms they are associated with indicate that the validation logic is out of date. +ACERT,CWE-111,CWE-111 (Direct Use of Unsafe JNI) is present in a module,"When a Java application uses the Java Native Interface (JNI) to call code written in another programming language, it can expose the application to weaknesses in that code, even if those weaknesses cannot occur in Java." +ACERT,CWE-112,CWE-112 (Missing XML Validation) is present in a module,The software accepts XML from an untrusted source but does not validate the XML against the proper schema. +ACERT,CWE-113,CWE-113 (Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')) is present in a module,"The software receives data from an upstream component, but does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers." +ACERT,CWE-114,CWE-114 (Process Control) is present in a module,Executing commands or loading libraries from an untrusted source or in an untrusted environment can cause an application to execute malicious commands (and payloads) on behalf of an attacker. +ACERT,CWE-115,CWE-115 (Misinterpretation of Input) is present in a module,"The software misinterprets an input, whether from an attacker or another product, in a security-relevant fashion." +ACERT,CWE-116,CWE-116 (Improper Encoding or Escaping of Output) is present in a module,"The software prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved." +ACERT,CWE-117,CWE-117 (Improper Output Neutralization for Logs) is present in a module,The software does not neutralize or incorrectly neutralizes output that is written to logs. +ACERT,CWE-118,CWE-118 (Incorrect Access of Indexable Resource ('Range Error')) is present in a module,"The software does not restrict or incorrectly restricts operations within the boundaries of a resource that is accessed using an index or pointer, such as memory or files." +ACERT,CWE-119,CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) is present in a module,"The software performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer." +ACERT,CWE-120,CWE-120 (Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')) is present in a module,"The program copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow." +ACERT,CWE-121,CWE-121 (Stack-based Buffer Overflow) is present in a module,"A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function)." +ACERT,CWE-122,CWE-122 (Heap-based Buffer Overflow) is present in a module,"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc()." +ACERT,CWE-123,CWE-123 (Write-what-where Condition) is present in a module,"Any condition where the attacker has the ability to write an arbitrary value to an arbitrary location, often as the result of a buffer overflow." +ACERT,CWE-124,CWE-124 (Buffer Underwrite ('Buffer Underflow')) is present in a module,The software writes to a buffer using an index or pointer that references a memory location prior to the beginning of the buffer. +ACERT,CWE-125,CWE-125 (Out-of-bounds Read) is present in a module,"The software reads data past the end, or before the beginning, of the intended buffer." +ACERT,CWE-126,CWE-126 (Buffer Over-read) is present in a module,The software reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer. +ACERT,CWE-127,CWE-127 (Buffer Under-read) is present in a module,The software reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations prior to the targeted buffer. +ACERT,CWE-128,CWE-128 (Wrap-around Error) is present in a module,"Wrap around errors occur whenever a value is incremented past the maximum value for its type and therefore wraps around to a very small, negative, or undefined value." +ACERT,CWE-129,CWE-129 (Improper Validation of Array Index) is present in a module,"The product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array." +ACERT,CWE-130,CWE-130 (Improper Handling of Length Parameter Inconsistency) is present in a module,"The software parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data." +ACERT,CWE-131,CWE-131 (Incorrect Calculation of Buffer Size) is present in a module,"The software does not correctly calculate the size to be used when allocating a buffer, which could lead to a buffer overflow." +ACERT,CWE-134,CWE-134 (Use of Externally-Controlled Format String) is present in a module,"The software uses a function that accepts a format string as an argument, but the format string originates from an external source." +ACERT,CWE-135,CWE-135 (Incorrect Calculation of Multi-Byte String Length) is present in a module,The software does not correctly calculate the length of strings that can contain wide or multi-byte characters. +ACERT,CWE-138,CWE-138 (Improper Neutralization of Special Elements) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as control elements or syntactic markers when they are sent to a downstream component." +ACERT,CWE-140,CWE-140 (Improper Neutralization of Delimiters) is present in a module,The software does not neutralize or incorrectly neutralizes delimiters. +ACERT,CWE-141,CWE-141 (Improper Neutralization of Parameter/Argument Delimiters) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as parameter or argument delimiters when they are sent to a downstream component." +ACERT,CWE-142,CWE-142 (Improper Neutralization of Value Delimiters) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as value delimiters when they are sent to a downstream component." +ACERT,CWE-143,CWE-143 (Improper Neutralization of Record Delimiters) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as record delimiters when they are sent to a downstream component." +ACERT,CWE-144,CWE-144 (Improper Neutralization of Line Delimiters) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as line delimiters when they are sent to a downstream component." +ACERT,CWE-145,CWE-145 (Improper Neutralization of Section Delimiters) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as section delimiters when they are sent to a downstream component." +ACERT,CWE-146,CWE-146 (Improper Neutralization of Expression/Command Delimiters) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as expression or command delimiters when they are sent to a downstream component." +ACERT,CWE-147,CWE-147 (Improper Neutralization of Input Terminators) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as input terminators when they are sent to a downstream component." +ACERT,CWE-148,CWE-148 (Improper Neutralization of Input Leaders) is present in a module,"The application does not properly handle when a leading character or sequence (leader) is missing or malformed, or if multiple leaders are used when only one should be allowed." +ACERT,CWE-149,CWE-149 (Improper Neutralization of Quoting Syntax) is present in a module,"Quotes injected into an application can be used to compromise a system. As data are parsed, an injected/absent/duplicate/malformed use of quotes may cause the process to take unexpected actions." +ACERT,CWE-150,"CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences) is present in a module","The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component." +ACERT,CWE-151,CWE-151 (Improper Neutralization of Comment Delimiters) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as comment delimiters when they are sent to a downstream component." +ACERT,CWE-152,CWE-152 (Improper Neutralization of Macro Symbols) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as macro symbols when they are sent to a downstream component." +ACERT,CWE-153,CWE-153 (Improper Neutralization of Substitution Characters) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as substitution characters when they are sent to a downstream component." +ACERT,CWE-154,CWE-154 (Improper Neutralization of Variable Name Delimiters) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as variable name delimiters when they are sent to a downstream component." +ACERT,CWE-155,CWE-155 (Improper Neutralization of Wildcards or Matching Symbols) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as wildcards or matching symbols when they are sent to a downstream component." +ACERT,CWE-156,CWE-156 (Improper Neutralization of Whitespace) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as whitespace when they are sent to a downstream component." +ACERT,CWE-157,CWE-157 (Failure to Sanitize Paired Delimiters) is present in a module,"The software does not properly handle the characters that are used to mark the beginning and ending of a group of entities, such as parentheses, brackets, and braces." +ACERT,CWE-158,CWE-158 (Improper Neutralization of Null Byte or NUL Character) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes NUL characters or null bytes when they are sent to a downstream component." +ACERT,CWE-159,CWE-159 (Improper Handling of Invalid Use of Special Elements) is present in a module,"The product does not properly filter, remove, quote, or otherwise manage the invalid use of special elements in user-controlled input, which could cause adverse effect on its behavior and integrity." +ACERT,CWE-160,CWE-160 (Improper Neutralization of Leading Special Elements) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes leading special elements that could be interpreted in unexpected ways when they are sent to a downstream component." +ACERT,CWE-161,CWE-161 (Improper Neutralization of Multiple Leading Special Elements) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes multiple leading special elements that could be interpreted in unexpected ways when they are sent to a downstream component." +ACERT,CWE-162,CWE-162 (Improper Neutralization of Trailing Special Elements) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes trailing special elements that could be interpreted in unexpected ways when they are sent to a downstream component." +ACERT,CWE-163,CWE-163 (Improper Neutralization of Multiple Trailing Special Elements) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes multiple trailing special elements that could be interpreted in unexpected ways when they are sent to a downstream component." +ACERT,CWE-164,CWE-164 (Improper Neutralization of Internal Special Elements) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes internal special elements that could be interpreted in unexpected ways when they are sent to a downstream component." +ACERT,CWE-165,CWE-165 (Improper Neutralization of Multiple Internal Special Elements) is present in a module,"The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes multiple internal special elements that could be interpreted in unexpected ways when they are sent to a downstream component." +ACERT,CWE-166,CWE-166 (Improper Handling of Missing Special Element) is present in a module,"The software receives input from an upstream component, but it does not handle or incorrectly handles when an expected special element is missing." +ACERT,CWE-167,CWE-167 (Improper Handling of Additional Special Element) is present in a module,"The software receives input from an upstream component, but it does not handle or incorrectly handles when an additional unexpected special element is provided." +ACERT,CWE-168,CWE-168 (Improper Handling of Inconsistent Special Elements) is present in a module,The software does not properly handle input in which an inconsistency exists between two or more special characters or reserved words. +ACERT,CWE-170,CWE-170 (Improper Null Termination) is present in a module,The software does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator. +ACERT,CWE-172,CWE-172 (Encoding Error) is present in a module,"The software does not properly encode or decode the data, resulting in unexpected values." +ACERT,CWE-173,CWE-173 (Improper Handling of Alternate Encoding) is present in a module,The software does not properly handle when an input uses an alternate encoding that is valid for the control sphere to which the input is being sent. +ACERT,CWE-174,CWE-174 (Double Decoding of the Same Data) is present in a module,"The software decodes the same input twice, which can limit the effectiveness of any protection mechanism that occurs in between the decoding operations." +ACERT,CWE-175,CWE-175 (Improper Handling of Mixed Encoding) is present in a module,The software does not properly handle when the same input uses several different (mixed) encodings. +ACERT,CWE-176,CWE-176 (Improper Handling of Unicode Encoding) is present in a module,The software does not properly handle when an input contains Unicode encoding. +ACERT,CWE-177,CWE-177 (Improper Handling of URL Encoding (Hex Encoding)) is present in a module,The software does not properly handle when all or part of an input has been URL encoded. +ACERT,CWE-178,CWE-178 (Improper Handling of Case Sensitivity) is present in a module,"The software does not properly account for differences in case sensitivity when accessing or determining the properties of a resource, leading to inconsistent results." +ACERT,CWE-179,CWE-179 (Incorrect Behavior Order: Early Validation) is present in a module,"The software validates input before applying protection mechanisms that modify the input, which could allow an attacker to bypass the validation via dangerous inputs that only arise after the modification." +ACERT,CWE-180,CWE-180 (Incorrect Behavior Order: Validate Before Canonicalize) is present in a module,"The software validates input before it is canonicalized, which prevents the software from detecting data that becomes invalid after the canonicalization step." +ACERT,CWE-181,CWE-181 (Incorrect Behavior Order: Validate Before Filter) is present in a module,"The software validates data before it has been filtered, which prevents the software from detecting data that becomes invalid after the filtering step." +ACERT,CWE-182,CWE-182 (Collapse of Data into Unsafe Value) is present in a module,The software filters data in a way that causes it to be reduced or collapsed into an unsafe value that violates an expected security property. +ACERT,CWE-183,CWE-183 (Permissive List of Allowed Inputs) is present in a module,"The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses." +ACERT,CWE-184,CWE-184 (Incomplete List of Disallowed Inputs) is present in a module,"The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete, leading to resultant weaknesses." +ACERT,CWE-185,CWE-185 (Incorrect Regular Expression) is present in a module,The software specifies a regular expression in a way that causes data to be improperly matched or compared. +ACERT,CWE-186,CWE-186 (Overly Restrictive Regular Expression) is present in a module,"A regular expression is overly restrictive, which prevents dangerous values from being detected." +ACERT,CWE-187,CWE-187 (Partial String Comparison) is present in a module,"The software performs a comparison that only examines a portion of a factor before determining whether there is a match, such as a substring, leading to resultant weaknesses." +ACERT,CWE-188,CWE-188 (Reliance on Data/Memory Layout) is present in a module,"The software makes invalid assumptions about how protocol data or memory is organized at a lower level, resulting in unintended program behavior." +ACERT,CWE-190,CWE-190 (Integer Overflow or Wraparound) is present in a module,"The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control." +ACERT,CWE-191,CWE-191 (Integer Underflow (Wrap or Wraparound)) is present in a module,"The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result." +ACERT,CWE-192,CWE-192 (Integer Coercion Error) is present in a module,"Integer coercion refers to a set of flaws pertaining to the type casting, extension, or truncation of primitive data types." +ACERT,CWE-193,CWE-193 (Off-by-one Error) is present in a module,"A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value." +ACERT,CWE-194,CWE-194 (Unexpected Sign Extension) is present in a module,"The software performs an operation on a number that causes it to be sign extended when it is transformed into a larger data type. When the original number is negative, this can produce unexpected values that lead to resultant weaknesses." +ACERT,CWE-195,CWE-195 (Signed to Unsigned Conversion Error) is present in a module,"The software uses a signed primitive and performs a cast to an unsigned primitive, which can produce an unexpected value if the value of the signed primitive can not be represented using an unsigned primitive." +ACERT,CWE-196,CWE-196 (Unsigned to Signed Conversion Error) is present in a module,"The software uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value if the value of the unsigned primitive can not be represented using a signed primitive." +ACERT,CWE-197,CWE-197 (Numeric Truncation Error) is present in a module,Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion. +ACERT,CWE-198,CWE-198 (Use of Incorrect Byte Ordering) is present in a module,"The software receives input from an upstream component, but it does not account for byte ordering (e.g. big-endian and little-endian) when processing the input, causing an incorrect number or value to be used." +ACERT,CWE-200,CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) is present in a module,The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. +ACERT,CWE-201,CWE-201 (Insertion of Sensitive Information Into Sent Data) is present in a module,"The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor." +ACERT,CWE-202,CWE-202 (Exposure of Sensitive Information Through Data Queries) is present in a module,"When trying to keep information confidential, an attacker can often infer some of the information by using statistics." +ACERT,CWE-203,CWE-203 (Observable Discrepancy) is present in a module,"The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor, which exposes security-relevant information about the state of the product, such as whether a particular operation was successful or not." +ACERT,CWE-204,CWE-204 (Observable Response Discrepancy) is present in a module,The product provides different responses to incoming requests in a way that reveals internal state information to an unauthorized actor outside of the intended control sphere. +ACERT,CWE-205,CWE-205 (Observable Behavioral Discrepancy) is present in a module,"The product's behaviors indicate important differences that may be observed by unauthorized actors in a way that reveals (1) its internal state or decision process, or (2) differences from other products with equivalent functionality." +ACERT,CWE-206,CWE-206 (Observable Internal Behavioral Discrepancy) is present in a module,"The product performs multiple behaviors that are combined to produce a single result, but the individual behaviors are observable separately in a way that allows attackers to reveal internal state or internal decision points." +ACERT,CWE-207,CWE-207 (Observable Behavioral Discrepancy With Equivalent Products) is present in a module,"The product operates in an environment in which its existence or specific identity should not be known, but it behaves differently than other products with equivalent functionality, in a way that is observable to an attacker." +ACERT,CWE-208,CWE-208 (Observable Timing Discrepancy) is present in a module,"Two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not." +ACERT,CWE-209,CWE-209 (Generation of Error Message Containing Sensitive Information) is present in a module,"The software generates an error message that includes sensitive information about its environment, users, or associated data." +ACERT,CWE-210,CWE-210 (Self-generated Error Message Containing Sensitive Information) is present in a module,The software identifies an error condition and creates its own diagnostic or error messages that contain sensitive information. +ACERT,CWE-211,CWE-211 (Externally-Generated Error Message Containing Sensitive Information) is present in a module,"The application performs an operation that triggers an external diagnostic or error message that is not directly generated or controlled by the application, such as an error generated by the programming language interpreter that the software uses. The error can contain sensitive system information." +ACERT,CWE-212,CWE-212 (Improper Removal of Sensitive Information Before Storage or Transfer) is present in a module,"The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors." +ACERT,CWE-213,CWE-213 (Exposure of Sensitive Information Due to Incompatible Policies) is present in a module,"The product's intended functionality exposes information to certain actors in accordance with the developer's security policy, but this information is regarded as sensitive according to the intended security policies of other stakeholders such as the product's administrator, users, or others whose information is being processed." +ACERT,CWE-214,CWE-214 (Invocation of Process Using Visible Sensitive Information) is present in a module,"A process is invoked with sensitive command-line arguments, environment variables, or other elements that can be seen by other processes on the operating system." +ACERT,CWE-215,CWE-215 (Insertion of Sensitive Information Into Debugging Code) is present in a module,"The application inserts sensitive information into debugging code, which could expose this information if the debugging code is not disabled in production." +ACERT,CWE-219,CWE-219 (Storage of File with Sensitive Data Under Web Root) is present in a module,"The application stores sensitive data under the web document root with insufficient access control, which might make it accessible to untrusted parties." +ACERT,CWE-220,CWE-220 (Storage of File With Sensitive Data Under FTP Root) is present in a module,"The application stores sensitive data under the FTP server root with insufficient access control, which might make it accessible to untrusted parties." +ACERT,CWE-221,CWE-221 (Information Loss or Omission) is present in a module,"The software does not record, or improperly records, security-relevant information that leads to an incorrect decision or hampers later analysis." +ACERT,CWE-222,CWE-222 (Truncation of Security-relevant Information) is present in a module,"The application truncates the display, recording, or processing of security-relevant information in a way that can obscure the source or nature of an attack." +ACERT,CWE-223,CWE-223 (Omission of Security-relevant Information) is present in a module,"The application does not record or display information that would be important for identifying the source or nature of an attack, or determining if an action is safe." +ACERT,CWE-224,CWE-224 (Obscured Security-relevant Information by Alternate Name) is present in a module,"The software records security-relevant information according to an alternate name of the affected entity, instead of the canonical name." +ACERT,CWE-226,CWE-226 (Sensitive Information in Resource Not Removed Before Reuse) is present in a module,"The product releases a resource such as memory or a file so that it can be made available for reuse, but it does not clear or zeroize the information contained in the resource before the product performs a critical state transition or makes the resource available for reuse by other entities." +ACERT,CWE-228,CWE-228 (Improper Handling of Syntactically Invalid Structure) is present in a module,The product does not handle or incorrectly handles input that is not syntactically well-formed with respect to the associated specification. +ACERT,CWE-229,CWE-229 (Improper Handling of Values) is present in a module,"The software does not properly handle when the expected number of values for parameters, fields, or arguments is not provided in input, or if those values are undefined." +ACERT,CWE-230,CWE-230 (Improper Handling of Missing Values) is present in a module,"The software does not handle or incorrectly handles when a parameter, field, or argument name is specified, but the associated value is missing, i.e. it is empty, blank, or null." +ACERT,CWE-231,CWE-231 (Improper Handling of Extra Values) is present in a module,The software does not handle or incorrectly handles when more values are provided than expected. +ACERT,CWE-232,CWE-232 (Improper Handling of Undefined Values) is present in a module,"The software does not handle or incorrectly handles when a value is not defined or supported for the associated parameter, field, or argument name." +ACERT,CWE-233,CWE-233 (Improper Handling of Parameters) is present in a module,"The software does not properly handle when the expected number of parameters, fields, or arguments is not provided in input, or if those parameters are undefined." +ACERT,CWE-234,CWE-234 (Failure to Handle Missing Parameter) is present in a module,"If too few arguments are sent to a function, the function will still pop the expected number of arguments from the stack. Potentially, a variable number of arguments could be exhausted in a function as well." +ACERT,CWE-235,CWE-235 (Improper Handling of Extra Parameters) is present in a module,"The software does not handle or incorrectly handles when the number of parameters, fields, or arguments with the same name exceeds the expected amount." +ACERT,CWE-236,CWE-236 (Improper Handling of Undefined Parameters) is present in a module,"The software does not handle or incorrectly handles when a particular parameter, field, or argument name is not defined or supported by the product." +ACERT,CWE-237,CWE-237 (Improper Handling of Structural Elements) is present in a module,The software does not handle or incorrectly handles inputs that are related to complex structures. +ACERT,CWE-238,CWE-238 (Improper Handling of Incomplete Structural Elements) is present in a module,The software does not handle or incorrectly handles when a particular structural element is not completely specified. +ACERT,CWE-239,CWE-239 (Failure to Handle Incomplete Element) is present in a module,The software does not properly handle when a particular element is not completely specified. +ACERT,CWE-240,CWE-240 (Improper Handling of Inconsistent Structural Elements) is present in a module,"The software does not handle or incorrectly handles when two or more structural elements should be consistent, but are not." +ACERT,CWE-241,CWE-241 (Improper Handling of Unexpected Data Type) is present in a module,"The software does not handle or incorrectly handles when a particular element is not the expected type, e.g. it expects a digit (0-9) but is provided with a letter (A-Z)." +ACERT,CWE-242,CWE-242 (Use of Inherently Dangerous Function) is present in a module,The program calls a function that can never be guaranteed to work safely. +ACERT,CWE-243,CWE-243 (Creation of chroot Jail Without Changing Working Directory) is present in a module,"The program uses the chroot() system call to create a jail, but does not change the working directory afterward. This does not prevent access to files outside of the jail." +ACERT,CWE-244,CWE-244 (Improper Clearing of Heap Memory Before Release ('Heap Inspection')) is present in a module,"Using realloc() to resize buffers that store sensitive information can leave the sensitive information exposed to attack, because it is not removed from memory." +ACERT,CWE-245,CWE-245 (J2EE Bad Practices: Direct Management of Connections) is present in a module,"The J2EE application directly manages connections, instead of using the container's connection management facilities." +ACERT,CWE-246,CWE-246 (J2EE Bad Practices: Direct Use of Sockets) is present in a module,The J2EE application directly uses sockets instead of using framework method calls. +ACERT,CWE-248,CWE-248 (Uncaught Exception) is present in a module,"An exception is thrown from a function, but it is not caught." +ACERT,CWE-250,CWE-250 (Execution with Unnecessary Privileges) is present in a module,"The software performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses." +ACERT,CWE-252,CWE-252 (Unchecked Return Value) is present in a module,"The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions." +ACERT,CWE-253,CWE-253 (Incorrect Check of Function Return Value) is present in a module,"The software incorrectly checks a return value from a function, which prevents the software from detecting errors or exceptional conditions." +ACERT,CWE-256,CWE-256 (Plaintext Storage of a Password) is present in a module,Storing a password in plaintext may result in a system compromise. +ACERT,CWE-257,CWE-257 (Storing Passwords in a Recoverable Format) is present in a module,"The storage of passwords in a recoverable format makes them subject to password reuse attacks by malicious users. In fact, it should be noted that recoverable encrypted passwords provide no significant benefit over plaintext passwords since they are subject not only to reuse by malicious attackers but also by malicious insiders. If a system administrator can recover a password directly, or use a brute force search on the available information, the administrator can use the password on other accounts." +ACERT,CWE-258,CWE-258 (Empty Password in Configuration File) is present in a module,Using an empty string as a password is insecure. +ACERT,CWE-259,CWE-259 (Use of Hard-coded Password) is present in a module,"The software contains a hard-coded password, which it uses for its own inbound authentication or for outbound communication to external components." +ACERT,CWE-260,CWE-260 (Password in Configuration File) is present in a module,The software stores a password in a configuration file that might be accessible to actors who do not know the password. +ACERT,CWE-261,CWE-261 (Weak Encoding for Password) is present in a module,Obscuring a password with a trivial encoding does not protect the password. +ACERT,CWE-262,CWE-262 (Not Using Password Aging) is present in a module,"If no mechanism is in place for managing password aging, users will have no incentive to update passwords in a timely manner." +ACERT,CWE-263,CWE-263 (Password Aging with Long Expiration) is present in a module,Allowing password aging to occur unchecked can result in the possibility of diminished password integrity. +ACERT,CWE-266,CWE-266 (Incorrect Privilege Assignment) is present in a module,"A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor." +ACERT,CWE-267,CWE-267 (Privilege Defined With Unsafe Actions) is present in a module,"A particular privilege, role, capability, or right can be used to perform unsafe actions that were not intended, even when it is assigned to the correct entity." +ACERT,CWE-268,CWE-268 (Privilege Chaining) is present in a module,"Two distinct privileges, roles, capabilities, or rights can be combined in a way that allows an entity to perform unsafe actions that would not be allowed without that combination." +ACERT,CWE-269,CWE-269 (Improper Privilege Management) is present in a module,"The software does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor." +ACERT,CWE-270,CWE-270 (Privilege Context Switching Error) is present in a module,The software does not properly manage privileges while it is switching between different contexts that have different privileges or spheres of control. +ACERT,CWE-271,CWE-271 (Privilege Dropping / Lowering Errors) is present in a module,The software does not drop privileges before passing control of a resource to an actor that does not have those privileges. +ACERT,CWE-272,CWE-272 (Least Privilege Violation) is present in a module,The elevated privilege level required to perform operations such as chroot() should be dropped immediately after the operation is performed. +ACERT,CWE-273,CWE-273 (Improper Check for Dropped Privileges) is present in a module,The software attempts to drop privileges but does not check or incorrectly checks to see if the drop succeeded. +ACERT,CWE-274,CWE-274 (Improper Handling of Insufficient Privileges) is present in a module,"The software does not handle or incorrectly handles when it has insufficient privileges to perform an operation, leading to resultant weaknesses." +ACERT,CWE-276,CWE-276 (Incorrect Default Permissions) is present in a module,"During installation, installed file permissions are set to allow anyone to modify those files." +ACERT,CWE-277,CWE-277 (Insecure Inherited Permissions) is present in a module,A product defines a set of insecure permissions that are inherited by objects that are created by the program. +ACERT,CWE-278,CWE-278 (Insecure Preserved Inherited Permissions) is present in a module,"A product inherits a set of insecure permissions for an object, e.g. when copying from an archive file, without user awareness or involvement." +ACERT,CWE-279,CWE-279 (Incorrect Execution-Assigned Permissions) is present in a module,"While it is executing, the software sets the permissions of an object in a way that violates the intended permissions that have been specified by the user." +ACERT,CWE-280,CWE-280 (Improper Handling of Insufficient Permissions or Privileges ) is present in a module,The application does not handle or incorrectly handles when it has insufficient privileges to access resources or functionality as specified by their permissions. This may cause it to follow unexpected code paths that may leave the application in an invalid state. +ACERT,CWE-281,CWE-281 (Improper Preservation of Permissions) is present in a module,"The software does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended." +ACERT,CWE-282,CWE-282 (Improper Ownership Management) is present in a module,"The software assigns the wrong ownership, or does not properly verify the ownership, of an object or resource." +ACERT,CWE-283,CWE-283 (Unverified Ownership) is present in a module,The software does not properly verify that a critical resource is owned by the proper entity. +ACERT,CWE-284,CWE-284 (Improper Access Control) is present in a module,The software does not restrict or incorrectly restricts access to a resource from an unauthorized actor. +ACERT,CWE-285,CWE-285 (Improper Authorization) is present in a module,The software does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. +ACERT,CWE-286,CWE-286 (Incorrect User Management) is present in a module,The software does not properly manage a user within its environment. +ACERT,CWE-287,CWE-287 (Improper Authentication) is present in a module,"When an actor claims to have a given identity, the software does not prove or insufficiently proves that the claim is correct." +ACERT,CWE-288,CWE-288 (Authentication Bypass Using an Alternate Path or Channel) is present in a module,"A product requires authentication, but the product has an alternate path or channel that does not require authentication." +ACERT,CWE-289,CWE-289 (Authentication Bypass by Alternate Name) is present in a module,"The software performs authentication based on the name of a resource being accessed, or the name of the actor performing the access, but it does not properly check all possible names for that resource or actor." +ACERT,CWE-290,CWE-290 (Authentication Bypass by Spoofing) is present in a module,This attack-focused weakness is caused by improperly implemented authentication schemes that are subject to spoofing attacks. +ACERT,CWE-291,CWE-291 (Reliance on IP Address for Authentication) is present in a module,The software uses an IP address for authentication. +ACERT,CWE-293,CWE-293 (Using Referer Field for Authentication) is present in a module,"The referer field in HTTP requests can be easily modified and, as such, is not a valid means of message integrity checking." +ACERT,CWE-294,CWE-294 (Authentication Bypass by Capture-replay) is present in a module,A capture-replay flaw exists when the design of the software makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes). +ACERT,CWE-295,CWE-295 (Improper Certificate Validation) is present in a module,"The software does not validate, or incorrectly validates, a certificate." +ACERT,CWE-296,CWE-296 (Improper Following of a Certificate's Chain of Trust) is present in a module,"The software does not follow, or incorrectly follows, the chain of trust for a certificate back to a trusted root certificate, resulting in incorrect trust of any resource that is associated with that certificate." +ACERT,CWE-297,CWE-297 (Improper Validation of Certificate with Host Mismatch) is present in a module,"The software communicates with a host that provides a certificate, but the software does not properly ensure that the certificate is actually associated with that host." +ACERT,CWE-298,CWE-298 (Improper Validation of Certificate Expiration) is present in a module,"A certificate expiration is not validated or is incorrectly validated, so trust may be assigned to certificates that have been abandoned due to age." +ACERT,CWE-299,CWE-299 (Improper Check for Certificate Revocation) is present in a module,"The software does not check or incorrectly checks the revocation status of a certificate, which may cause it to use a certificate that has been compromised." +ACERT,CWE-300,CWE-300 (Channel Accessible by Non-Endpoint) is present in a module,"The product does not adequately verify the identity of actors at both ends of a communication channel, or does not adequately ensure the integrity of the channel, in a way that allows the channel to be accessed or influenced by an actor that is not an endpoint." +ACERT,CWE-301,CWE-301 (Reflection Attack in an Authentication Protocol) is present in a module,Simple authentication protocols are subject to reflection attacks if a malicious user can use the target machine to impersonate a trusted user. +ACERT,CWE-302,CWE-302 (Authentication Bypass by Assumed-Immutable Data) is present in a module,"The authentication scheme or implementation uses key data elements that are assumed to be immutable, but can be controlled or modified by the attacker." +ACERT,CWE-303,CWE-303 (Incorrect Implementation of Authentication Algorithm) is present in a module,"The requirements for the software dictate the use of an established authentication algorithm, but the implementation of the algorithm is incorrect." +ACERT,CWE-304,CWE-304 (Missing Critical Step in Authentication) is present in a module,"The software implements an authentication technique, but it skips a step that weakens the technique." +ACERT,CWE-305,CWE-305 (Authentication Bypass by Primary Weakness) is present in a module,"The authentication algorithm is sound, but the implemented mechanism can be bypassed as the result of a separate weakness that is primary to the authentication error." +ACERT,CWE-306,CWE-306 (Missing Authentication for Critical Function) is present in a module,The software does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. +ACERT,CWE-307,CWE-307 (Improper Restriction of Excessive Authentication Attempts) is present in a module,"The software does not implement sufficient measures to prevent multiple failed authentication attempts within in a short time frame, making it more susceptible to brute force attacks." +ACERT,CWE-308,CWE-308 (Use of Single-factor Authentication) is present in a module,The use of single-factor authentication can lead to unnecessary risk of compromise when compared with the benefits of a dual-factor authentication scheme. +ACERT,CWE-309,CWE-309 (Use of Password System for Primary Authentication) is present in a module,"The use of password systems as the primary means of authentication may be subject to several flaws or shortcomings, each reducing the effectiveness of the mechanism." +ACERT,CWE-311,CWE-311 (Missing Encryption of Sensitive Data) is present in a module,The software does not encrypt sensitive or critical information before storage or transmission. +ACERT,CWE-312,CWE-312 (Cleartext Storage of Sensitive Information) is present in a module,The application stores sensitive information in cleartext within a resource that might be accessible to another control sphere. +ACERT,CWE-313,CWE-313 (Cleartext Storage in a File or on Disk) is present in a module,"The application stores sensitive information in cleartext in a file, or on disk." +ACERT,CWE-314,CWE-314 (Cleartext Storage in the Registry) is present in a module,The application stores sensitive information in cleartext in the registry. +ACERT,CWE-315,CWE-315 (Cleartext Storage of Sensitive Information in a Cookie) is present in a module,The application stores sensitive information in cleartext in a cookie. +ACERT,CWE-316,CWE-316 (Cleartext Storage of Sensitive Information in Memory) is present in a module,The application stores sensitive information in cleartext in memory. +ACERT,CWE-317,CWE-317 (Cleartext Storage of Sensitive Information in GUI) is present in a module,The application stores sensitive information in cleartext within the GUI. +ACERT,CWE-318,CWE-318 (Cleartext Storage of Sensitive Information in Executable) is present in a module,The application stores sensitive information in cleartext in an executable. +ACERT,CWE-319,CWE-319 (Cleartext Transmission of Sensitive Information) is present in a module,The software transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. +ACERT,CWE-321,CWE-321 (Use of Hard-coded Cryptographic Key) is present in a module,The use of a hard-coded cryptographic key significantly increases the possibility that encrypted data may be recovered. +ACERT,CWE-322,CWE-322 (Key Exchange without Entity Authentication) is present in a module,The software performs a key exchange with an actor without verifying the identity of that actor. +ACERT,CWE-323,"CWE-323 (Reusing a Nonce, Key Pair in Encryption) is present in a module",Nonces should be used for the present occasion and only once. +ACERT,CWE-324,CWE-324 (Use of a Key Past its Expiration Date) is present in a module,"The product uses a cryptographic key or password past its expiration date, which diminishes its safety significantly by increasing the timing window for cracking attacks against that key." +ACERT,CWE-325,CWE-325 (Missing Cryptographic Step) is present in a module,"The product does not implement a required step in a cryptographic algorithm, resulting in weaker encryption than advertised by the algorithm." +ACERT,CWE-326,CWE-326 (Inadequate Encryption Strength) is present in a module,"The software stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required." +ACERT,CWE-327,CWE-327 (Use of a Broken or Risky Cryptographic Algorithm) is present in a module,The use of a broken or risky cryptographic algorithm is an unnecessary risk that may result in the exposure of sensitive information. +ACERT,CWE-328,CWE-328 (Use of Weak Hash) is present in a module,"The product uses an algorithm that produces a digest (output value) that does not meet security expectations for a hash function that allows an adversary to reasonably determine the original input (preimage attack), find another input that can produce the same hash (2nd preimage attack), or find multiple inputs that evaluate to the same hash (birthday attack)." +ACERT,CWE-329,CWE-329 (Generation of Predictable IV with CBC Mode) is present in a module,"The product generates and uses a predictable initialization Vector (IV) with Cipher Block Chaining (CBC) Mode, which causes algorithms to be susceptible to dictionary attacks when they are encrypted under the same key." +ACERT,CWE-330,CWE-330 (Use of Insufficiently Random Values) is present in a module,The software uses insufficiently random numbers or values in a security context that depends on unpredictable numbers. +ACERT,CWE-331,CWE-331 (Insufficient Entropy) is present in a module,"The software uses an algorithm or scheme that produces insufficient entropy, leaving patterns or clusters of values that are more likely to occur than others." +ACERT,CWE-332,CWE-332 (Insufficient Entropy in PRNG) is present in a module,"The lack of entropy available for, or used by, a Pseudo-Random Number Generator (PRNG) can be a stability and security threat." +ACERT,CWE-333,CWE-333 (Improper Handling of Insufficient Entropy in TRNG) is present in a module,True random number generators (TRNG) generally have a limited source of entropy and therefore can fail or block. +ACERT,CWE-334,CWE-334 (Small Space of Random Values) is present in a module,"The number of possible random values is smaller than needed by the product, making it more susceptible to brute force attacks." +ACERT,CWE-335,CWE-335 (Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)) is present in a module,The software uses a Pseudo-Random Number Generator (PRNG) but does not correctly manage seeds. +ACERT,CWE-336,CWE-336 (Same Seed in Pseudo-Random Number Generator (PRNG)) is present in a module,A Pseudo-Random Number Generator (PRNG) uses the same seed each time the product is initialized. +ACERT,CWE-337,CWE-337 (Predictable Seed in Pseudo-Random Number Generator (PRNG)) is present in a module,"A Pseudo-Random Number Generator (PRNG) is initialized from a predictable seed, such as the process ID or system time." +ACERT,CWE-338,CWE-338 (Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) is present in a module,"The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong." +ACERT,CWE-339,CWE-339 (Small Seed Space in PRNG) is present in a module,"A Pseudo-Random Number Generator (PRNG) uses a relatively small seed space, which makes it more susceptible to brute force attacks." +ACERT,CWE-340,CWE-340 (Generation of Predictable Numbers or Identifiers) is present in a module,The product uses a scheme that generates numbers or identifiers that are more predictable than required. +ACERT,CWE-341,CWE-341 (Predictable from Observable State) is present in a module,"A number or object is predictable based on observations that the attacker can make about the state of the system or network, such as time, process ID, etc." +ACERT,CWE-342,CWE-342 (Predictable Exact Value from Previous Values) is present in a module,An exact value or random number can be precisely predicted by observing previous values. +ACERT,CWE-343,CWE-343 (Predictable Value Range from Previous Values) is present in a module,"The software's random number generator produces a series of values which, when observed, can be used to infer a relatively small range of possibilities for the next value that could be generated." +ACERT,CWE-344,CWE-344 (Use of Invariant Value in Dynamically Changing Context) is present in a module,"The product uses a constant value, name, or reference, but this value can (or should) vary across different environments." +ACERT,CWE-345,CWE-345 (Insufficient Verification of Data Authenticity) is present in a module,"The software does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data." +ACERT,CWE-346,CWE-346 (Origin Validation Error) is present in a module,The software does not properly verify that the source of data or communication is valid. +ACERT,CWE-347,CWE-347 (Improper Verification of Cryptographic Signature) is present in a module,"The software does not verify, or incorrectly verifies, the cryptographic signature for data." +ACERT,CWE-348,CWE-348 (Use of Less Trusted Source) is present in a module,"The software has two different sources of the same data or information, but it uses the source that has less support for verification, is less trusted, or is less resistant to attack." +ACERT,CWE-349,CWE-349 (Acceptance of Extraneous Untrusted Data With Trusted Data) is present in a module,"The software, when processing trusted data, accepts any untrusted data that is also included with the trusted data, treating the untrusted data as if it were trusted." +ACERT,CWE-350,CWE-350 (Reliance on Reverse DNS Resolution for a Security-Critical Action) is present in a module,"The software performs reverse DNS resolution on an IP address to obtain the hostname and make a security decision, but it does not properly ensure that the IP address is truly associated with the hostname." +ACERT,CWE-351,CWE-351 (Insufficient Type Distinction) is present in a module,The software does not properly distinguish between different types of elements in a way that leads to insecure behavior. +ACERT,CWE-352,CWE-352 (Cross-Site Request Forgery (CSRF)) is present in a module,"The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request." +ACERT,CWE-353,CWE-353 (Missing Support for Integrity Check) is present in a module,"The software uses a transmission protocol that does not include a mechanism for verifying the integrity of the data during transmission, such as a checksum." +ACERT,CWE-354,CWE-354 (Improper Validation of Integrity Check Value) is present in a module,The software does not validate or incorrectly validates the integrity check values or checksums of a message. This may prevent it from detecting if the data has been modified or corrupted in transmission. +ACERT,CWE-356,CWE-356 (Product UI does not Warn User of Unsafe Actions) is present in a module,The software's user interface does not warn the user before undertaking an unsafe action on behalf of that user. This makes it easier for attackers to trick users into inflicting damage to their system. +ACERT,CWE-357,CWE-357 (Insufficient UI Warning of Dangerous Operations) is present in a module,"The user interface provides a warning to a user regarding dangerous or sensitive operations, but the warning is not noticeable enough to warrant attention." +ACERT,CWE-358,CWE-358 (Improperly Implemented Security Check for Standard) is present in a module,"The software does not implement or incorrectly implements one or more security-relevant checks as specified by the design of a standardized algorithm, protocol, or technique." +ACERT,CWE-359,CWE-359 (Exposure of Private Personal Information to an Unauthorized Actor) is present in a module,"The product does not properly prevent a person's private, personal information from being accessed by actors who either (1) are not explicitly authorized to access the information or (2) do not have the implicit consent of the person about whom the information is collected." +ACERT,CWE-360,CWE-360 (Trust of System Event Data) is present in a module,Security based on event locations are insecure and can be spoofed. +ACERT,CWE-362,CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) is present in a module,"The program contains a code sequence that can run concurrently with other code, and the code sequence requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence that is operating concurrently." +ACERT,CWE-363,CWE-363 (Race Condition Enabling Link Following) is present in a module,"The software checks the status of a file or directory before accessing it, which produces a race condition in which the file can be replaced with a link before the access is performed, causing the software to access the wrong file." +ACERT,CWE-364,CWE-364 (Signal Handler Race Condition) is present in a module,The software uses a signal handler that introduces a race condition. +ACERT,CWE-365,CWE-365 (Race Condition in Switch) is present in a module,"The code contains a switch statement in which the switched variable can be modified while the switch is still executing, resulting in unexpected behavior." +ACERT,CWE-366,CWE-366 (Race Condition within a Thread) is present in a module,"If two threads of execution use a resource simultaneously, there exists the possibility that resources may be used while invalid, in turn making the state of execution undefined." +ACERT,CWE-367,CWE-367 (Time-of-check Time-of-use (TOCTOU) Race Condition) is present in a module,"The software checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. This can cause the software to perform invalid actions when the resource is in an unexpected state." +ACERT,CWE-368,CWE-368 (Context Switching Race Condition) is present in a module,"A product performs a series of non-atomic actions to switch between contexts that cross privilege or other security boundaries, but a race condition allows an attacker to modify or misrepresent the product's behavior during the switch." +ACERT,CWE-369,CWE-369 (Divide By Zero) is present in a module,The product divides a value by zero. +ACERT,CWE-370,CWE-370 (Missing Check for Certificate Revocation after Initial Check) is present in a module,"The software does not check the revocation status of a certificate after its initial revocation check, which can cause the software to perform privileged actions even after the certificate is revoked at a later time." +ACERT,CWE-372,CWE-372 (Incomplete Internal State Distinction) is present in a module,"The software does not properly determine which state it is in, causing it to assume it is in state X when in fact it is in state Y, causing it to perform incorrect operations in a security-relevant manner." +ACERT,CWE-374,CWE-374 (Passing Mutable Objects to an Untrusted Method) is present in a module,The program sends non-cloned mutable data as an argument to a method or function. +ACERT,CWE-375,CWE-375 (Returning a Mutable Object to an Untrusted Caller) is present in a module,Sending non-cloned mutable data as a return value may result in that data being altered or deleted by the calling function. +ACERT,CWE-377,CWE-377 (Insecure Temporary File) is present in a module,Creating and using insecure temporary files can leave application and system data vulnerable to attack. +ACERT,CWE-378,CWE-378 (Creation of Temporary File With Insecure Permissions) is present in a module,"Opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack." +ACERT,CWE-379,CWE-379 (Creation of Temporary File in Directory with Insecure Permissions) is present in a module,The software creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file. +ACERT,CWE-382,CWE-382 (J2EE Bad Practices: Use of System.exit()) is present in a module,"A J2EE application uses System.exit(), which also shuts down its container." +ACERT,CWE-383,CWE-383 (J2EE Bad Practices: Direct Use of Threads) is present in a module,Thread management in a Web application is forbidden in some circumstances and is always highly error prone. +ACERT,CWE-384,CWE-384 (Session Fixation) is present in a module,"Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions." +ACERT,CWE-385,CWE-385 (Covert Timing Channel) is present in a module,"Covert timing channels convey information by modulating some aspect of system behavior over time, so that the program receiving the information can observe system behavior and infer protected information." +ACERT,CWE-386,CWE-386 (Symbolic Name not Mapping to Correct Object) is present in a module,"A constant symbolic reference to an object is used, even though the reference can resolve to a different object over time." +ACERT,CWE-390,CWE-390 (Detection of Error Condition Without Action) is present in a module,"The software detects a specific error, but takes no actions to handle the error." +ACERT,CWE-391,CWE-391 (Unchecked Error Condition) is present in a module,"[PLANNED FOR DEPRECATION. SEE MAINTENANCE NOTES AND CONSIDER CWE-252, CWE-248, OR CWE-1069.] Ignoring exceptions and other error conditions may allow an attacker to induce unexpected behavior unnoticed." +ACERT,CWE-392,CWE-392 (Missing Report of Error Condition) is present in a module,The software encounters an error but does not provide a status code or return value to indicate that an error has occurred. +ACERT,CWE-393,CWE-393 (Return of Wrong Status Code) is present in a module,"A function or operation returns an incorrect return value or status code that does not indicate an error, but causes the product to modify its behavior based on the incorrect result." +ACERT,CWE-394,CWE-394 (Unexpected Status Code or Return Value) is present in a module,"The software does not properly check when a function or operation returns a value that is legitimate for the function, but is not expected by the software." +ACERT,CWE-395,CWE-395 (Use of NullPointerException Catch to Detect NULL Pointer Dereference) is present in a module,Catching NullPointerException should not be used as an alternative to programmatic checks to prevent dereferencing a null pointer. +ACERT,CWE-396,CWE-396 (Declaration of Catch for Generic Exception) is present in a module,Catching overly broad exceptions promotes complex error handling code that is more likely to contain security vulnerabilities. +ACERT,CWE-397,CWE-397 (Declaration of Throws for Generic Exception) is present in a module,Throwing overly broad exceptions promotes complex error handling code that is more likely to contain security vulnerabilities. +ACERT,CWE-400,CWE-400 (Uncontrolled Resource Consumption) is present in a module,"The software does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources." +ACERT,CWE-401,CWE-401 (Missing Release of Memory after Effective Lifetime) is present in a module,"The software does not sufficiently track and release allocated memory after it has been used, which slowly consumes remaining memory." +ACERT,CWE-402,CWE-402 (Transmission of Private Resources into a New Sphere ('Resource Leak')) is present in a module,The software makes resources available to untrusted parties when those resources are only intended to be accessed by the software. +ACERT,CWE-403,CWE-403 (Exposure of File Descriptor to Unintended Control Sphere ('File Descriptor Leak')) is present in a module,"A process does not close sensitive file descriptors before invoking a child process, which allows the child to perform unauthorized I/O operations using those descriptors." +ACERT,CWE-404,CWE-404 (Improper Resource Shutdown or Release) is present in a module,The program does not release or incorrectly releases a resource before it is made available for re-use. +ACERT,CWE-405,CWE-405 (Asymmetric Resource Consumption (Amplification)) is present in a module,Software that does not appropriately monitor or control resource consumption can lead to adverse system performance. +ACERT,CWE-406,CWE-406 (Insufficient Control of Network Message Volume (Network Amplification)) is present in a module,"The software does not sufficiently monitor or control transmitted network traffic volume, so that an actor can cause the software to transmit more traffic than should be allowed for that actor." +ACERT,CWE-407,CWE-407 (Inefficient Algorithmic Complexity) is present in a module,"An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached." +ACERT,CWE-408,CWE-408 (Incorrect Behavior Order: Early Amplification) is present in a module,The software allows an entity to perform a legitimate but expensive operation before authentication or authorization has taken place. +ACERT,CWE-409,CWE-409 (Improper Handling of Highly Compressed Data (Data Amplification)) is present in a module,The software does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output. +ACERT,CWE-410,CWE-410 (Insufficient Resource Pool) is present in a module,"The software's resource pool is not large enough to handle peak demand, which allows an attacker to prevent others from accessing the resource by using a (relatively) large number of requests for resources." +ACERT,CWE-412,CWE-412 (Unrestricted Externally Accessible Lock) is present in a module,"The software properly checks for the existence of a lock, but the lock can be externally controlled or influenced by an actor that is outside of the intended sphere of control." +ACERT,CWE-413,CWE-413 (Improper Resource Locking) is present in a module,The software does not lock or does not correctly lock a resource when the software must have exclusive access to the resource. +ACERT,CWE-414,CWE-414 (Missing Lock Check) is present in a module,A product does not check to see if a lock is present before performing sensitive operations on a resource. +ACERT,CWE-415,CWE-415 (Double Free) is present in a module,"The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations." +ACERT,CWE-416,CWE-416 (Use After Free) is present in a module,"Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code." +ACERT,CWE-419,CWE-419 (Unprotected Primary Channel) is present in a module,"The software uses a primary channel for administration or restricted functionality, but it does not properly protect the channel." +ACERT,CWE-420,CWE-420 (Unprotected Alternate Channel) is present in a module,"The software protects a primary channel, but it does not use the same level of protection for an alternate channel." +ACERT,CWE-421,CWE-421 (Race Condition During Access to Alternate Channel) is present in a module,"The product opens an alternate channel to communicate with an authorized user, but the channel is accessible to other actors." +ACERT,CWE-422,CWE-422 (Unprotected Windows Messaging Channel ('Shatter')) is present in a module,"The software does not properly verify the source of a message in the Windows Messaging System while running at elevated privileges, creating an alternate channel through which an attacker can directly send a message to the product." +ACERT,CWE-424,CWE-424 (Improper Protection of Alternate Path) is present in a module,The product does not sufficiently protect all possible paths that a user can take to access restricted functionality or resources. +ACERT,CWE-425,CWE-425 (Direct Request ('Forced Browsing')) is present in a module,"The web application does not adequately enforce appropriate authorization on all restricted URLs, scripts, or files." +ACERT,CWE-426,CWE-426 (Untrusted Search Path) is present in a module,The application searches for critical resources using an externally-supplied search path that can point to resources that are not under the application's direct control. +ACERT,CWE-427,CWE-427 (Uncontrolled Search Path Element) is present in a module,"The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors." +ACERT,CWE-428,CWE-428 (Unquoted Search Path or Element) is present in a module,"The product uses a search path that contains an unquoted element, in which the element contains whitespace or other separators. This can cause the product to access resources in a parent path." +ACERT,CWE-430,CWE-430 (Deployment of Wrong Handler) is present in a module,The wrong handler is assigned to process an object. +ACERT,CWE-431,CWE-431 (Missing Handler) is present in a module,A handler is not available or implemented. +ACERT,CWE-432,CWE-432 (Dangerous Signal Handler not Disabled During Sensitive Operations) is present in a module,"The application uses a signal handler that shares state with other signal handlers, but it does not properly mask or prevent those signal handlers from being invoked while the original signal handler is still running." +ACERT,CWE-433,CWE-433 (Unparsed Raw Web Content Delivery) is present in a module,The software stores raw content or supporting code under the web document root with an extension that is not specifically handled by the server. +ACERT,CWE-434,CWE-434 (Unrestricted Upload of File with Dangerous Type) is present in a module,The software allows the attacker to upload or transfer files of dangerous types that can be automatically processed within the product's environment. +ACERT,CWE-435,CWE-435 (Improper Interaction Between Multiple Correctly-Behaving Entities) is present in a module,"An interaction error occurs when two entities have correct behavior when running independently of each other, but when they are integrated as components in a larger system or process, they introduce incorrect behaviors that may cause resultant weaknesses." +ACERT,CWE-436,CWE-436 (Interpretation Conflict) is present in a module,"Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state." +ACERT,CWE-437,CWE-437 (Incomplete Model of Endpoint Features) is present in a module,"A product acts as an intermediary or monitor between two or more endpoints, but it does not have a complete model of an endpoint's features, behaviors, or state, potentially causing the product to perform incorrect actions based on this incomplete model." +ACERT,CWE-439,CWE-439 (Behavioral Change in New Version or Environment) is present in a module,"A's behavior or functionality changes with a new version of A, or a new environment, which is not known (or manageable) by B." +ACERT,CWE-440,CWE-440 (Expected Behavior Violation) is present in a module,"A feature, API, or function does not perform according to its specification." +ACERT,CWE-441,CWE-441 (Unintended Proxy or Intermediary ('Confused Deputy')) is present in a module,"The product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere. This causes the product to appear to be the source of the request, leading it to act as a proxy or other intermediary between the upstream component and the external actor." +ACERT,CWE-444,CWE-444 (Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')) is present in a module,"When malformed or abnormal HTTP requests are interpreted by one or more entities in the data flow between the user and the web server, such as a proxy or firewall, they can be interpreted inconsistently, allowing the attacker to smuggle a request to one device without the other device being aware of it." +ACERT,CWE-446,CWE-446 (UI Discrepancy for Security Feature) is present in a module,"The user interface does not correctly enable or configure a security feature, but the interface provides feedback that causes the user to believe that the feature is in a secure state." +ACERT,CWE-447,CWE-447 (Unimplemented or Unsupported Feature in UI) is present in a module,"A UI function for a security feature appears to be supported and gives feedback to the user that suggests that it is supported, but the underlying functionality is not implemented." +ACERT,CWE-448,CWE-448 (Obsolete Feature in UI) is present in a module,A UI function is obsolete and the product does not warn the user. +ACERT,CWE-449,CWE-449 (The UI Performs the Wrong Action) is present in a module,The UI performs the wrong action with respect to the user's request. +ACERT,CWE-450,CWE-450 (Multiple Interpretations of UI Input) is present in a module,The UI has multiple interpretations of user input but does not prompt the user when it selects the less secure interpretation. +ACERT,CWE-451,CWE-451 (User Interface (UI) Misrepresentation of Critical Information) is present in a module,"The user interface (UI) does not properly represent critical information to the user, allowing the information - or its source - to be obscured or spoofed. This is often a component in phishing attacks." +ACERT,CWE-453,CWE-453 (Insecure Default Variable Initialization) is present in a module,"The software, by default, initializes an internal variable with an insecure or less secure value than is possible." +ACERT,CWE-454,CWE-454 (External Initialization of Trusted Variables or Data Stores) is present in a module,The software initializes critical internal variables or data stores using inputs that can be modified by untrusted actors. +ACERT,CWE-455,CWE-455 (Non-exit on Failed Initialization) is present in a module,"The software does not exit or otherwise modify its operation when security-relevant errors occur during initialization, such as when a configuration file has a format error, which can cause the software to execute in a less secure fashion than intended by the administrator." +ACERT,CWE-456,CWE-456 (Missing Initialization of a Variable) is present in a module,"The software does not initialize critical variables, which causes the execution environment to use unexpected values." +ACERT,CWE-457,CWE-457 (Use of Uninitialized Variable) is present in a module,"The code uses a variable that has not been initialized, leading to unpredictable or unintended results." +ACERT,CWE-459,CWE-459 (Incomplete Cleanup) is present in a module,The software does not properly clean up and remove temporary or supporting resources after they have been used. +ACERT,CWE-460,CWE-460 (Improper Cleanup on Thrown Exception) is present in a module,"The product does not clean up its state or incorrectly cleans up its state when an exception is thrown, leading to unexpected state or control flow." +ACERT,CWE-462,CWE-462 (Duplicate Key in Associative List (Alist)) is present in a module,Duplicate keys in associative lists can lead to non-unique keys being mistaken for an error. +ACERT,CWE-463,CWE-463 (Deletion of Data Structure Sentinel) is present in a module,The accidental deletion of a data-structure sentinel can cause serious programming logic problems. +ACERT,CWE-464,CWE-464 (Addition of Data Structure Sentinel) is present in a module,The accidental addition of a data-structure sentinel can cause serious programming logic problems. +ACERT,CWE-466,CWE-466 (Return of Pointer Value Outside of Expected Range) is present in a module,A function can return a pointer to memory that is outside of the buffer that the pointer is expected to reference. +ACERT,CWE-467,CWE-467 (Use of sizeof() on a Pointer Type) is present in a module,"The code calls sizeof() on a malloced pointer type, which always returns the wordsize/8. This can produce an unexpected result if the programmer intended to determine how much memory has been allocated." +ACERT,CWE-468,CWE-468 (Incorrect Pointer Scaling) is present in a module,"In C and C++, one may often accidentally refer to the wrong memory due to the semantics of when math operations are implicitly scaled." +ACERT,CWE-469,CWE-469 (Use of Pointer Subtraction to Determine Size) is present in a module,"The application subtracts one pointer from another in order to determine size, but this calculation can be incorrect if the pointers do not exist in the same memory chunk." +ACERT,CWE-470,CWE-470 (Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')) is present in a module,"The application uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code." +ACERT,CWE-471,CWE-471 (Modification of Assumed-Immutable Data (MAID)) is present in a module,The software does not properly protect an assumed-immutable element from being modified by an attacker. +ACERT,CWE-472,CWE-472 (External Control of Assumed-Immutable Web Parameter) is present in a module,"The web application does not sufficiently verify inputs that are assumed to be immutable but are actually externally controllable, such as hidden form fields." +ACERT,CWE-473,CWE-473 (PHP External Variable Modification) is present in a module,"A PHP application does not properly protect against the modification of variables from external sources, such as query parameters or cookies. This can expose the application to numerous weaknesses that would not exist otherwise." +ACERT,CWE-474,CWE-474 (Use of Function with Inconsistent Implementations) is present in a module,The code uses a function that has inconsistent implementations across operating systems and versions. +ACERT,CWE-475,CWE-475 (Undefined Behavior for Input to API) is present in a module,The behavior of this function is undefined unless its control parameter is set to a specific value. +ACERT,CWE-476,CWE-476 (NULL Pointer Dereference) is present in a module,"A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit." +ACERT,CWE-477,CWE-477 (Use of Obsolete Function) is present in a module,"The code uses deprecated or obsolete functions, which suggests that the code has not been actively reviewed or maintained." +ACERT,CWE-478,CWE-478 (Missing Default Case in Switch Statement) is present in a module,"The code does not have a default case in a switch statement, which might lead to complex logical errors and resultant weaknesses." +ACERT,CWE-479,CWE-479 (Signal Handler Use of a Non-reentrant Function) is present in a module,The program defines a signal handler that calls a non-reentrant function. +ACERT,CWE-480,CWE-480 (Use of Incorrect Operator) is present in a module,"The programmer accidentally uses the wrong operator, which changes the application logic in security-relevant ways." +ACERT,CWE-481,CWE-481 (Assigning instead of Comparing) is present in a module,The code uses an operator for assignment when the intention was to perform a comparison. +ACERT,CWE-482,CWE-482 (Comparing instead of Assigning) is present in a module,The code uses an operator for comparison when the intention was to perform an assignment. +ACERT,CWE-483,CWE-483 (Incorrect Block Delimitation) is present in a module,"The code does not explicitly delimit a block that is intended to contain 2 or more statements, creating a logic error." +ACERT,CWE-484,CWE-484 (Omitted Break Statement in Switch) is present in a module,"The program omits a break statement within a switch or similar construct, causing code associated with multiple conditions to execute. This can cause problems when the programmer only intended to execute code associated with one condition." +ACERT,CWE-486,CWE-486 (Comparison of Classes by Name) is present in a module,"The program compares classes by name, which can cause it to use the wrong class when multiple classes can have the same name." +ACERT,CWE-487,CWE-487 (Reliance on Package-level Scope) is present in a module,"Java packages are not inherently closed; therefore, relying on them for code security is not a good practice." +ACERT,CWE-488,CWE-488 (Exposure of Data Element to Wrong Session) is present in a module,"The product does not sufficiently enforce boundaries between the states of different sessions, causing data to be provided to, or used by, the wrong session." +ACERT,CWE-489,CWE-489 (Active Debug Code) is present in a module,"The application is deployed to unauthorized actors with debugging code still enabled or active, which can create unintended entry points or expose sensitive information." +ACERT,CWE-491,CWE-491 (Public cloneable() Method Without Final ('Object Hijack')) is present in a module,"A class has a cloneable() method that is not declared final, which allows an object to be created without calling the constructor. This can cause the object to be in an unexpected state." +ACERT,CWE-492,CWE-492 (Use of Inner Class Containing Sensitive Data) is present in a module,Inner classes are translated into classes that are accessible at package scope and may expose code that the programmer intended to keep private to attackers. +ACERT,CWE-493,CWE-493 (Critical Public Variable Without Final Modifier) is present in a module,"The product has a critical public variable that is not final, which allows the variable to be modified to contain unexpected values." +ACERT,CWE-494,CWE-494 (Download of Code Without Integrity Check) is present in a module,The product downloads source code or an executable from a remote location and executes the code without sufficiently verifying the origin and integrity of the code. +ACERT,CWE-495,CWE-495 (Private Data Structure Returned From A Public Method) is present in a module,"The product has a method that is declared public, but returns a reference to a private data structure, which could then be modified in unexpected ways." +ACERT,CWE-496,CWE-496 (Public Data Assigned to Private Array-Typed Field) is present in a module,Assigning public data to a private array is equivalent to giving public access to the array. +ACERT,CWE-497,CWE-497 (Exposure of Sensitive System Information to an Unauthorized Control Sphere) is present in a module,The application does not properly prevent sensitive system-level information from being accessed by unauthorized actors who do not have the same level of access to the underlying system as the application does. +ACERT,CWE-498,CWE-498 (Cloneable Class Containing Sensitive Information) is present in a module,"The code contains a class with sensitive data, but the class is cloneable. The data can then be accessed by cloning the class." +ACERT,CWE-499,CWE-499 (Serializable Class Containing Sensitive Data) is present in a module,"The code contains a class with sensitive data, but the class does not explicitly deny serialization. The data can be accessed by serializing the class through another class." +ACERT,CWE-500,CWE-500 (Public Static Field Not Marked Final) is present in a module,"An object contains a public static field that is not marked final, which might allow it to be modified in unexpected ways." +ACERT,CWE-501,CWE-501 (Trust Boundary Violation) is present in a module,The product mixes trusted and untrusted data in the same data structure or structured message. +ACERT,CWE-502,CWE-502 (Deserialization of Untrusted Data) is present in a module,The application deserializes untrusted data without sufficiently verifying that the resulting data will be valid. +ACERT,CWE-506,CWE-506 (Embedded Malicious Code) is present in a module,The application contains code that appears to be malicious in nature. +ACERT,CWE-507,CWE-507 (Trojan Horse) is present in a module,"The software appears to contain benign or useful functionality, but it also contains code that is hidden from normal operation that violates the intended security policy of the user or the system administrator." +ACERT,CWE-508,CWE-508 (Non-Replicating Malicious Code) is present in a module,Non-replicating malicious code only resides on the target system or software that is attacked; it does not attempt to spread to other systems. +ACERT,CWE-509,CWE-509 (Replicating Malicious Code (Virus or Worm)) is present in a module,"Replicating malicious code, including viruses and worms, will attempt to attack other systems once it has successfully compromised the target system or software." +ACERT,CWE-510,CWE-510 (Trapdoor) is present in a module,"A trapdoor is a hidden piece of code that responds to a special input, allowing its user access to resources without passing through the normal security enforcement mechanism." +ACERT,CWE-511,CWE-511 (Logic/Time Bomb) is present in a module,"The software contains code that is designed to disrupt the legitimate operation of the software (or its environment) when a certain time passes, or when a certain logical condition is met." +ACERT,CWE-512,CWE-512 (Spyware) is present in a module,"The software collects personally identifiable information about a human user or the user's activities, but the software accesses this information using other resources besides itself, and it does not require that user's explicit approval or direct input into the software." +ACERT,CWE-514,CWE-514 (Covert Channel) is present in a module,A covert channel is a path that can be used to transfer information in a way not intended by the system's designers. +ACERT,CWE-515,CWE-515 (Covert Storage Channel) is present in a module,A covert storage channel transfers information through the setting of bits by one program and the reading of those bits by another. What distinguishes this case from that of ordinary operation is that the bits are used to convey encoded information. +ACERT,CWE-520,CWE-520 (.NET Misconfiguration: Use of Impersonation) is present in a module,Allowing a .NET application to run at potentially escalated levels of access to the underlying operating and file systems can be dangerous and result in various forms of attacks. +ACERT,CWE-521,CWE-521 (Weak Password Requirements) is present in a module,"The product does not require that users should have strong passwords, which makes it easier for attackers to compromise user accounts." +ACERT,CWE-522,CWE-522 (Insufficiently Protected Credentials) is present in a module,"The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval." +ACERT,CWE-523,CWE-523 (Unprotected Transport of Credentials) is present in a module,Login pages do not use adequate measures to protect the user name and password while they are in transit from the client to the server. +ACERT,CWE-524,CWE-524 (Use of Cache Containing Sensitive Information) is present in a module,"The code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere." +ACERT,CWE-525,CWE-525 (Use of Web Browser Cache Containing Sensitive Information) is present in a module,The web application does not use an appropriate caching policy that specifies the extent to which each web page and associated form fields should be cached. +ACERT,CWE-526,CWE-526 (Exposure of Sensitive Information Through Environmental Variables) is present in a module,Environmental variables may contain sensitive information about a remote server. +ACERT,CWE-527,CWE-527 (Exposure of Version-Control Repository to an Unauthorized Control Sphere) is present in a module,"The product stores a CVS, git, or other repository in a directory, archive, or other resource that is stored, transferred, or otherwise made accessible to unauthorized actors." +ACERT,CWE-528,CWE-528 (Exposure of Core Dump File to an Unauthorized Control Sphere) is present in a module,"The product generates a core dump file in a directory, archive, or other resource that is stored, transferred, or otherwise made accessible to unauthorized actors." +ACERT,CWE-529,CWE-529 (Exposure of Access Control List Files to an Unauthorized Control Sphere) is present in a module,The product stores access control list files in a directory or other container that is accessible to actors outside of the intended control sphere. +ACERT,CWE-530,CWE-530 (Exposure of Backup File to an Unauthorized Control Sphere) is present in a module,A backup file is stored in a directory or archive that is made accessible to unauthorized actors. +ACERT,CWE-531,CWE-531 (Inclusion of Sensitive Information in Test Code) is present in a module,"Accessible test applications can pose a variety of security risks. Since developers or administrators rarely consider that someone besides themselves would even know about the existence of these applications, it is common for them to contain sensitive information or functions." +ACERT,CWE-532,CWE-532 (Insertion of Sensitive Information into Log File) is present in a module,Information written to log files can be of a sensitive nature and give valuable guidance to an attacker or expose sensitive user information. +ACERT,CWE-535,CWE-535 (Exposure of Information Through Shell Error Message) is present in a module,"A command shell error message indicates that there exists an unhandled exception in the web application code. In many cases, an attacker can leverage the conditions that cause these errors in order to gain unauthorized access to the system." +ACERT,CWE-536,CWE-536 (Servlet Runtime Error Message Containing Sensitive Information) is present in a module,A servlet error message indicates that there exists an unhandled exception in your web application code and may provide useful information to an attacker. +ACERT,CWE-537,CWE-537 (Java Runtime Error Message Containing Sensitive Information) is present in a module,"In many cases, an attacker can leverage the conditions that cause unhandled exception errors in order to gain unauthorized access to the system." +ACERT,CWE-538,CWE-538 (Insertion of Sensitive Information into Externally-Accessible File or Directory) is present in a module,"The product places sensitive information into files or directories that are accessible to actors who are allowed to have access to the files, but not to the sensitive information." +ACERT,CWE-539,CWE-539 (Use of Persistent Cookies Containing Sensitive Information) is present in a module,"The web application uses persistent cookies, but the cookies contain sensitive information." +ACERT,CWE-540,CWE-540 (Inclusion of Sensitive Information in Source Code) is present in a module,Source code on a web server or repository often contains sensitive information and should generally not be accessible to users. +ACERT,CWE-541,CWE-541 (Inclusion of Sensitive Information in an Include File) is present in a module,"If an include file source is accessible, the file can contain usernames and passwords, as well as sensitive information pertaining to the application and system." +ACERT,CWE-543,CWE-543 (Use of Singleton Pattern Without Synchronization in a Multithreaded Context) is present in a module,The software uses the singleton pattern when creating a resource within a multithreaded environment. +ACERT,CWE-544,CWE-544 (Missing Standardized Error Handling Mechanism) is present in a module,"The software does not use a standardized method for handling errors throughout the code, which might introduce inconsistent error handling and resultant weaknesses." +ACERT,CWE-546,CWE-546 (Suspicious Comment) is present in a module,"The code contains comments that suggest the presence of bugs, incomplete functionality, or weaknesses." +ACERT,CWE-547,"CWE-547 (Use of Hard-coded, Security-relevant Constants) is present in a module","The program uses hard-coded constants instead of symbolic names for security-critical values, which increases the likelihood of mistakes during code maintenance or security policy change." +ACERT,CWE-548,CWE-548 (Exposure of Information Through Directory Listing) is present in a module,"A directory listing is inappropriately exposed, yielding potentially sensitive information to attackers." +ACERT,CWE-549,CWE-549 (Missing Password Field Masking) is present in a module,"The software does not mask passwords during entry, increasing the potential for attackers to observe and capture passwords." +ACERT,CWE-550,CWE-550 (Server-generated Error Message Containing Sensitive Information) is present in a module,"Certain conditions, such as network failure, will cause a server error message to be displayed." +ACERT,CWE-551,CWE-551 (Incorrect Behavior Order: Authorization Before Parsing and Canonicalization) is present in a module,"If a web server does not fully parse requested URLs before it examines them for authorization, it may be possible for an attacker to bypass authorization protection." +ACERT,CWE-552,CWE-552 (Files or Directories Accessible to External Parties) is present in a module,"The product makes files or directories accessible to unauthorized actors, even though they should not be." +ACERT,CWE-553,CWE-553 (Command Shell in Externally Accessible Directory) is present in a module,A possible shell file exists in /cgi-bin/ or other accessible directories. This is extremely dangerous and can be used by an attacker to execute commands on the web server. +ACERT,CWE-554,CWE-554 (ASP.NET Misconfiguration: Not Using Input Validation Framework) is present in a module,The ASP.NET application does not use an input validation framework. +ACERT,CWE-555,CWE-555 (J2EE Misconfiguration: Plaintext Password in Configuration File) is present in a module,The J2EE application stores a plaintext password in a configuration file. +ACERT,CWE-556,CWE-556 (ASP.NET Misconfiguration: Use of Identity Impersonation) is present in a module,Configuring an ASP.NET application to run with impersonated credentials may give the application unnecessary privileges. +ACERT,CWE-558,CWE-558 (Use of getlogin() in Multithreaded Application) is present in a module,"The application uses the getlogin() function in a multithreaded context, potentially causing it to return incorrect values." +ACERT,CWE-560,CWE-560 (Use of umask() with chmod-style Argument) is present in a module,The product calls umask() with an incorrect argument that is specified as if it is an argument to chmod(). +ACERT,CWE-561,CWE-561 (Dead Code) is present in a module,"The software contains dead code, which can never be executed." +ACERT,CWE-562,CWE-562 (Return of Stack Variable Address) is present in a module,"A function returns the address of a stack variable, which will cause unintended program behavior, typically in the form of a crash." +ACERT,CWE-563,CWE-563 (Assignment to Variable without Use) is present in a module,"The variable's value is assigned but never used, making it a dead store." +ACERT,CWE-564,CWE-564 (SQL Injection: Hibernate) is present in a module,Using Hibernate to execute a dynamic SQL statement built with user-controlled input can allow an attacker to modify the statement's meaning or to execute arbitrary SQL commands. +ACERT,CWE-565,CWE-565 (Reliance on Cookies without Validation and Integrity Checking) is present in a module,"The application relies on the existence or values of cookies when performing security-critical operations, but it does not properly ensure that the setting is valid for the associated user." +ACERT,CWE-566,CWE-566 (Authorization Bypass Through User-Controlled SQL Primary Key) is present in a module,"The software uses a database table that includes records that should not be accessible to an actor, but it executes a SQL statement with a primary key that can be controlled by that actor." +ACERT,CWE-567,CWE-567 (Unsynchronized Access to Shared Data in a Multithreaded Context) is present in a module,"The product does not properly synchronize shared data, such as static variables across threads, which can lead to undefined behavior and unpredictable data changes." +ACERT,CWE-568,CWE-568 (finalize() Method Without super.finalize()) is present in a module,The software contains a finalize() method that does not call super.finalize(). +ACERT,CWE-570,CWE-570 (Expression is Always False) is present in a module,The software contains an expression that will always evaluate to false. +ACERT,CWE-571,CWE-571 (Expression is Always True) is present in a module,The software contains an expression that will always evaluate to true. +ACERT,CWE-572,CWE-572 (Call to Thread run() instead of start()) is present in a module,"The program calls a thread's run() method instead of calling start(), which causes the code to run in the thread of the caller instead of the callee." +ACERT,CWE-573,CWE-573 (Improper Following of Specification by Caller) is present in a module,"The software does not follow or incorrectly follows the specifications as required by the implementation language, environment, framework, protocol, or platform." +ACERT,CWE-574,CWE-574 (EJB Bad Practices: Use of Synchronization Primitives) is present in a module,The program violates the Enterprise JavaBeans (EJB) specification by using thread synchronization primitives. +ACERT,CWE-575,CWE-575 (EJB Bad Practices: Use of AWT Swing) is present in a module,The program violates the Enterprise JavaBeans (EJB) specification by using AWT/Swing. +ACERT,CWE-576,CWE-576 (EJB Bad Practices: Use of Java I/O) is present in a module,The program violates the Enterprise JavaBeans (EJB) specification by using the java.io package. +ACERT,CWE-577,CWE-577 (EJB Bad Practices: Use of Sockets) is present in a module,The program violates the Enterprise JavaBeans (EJB) specification by using sockets. +ACERT,CWE-578,CWE-578 (EJB Bad Practices: Use of Class Loader) is present in a module,The program violates the Enterprise JavaBeans (EJB) specification by using the class loader. +ACERT,CWE-579,CWE-579 (J2EE Bad Practices: Non-serializable Object Stored in Session) is present in a module,"The application stores a non-serializable object as an HttpSession attribute, which can hurt reliability." +ACERT,CWE-580,CWE-580 (clone() Method Without super.clone()) is present in a module,The software contains a clone() method that does not call super.clone() to obtain the new object. +ACERT,CWE-581,CWE-581 (Object Model Violation: Just One of Equals and Hashcode Defined) is present in a module,The software does not maintain equal hashcodes for equal objects. +ACERT,CWE-582,"CWE-582 (Array Declared Public, Final, and Static) is present in a module","The program declares an array public, final, and static, which is not sufficient to prevent the array's contents from being modified." +ACERT,CWE-583,CWE-583 (finalize() Method Declared Public) is present in a module,The program violates secure coding principles for mobile code by declaring a finalize() method public. +ACERT,CWE-584,CWE-584 (Return Inside Finally Block) is present in a module,"The code has a return statement inside a finally block, which will cause any thrown exception in the try block to be discarded." +ACERT,CWE-585,CWE-585 (Empty Synchronized Block) is present in a module,The software contains an empty synchronized block. +ACERT,CWE-586,CWE-586 (Explicit Call to Finalize()) is present in a module,The software makes an explicit call to the finalize() method from outside the finalizer. +ACERT,CWE-587,CWE-587 (Assignment of a Fixed Address to a Pointer) is present in a module,The software sets a pointer to a specific address other than NULL or 0. +ACERT,CWE-588,CWE-588 (Attempt to Access Child of a Non-structure Pointer) is present in a module,Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption. +ACERT,CWE-589,CWE-589 (Call to Non-ubiquitous API) is present in a module,The software uses an API function that does not exist on all versions of the target platform. This could cause portability problems or inconsistencies that allow denial of service or other consequences. +ACERT,CWE-590,CWE-590 (Free of Memory not on the Heap) is present in a module,"The application calls free() on a pointer to memory that was not allocated using associated heap allocation functions such as malloc(), calloc(), or realloc()." +ACERT,CWE-591,CWE-591 (Sensitive Data Storage in Improperly Locked Memory) is present in a module,"The application stores sensitive data in memory that is not locked, or that has been incorrectly locked, which might cause the memory to be written to swap files on disk by the virtual memory manager. This can make the data more accessible to external actors." +ACERT,CWE-593,CWE-593 (Authentication Bypass: OpenSSL CTX Object Modified after SSL Objects are Created) is present in a module,The software modifies the SSL context after connection creation has begun. +ACERT,CWE-594,CWE-594 (J2EE Framework: Saving Unserializable Objects to Disk) is present in a module,When the J2EE container attempts to write unserializable objects to disk there is no guarantee that the process will complete successfully. +ACERT,CWE-595,CWE-595 (Comparison of Object References Instead of Object Contents) is present in a module,"The program compares object references instead of the contents of the objects themselves, preventing it from detecting equivalent objects." +ACERT,CWE-597,CWE-597 (Use of Wrong Operator in String Comparison) is present in a module,"The product uses the wrong operator when comparing a string, such as using == when the .equals() method should be used instead." +ACERT,CWE-598,CWE-598 (Use of GET Request Method With Sensitive Query Strings) is present in a module,The web application uses the HTTP GET method to process a request and includes sensitive information in the query string of that request. +ACERT,CWE-599,CWE-599 (Missing Validation of OpenSSL Certificate) is present in a module,The software uses OpenSSL and trusts or uses a certificate without using the SSL_get_verify_result() function to ensure that the certificate satisfies all necessary security requirements. +ACERT,CWE-600,CWE-600 (Uncaught Exception in Servlet ) is present in a module,"The Servlet does not catch all exceptions, which may reveal sensitive debugging information." +ACERT,CWE-601,CWE-601 (URL Redirection to Untrusted Site ('Open Redirect')) is present in a module,"A web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a Redirect. This simplifies phishing attacks." +ACERT,CWE-602,CWE-602 (Client-Side Enforcement of Server-Side Security) is present in a module,The software is composed of a server that relies on the client to implement a mechanism that is intended to protect the server. +ACERT,CWE-603,CWE-603 (Use of Client-Side Authentication) is present in a module,"A client/server product performs authentication within client code but not in server code, allowing server-side authentication to be bypassed via a modified client that omits the authentication check." +ACERT,CWE-605,CWE-605 (Multiple Binds to the Same Port) is present in a module,"When multiple sockets are allowed to bind to the same port, other services on that port may be stolen or spoofed." +ACERT,CWE-606,CWE-606 (Unchecked Input for Loop Condition) is present in a module,"The product does not properly check inputs that are used for loop conditions, potentially leading to a denial of service or other consequences because of excessive looping." +ACERT,CWE-607,CWE-607 (Public Static Final Field References Mutable Object) is present in a module,"A public or protected static final field references a mutable object, which allows the object to be changed by malicious code, or accidentally from another package." +ACERT,CWE-608,CWE-608 (Struts: Non-private Field in ActionForm Class) is present in a module,"An ActionForm class contains a field that has not been declared private, which can be accessed without using a setter or getter." +ACERT,CWE-609,CWE-609 (Double-Checked Locking) is present in a module,"The program uses double-checked locking to access a resource without the overhead of explicit synchronization, but the locking is insufficient." +ACERT,CWE-610,CWE-610 (Externally Controlled Reference to a Resource in Another Sphere) is present in a module,The product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere. +ACERT,CWE-611,CWE-611 (Improper Restriction of XML External Entity Reference) is present in a module,"The software processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output." +ACERT,CWE-612,CWE-612 (Improper Authorization of Index Containing Sensitive Information) is present in a module,"The product creates a search index of private or sensitive documents, but it does not properly limit index access to actors who are authorized to see the original information." +ACERT,CWE-613,CWE-613 (Insufficient Session Expiration) is present in a module,"According to WASC, Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization." +ACERT,CWE-614,CWE-614 (Sensitive Cookie in HTTPS Session Without 'Secure' Attribute) is present in a module,"The Secure attribute for sensitive cookies in HTTPS sessions is not set, which could cause the user agent to send those cookies in plaintext over an HTTP session." +ACERT,CWE-615,CWE-615 (Inclusion of Sensitive Information in Source Code Comments) is present in a module,"While adding general comments is very useful, some programmers tend to leave important data, such as: filenames related to the web application, old links or links which were not meant to be browsed by users, old code fragments, etc." +ACERT,CWE-616,CWE-616 (Incomplete Identification of Uploaded File Variables (PHP)) is present in a module,"The PHP application uses an old method for processing uploaded files by referencing the four global variables that are set for each file (e.g. $varname, $varname_size, $varname_name, $varname_type). These variables could be overwritten by attackers, causing the application to process unauthorized files." +ACERT,CWE-617,CWE-617 (Reachable Assertion) is present in a module,"The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary." +ACERT,CWE-618,CWE-618 (Exposed Unsafe ActiveX Method) is present in a module,"An ActiveX control is intended for use in a web browser, but it exposes dangerous methods that perform actions that are outside of the browser's security model (e.g. the zone or domain)." +ACERT,CWE-619,CWE-619 (Dangling Database Cursor ('Cursor Injection')) is present in a module,"If a database cursor is not closed properly, then it could become accessible to other users while retaining the same privileges that were originally assigned, leaving the cursor dangling." +ACERT,CWE-620,CWE-620 (Unverified Password Change) is present in a module,"When setting a new password for a user, the product does not require knowledge of the original password, or using another form of authentication." +ACERT,CWE-621,CWE-621 (Variable Extraction Error) is present in a module,"The product uses external input to determine the names of variables into which information is extracted, without verifying that the names of the specified variables are valid. This could cause the program to overwrite unintended variables." +ACERT,CWE-622,CWE-622 (Improper Validation of Function Hook Arguments) is present in a module,"The product adds hooks to user-accessible API functions, but it does not properly validate the arguments. This could lead to resultant vulnerabilities." +ACERT,CWE-623,CWE-623 (Unsafe ActiveX Control Marked Safe For Scripting) is present in a module,"An ActiveX control is intended for restricted use, but it has been marked as safe-for-scripting." +ACERT,CWE-624,CWE-624 (Executable Regular Expression Error) is present in a module,"The product uses a regular expression that either (1) contains an executable component with user-controlled inputs, or (2) allows a user to enable execution by inserting pattern modifiers." +ACERT,CWE-625,CWE-625 (Permissive Regular Expression) is present in a module,The product uses a regular expression that does not sufficiently restrict the set of allowed values. +ACERT,CWE-626,CWE-626 (Null Byte Interaction Error (Poison Null Byte)) is present in a module,The product does not properly handle null bytes or NUL characters when passing data between different representations or components. +ACERT,CWE-627,CWE-627 (Dynamic Variable Evaluation) is present in a module,"In a language where the user can influence the name of a variable at runtime, if the variable names are not controlled, an attacker can read or write to arbitrary variables, or access arbitrary functions." +ACERT,CWE-628,CWE-628 (Function Call with Incorrectly Specified Arguments) is present in a module,"The product calls a function, procedure, or routine with arguments that are not correctly specified, leading to always-incorrect behavior and resultant weaknesses." +ACERT,CWE-636,CWE-636 (Not Failing Securely ('Failing Open')) is present in a module,"When the product encounters an error condition or failure, its design requires it to fall back to a state that is less secure than other options that are available, such as selecting the weakest encryption algorithm or using the most permissive access control restrictions." +ACERT,CWE-637,CWE-637 (Unnecessary Complexity in Protection Mechanism (Not Using 'Economy of Mechanism')) is present in a module,"The software uses a more complex mechanism than necessary, which could lead to resultant weaknesses when the mechanism is not correctly understood, modeled, configured, implemented, or used." +ACERT,CWE-638,CWE-638 (Not Using Complete Mediation) is present in a module,"The software does not perform access checks on a resource every time the resource is accessed by an entity, which can create resultant weaknesses if that entity's rights or privileges change over time." +ACERT,CWE-639,CWE-639 (Authorization Bypass Through User-Controlled Key) is present in a module,The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. +ACERT,CWE-640,CWE-640 (Weak Password Recovery Mechanism for Forgotten Password) is present in a module,"The software contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak." +ACERT,CWE-641,CWE-641 (Improper Restriction of Names for Files and Other Resources) is present in a module,"The application constructs the name of a file or other resource using input from an upstream component, but it does not restrict or incorrectly restricts the resulting name." +ACERT,CWE-642,CWE-642 (External Control of Critical State Data) is present in a module,"The software stores security-critical state information about its users, or the software itself, in a location that is accessible to unauthorized actors." +ACERT,CWE-643,CWE-643 (Improper Neutralization of Data within XPath Expressions ('XPath Injection')) is present in a module,"The software uses external input to dynamically construct an XPath expression used to retrieve data from an XML database, but it does not neutralize or incorrectly neutralizes that input. This allows an attacker to control the structure of the query." +ACERT,CWE-644,CWE-644 (Improper Neutralization of HTTP Headers for Scripting Syntax) is present in a module,"The application does not neutralize or incorrectly neutralizes web scripting syntax in HTTP headers that can be used by web browser components that can process raw headers, such as Flash." +ACERT,CWE-645,CWE-645 (Overly Restrictive Account Lockout Mechanism) is present in a module,"The software contains an account lockout protection mechanism, but the mechanism is too restrictive and can be triggered too easily, which allows attackers to deny service to legitimate users by causing their accounts to be locked out." +ACERT,CWE-646,CWE-646 (Reliance on File Name or Extension of Externally-Supplied File) is present in a module,"The software allows a file to be uploaded, but it relies on the file name or extension of the file to determine the appropriate behaviors. This could be used by attackers to cause the file to be misclassified and processed in a dangerous fashion." +ACERT,CWE-647,CWE-647 (Use of Non-Canonical URL Paths for Authorization Decisions) is present in a module,The software defines policy namespaces and makes authorization decisions based on the assumption that a URL is canonical. This can allow a non-canonical URL to bypass the authorization. +ACERT,CWE-648,CWE-648 (Incorrect Use of Privileged APIs) is present in a module,The application does not conform to the API requirements for a function call that requires extra privileges. This could allow attackers to gain privileges by causing the function to be called incorrectly. +ACERT,CWE-649,CWE-649 (Reliance on Obfuscation or Encryption of Security-Relevant Inputs without Integrity Checking) is present in a module,"The software uses obfuscation or encryption of inputs that should not be mutable by an external actor, but the software does not use integrity checks to detect if those inputs have been modified." +ACERT,CWE-650,CWE-650 (Trusting HTTP Permission Methods on the Server Side) is present in a module,"The server contains a protection mechanism that assumes that any URI that is accessed using HTTP GET will not cause a state change to the associated resource. This might allow attackers to bypass intended access restrictions and conduct resource modification and deletion attacks, since some applications allow GET to modify state." +ACERT,CWE-651,CWE-651 (Exposure of WSDL File Containing Sensitive Information) is present in a module,The Web services architecture may require exposing a Web Service Definition Language (WSDL) file that contains information on the publicly accessible services and how callers of these services should interact with them (e.g. what parameters they expect and what types they return). +ACERT,CWE-652,CWE-652 (Improper Neutralization of Data within XQuery Expressions ('XQuery Injection')) is present in a module,"The software uses external input to dynamically construct an XQuery expression used to retrieve data from an XML database, but it does not neutralize or incorrectly neutralizes that input. This allows an attacker to control the structure of the query." +ACERT,CWE-653,CWE-653 (Improper Isolation or Compartmentalization) is present in a module,"The product does not properly compartmentalize or isolate functionality, processes, or resources that require different privilege levels, rights, or permissions." +ACERT,CWE-654,CWE-654 (Reliance on a Single Factor in a Security Decision) is present in a module,"A protection mechanism relies exclusively, or to a large extent, on the evaluation of a single condition or the integrity of a single object or entity in order to make a decision about granting access to restricted resources or functionality." +ACERT,CWE-655,CWE-655 (Insufficient Psychological Acceptability) is present in a module,"The software has a protection mechanism that is too difficult or inconvenient to use, encouraging non-malicious users to disable or bypass the mechanism, whether by accident or on purpose." +ACERT,CWE-656,CWE-656 (Reliance on Security Through Obscurity) is present in a module,"The software uses a protection mechanism whose strength depends heavily on its obscurity, such that knowledge of its algorithms or key data is sufficient to defeat the mechanism." +ACERT,CWE-657,CWE-657 (Violation of Secure Design Principles) is present in a module,The product violates well-established principles for secure design. +ACERT,CWE-662,CWE-662 (Improper Synchronization) is present in a module,"The software utilizes multiple threads or processes to allow temporary access to a shared resource that can only be exclusive to one process at a time, but it does not properly synchronize these actions, which might cause simultaneous accesses of this resource by multiple threads or processes." +ACERT,CWE-663,CWE-663 (Use of a Non-reentrant Function in a Concurrent Context) is present in a module,The software calls a non-reentrant function in a concurrent context in which a competing code sequence (e.g. thread or signal handler) may have an opportunity to call the same function or otherwise influence its state. +ACERT,CWE-664,CWE-664 (Improper Control of a Resource Through its Lifetime) is present in a module,"The software does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release." +ACERT,CWE-665,CWE-665 (Improper Initialization) is present in a module,"The software does not initialize or incorrectly initializes a resource, which might leave the resource in an unexpected state when it is accessed or used." +ACERT,CWE-666,CWE-666 (Operation on Resource in Wrong Phase of Lifetime) is present in a module,"The software performs an operation on a resource at the wrong phase of the resource's lifecycle, which can lead to unexpected behaviors." +ACERT,CWE-667,CWE-667 (Improper Locking) is present in a module,"The software does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors." +ACERT,CWE-668,CWE-668 (Exposure of Resource to Wrong Sphere) is present in a module,"The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource." +ACERT,CWE-669,CWE-669 (Incorrect Resource Transfer Between Spheres) is present in a module,"The product does not properly transfer a resource/behavior to another sphere, or improperly imports a resource/behavior from another sphere, in a manner that provides unintended control over that resource." +ACERT,CWE-670,CWE-670 (Always-Incorrect Control Flow Implementation) is present in a module,"The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated." +ACERT,CWE-671,CWE-671 (Lack of Administrator Control over Security) is present in a module,The product uses security features in a way that prevents the product's administrator from tailoring security settings to reflect the environment in which the product is being used. This introduces resultant weaknesses or prevents it from operating at a level of security that is desired by the administrator. +ACERT,CWE-672,CWE-672 (Operation on a Resource after Expiration or Release) is present in a module,"The software uses, accesses, or otherwise operates on a resource after that resource has been expired, released, or revoked." +ACERT,CWE-673,CWE-673 (External Influence of Sphere Definition) is present in a module,The product does not prevent the definition of control spheres from external actors. +ACERT,CWE-674,CWE-674 (Uncontrolled Recursion) is present in a module,"The product does not properly control the amount of recursion which takes place, consuming excessive resources, such as allocated memory or the program stack." +ACERT,CWE-675,CWE-675 (Multiple Operations on Resource in Single-Operation Context) is present in a module,"The product performs the same operation on a resource two or more times, when the operation should only be applied once." +ACERT,CWE-676,CWE-676 (Use of Potentially Dangerous Function) is present in a module,"The program invokes a potentially dangerous function that could introduce a vulnerability if it is used incorrectly, but the function can also be used safely." +ACERT,CWE-680,CWE-680 (Integer Overflow to Buffer Overflow) is present in a module,"The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow." +ACERT,CWE-681,CWE-681 (Incorrect Conversion between Numeric Types) is present in a module,"When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur." +ACERT,CWE-682,CWE-682 (Incorrect Calculation) is present in a module,The software performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management. +ACERT,CWE-683,CWE-683 (Function Call With Incorrect Order of Arguments) is present in a module,"The software calls a function, procedure, or routine, but the caller specifies the arguments in an incorrect order, leading to resultant weaknesses." +ACERT,CWE-684,CWE-684 (Incorrect Provision of Specified Functionality) is present in a module,"The code does not function according to its published specifications, potentially leading to incorrect usage." +ACERT,CWE-685,CWE-685 (Function Call With Incorrect Number of Arguments) is present in a module,"The software calls a function, procedure, or routine, but the caller specifies too many arguments, or too few arguments, which may lead to undefined behavior and resultant weaknesses." +ACERT,CWE-686,CWE-686 (Function Call With Incorrect Argument Type) is present in a module,"The software calls a function, procedure, or routine, but the caller specifies an argument that is the wrong data type, which may lead to resultant weaknesses." +ACERT,CWE-687,CWE-687 (Function Call With Incorrectly Specified Argument Value) is present in a module,"The software calls a function, procedure, or routine, but the caller specifies an argument that contains the wrong value, which may lead to resultant weaknesses." +ACERT,CWE-688,CWE-688 (Function Call With Incorrect Variable or Reference as Argument) is present in a module,"The software calls a function, procedure, or routine, but the caller specifies the wrong variable or reference as one of the arguments, which may lead to undefined behavior and resultant weaknesses." +ACERT,CWE-689,CWE-689 (Permission Race Condition During Resource Copy) is present in a module,"The product, while copying or cloning a resource, does not set the resource's permissions or access control until the copy is complete, leaving the resource exposed to other spheres while the copy is taking place." +ACERT,CWE-690,CWE-690 (Unchecked Return Value to NULL Pointer Dereference) is present in a module,"The product does not check for an error after calling a function that can return with a NULL pointer if the function fails, which leads to a resultant NULL pointer dereference." +ACERT,CWE-691,CWE-691 (Insufficient Control Flow Management) is present in a module,"The code does not sufficiently manage its control flow during execution, creating conditions in which the control flow can be modified in unexpected ways." +ACERT,CWE-692,CWE-692 (Incomplete Denylist to Cross-Site Scripting) is present in a module,"The product uses a denylist-based protection mechanism to defend against XSS attacks, but the denylist is incomplete, allowing XSS variants to succeed." +ACERT,CWE-693,CWE-693 (Protection Mechanism Failure) is present in a module,The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. +ACERT,CWE-694,CWE-694 (Use of Multiple Resources with Duplicate Identifier) is present in a module,"The software uses multiple resources that can have the same identifier, in a context in which unique identifiers are required." +ACERT,CWE-695,CWE-695 (Use of Low-Level Functionality) is present in a module,The software uses low-level functionality that is explicitly prohibited by the framework or specification under which the software is supposed to operate. +ACERT,CWE-696,CWE-696 (Incorrect Behavior Order) is present in a module,"The product performs multiple related behaviors, but the behaviors are performed in the wrong order in ways which may produce resultant weaknesses." +ACERT,CWE-697,CWE-697 (Incorrect Comparison) is present in a module,"The software compares two entities in a security-relevant context, but the comparison is incorrect, which may lead to resultant weaknesses." +ACERT,CWE-698,CWE-698 (Execution After Redirect (EAR)) is present in a module,"The web application sends a redirect to another location, but instead of exiting, it executes additional code." +ACERT,CWE-703,CWE-703 (Improper Check or Handling of Exceptional Conditions) is present in a module,The software does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the software. +ACERT,CWE-704,CWE-704 (Incorrect Type Conversion or Cast) is present in a module,"The software does not correctly convert an object, resource, or structure from one type to a different type." +ACERT,CWE-705,CWE-705 (Incorrect Control Flow Scoping) is present in a module,The software does not properly return control flow to the proper location after it has completed a task or detected an unusual condition. +ACERT,CWE-706,CWE-706 (Use of Incorrectly-Resolved Name or Reference) is present in a module,"The software uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere." +ACERT,CWE-707,CWE-707 (Improper Neutralization) is present in a module,The product does not ensure or incorrectly ensures that structured messages or data are well-formed and that certain security properties are met before being read from an upstream component or sent to a downstream component. +ACERT,CWE-708,CWE-708 (Incorrect Ownership Assignment) is present in a module,"The software assigns an owner to a resource, but the owner is outside of the intended control sphere." +ACERT,CWE-710,CWE-710 (Improper Adherence to Coding Standards) is present in a module,"The software does not follow certain coding rules for development, which can lead to resultant weaknesses or increase the severity of the associated vulnerabilities." +ACERT,CWE-732,CWE-732 (Incorrect Permission Assignment for Critical Resource) is present in a module,The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. +ACERT,CWE-733,CWE-733 (Compiler Optimization Removal or Modification of Security-critical Code) is present in a module,"The developer builds a security-critical protection mechanism into the software, but the compiler optimizes the program such that the mechanism is removed or modified." +ACERT,CWE-749,CWE-749 (Exposed Dangerous Method or Function) is present in a module,"The software provides an Applications Programming Interface (API) or similar interface for interaction with external actors, but the interface includes a dangerous method or function that is not properly restricted." +ACERT,CWE-754,CWE-754 (Improper Check for Unusual or Exceptional Conditions) is present in a module,The software does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the software. +ACERT,CWE-755,CWE-755 (Improper Handling of Exceptional Conditions) is present in a module,The software does not handle or incorrectly handles an exceptional condition. +ACERT,CWE-756,CWE-756 (Missing Custom Error Page) is present in a module,"The software does not return custom error pages to the user, possibly exposing sensitive information." +ACERT,CWE-757,CWE-757 (Selection of Less-Secure Algorithm During Negotiation ('Algorithm Downgrade')) is present in a module,"A protocol or its implementation supports interaction between multiple actors and allows those actors to negotiate which algorithm should be used as a protection mechanism such as encryption or authentication, but it does not select the strongest algorithm that is available to both parties." +ACERT,CWE-758,"CWE-758 (Reliance on Undefined, Unspecified, or Implementation-Defined Behavior) is present in a module","The software uses an API function, data structure, or other entity in a way that relies on properties that are not always guaranteed to hold for that entity." +ACERT,CWE-759,CWE-759 (Use of a One-Way Hash without a Salt) is present in a module,"The software uses a one-way cryptographic hash against an input that should not be reversible, such as a password, but the software does not also use a salt as part of the input." +ACERT,CWE-760,CWE-760 (Use of a One-Way Hash with a Predictable Salt) is present in a module,"The software uses a one-way cryptographic hash against an input that should not be reversible, such as a password, but the software uses a predictable salt as part of the input." +ACERT,CWE-761,CWE-761 (Free of Pointer not at Start of Buffer) is present in a module,"The application calls free() on a pointer to a memory resource that was allocated on the heap, but the pointer is not at the start of the buffer." +ACERT,CWE-762,CWE-762 (Mismatched Memory Management Routines) is present in a module,"The application attempts to return a memory resource to the system, but it calls a release function that is not compatible with the function that was originally used to allocate that resource." +ACERT,CWE-763,CWE-763 (Release of Invalid Pointer or Reference) is present in a module,"The application attempts to return a memory resource to the system, but calls the wrong release function or calls the appropriate release function incorrectly." +ACERT,CWE-764,CWE-764 (Multiple Locks of a Critical Resource) is present in a module,"The software locks a critical resource more times than intended, leading to an unexpected state in the system." +ACERT,CWE-765,CWE-765 (Multiple Unlocks of a Critical Resource) is present in a module,"The software unlocks a critical resource more times than intended, leading to an unexpected state in the system." +ACERT,CWE-766,CWE-766 (Critical Data Element Declared Public) is present in a module,"The software declares a critical variable, field, or member to be public when intended security policy requires it to be private." +ACERT,CWE-767,CWE-767 (Access to Critical Private Variable via Public Method) is present in a module,The software defines a public method that reads or modifies a private variable. +ACERT,CWE-768,CWE-768 (Incorrect Short Circuit Evaluation) is present in a module,"The software contains a conditional statement with multiple logical expressions in which one of the non-leading expressions may produce side effects. This may lead to an unexpected state in the program after the execution of the conditional, because short-circuiting logic may prevent the side effects from occurring." +ACERT,CWE-770,CWE-770 (Allocation of Resources Without Limits or Throttling) is present in a module,"The software allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor." +ACERT,CWE-771,CWE-771 (Missing Reference to Active Allocated Resource) is present in a module,"The software does not properly maintain a reference to a resource that has been allocated, which prevents the resource from being reclaimed." +ACERT,CWE-772,CWE-772 (Missing Release of Resource after Effective Lifetime) is present in a module,"The software does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed." +ACERT,CWE-773,CWE-773 (Missing Reference to Active File Descriptor or Handle) is present in a module,"The software does not properly maintain references to a file descriptor or handle, which prevents that file descriptor/handle from being reclaimed." +ACERT,CWE-774,CWE-774 (Allocation of File Descriptors or Handles Without Limits or Throttling) is present in a module,"The software allocates file descriptors or handles on behalf of an actor without imposing any restrictions on how many descriptors can be allocated, in violation of the intended security policy for that actor." +ACERT,CWE-775,CWE-775 (Missing Release of File Descriptor or Handle after Effective Lifetime) is present in a module,"The software does not release a file descriptor or handle after its effective lifetime has ended, i.e., after the file descriptor/handle is no longer needed." +ACERT,CWE-776,CWE-776 (Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')) is present in a module,"The software uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities." +ACERT,CWE-777,CWE-777 (Regular Expression without Anchors) is present in a module,"The software uses a regular expression to perform neutralization, but the regular expression is not anchored and may allow malicious or malformed data to slip through." +ACERT,CWE-778,CWE-778 (Insufficient Logging) is present in a module,"When a security-critical event occurs, the software either does not record the event or omits important details about the event when logging it." +ACERT,CWE-779,CWE-779 (Logging of Excessive Data) is present in a module,"The software logs too much information, making log files hard to process and possibly hindering recovery efforts or forensic analysis after an attack." +ACERT,CWE-780,CWE-780 (Use of RSA Algorithm without OAEP) is present in a module,"The software uses the RSA algorithm but does not incorporate Optimal Asymmetric Encryption Padding (OAEP), which might weaken the encryption." +ACERT,CWE-781,CWE-781 (Improper Address Validation in IOCTL with METHOD_NEITHER I/O Control Code) is present in a module,"The software defines an IOCTL that uses METHOD_NEITHER for I/O, but it does not validate or incorrectly validates the addresses that are provided." +ACERT,CWE-782,CWE-782 (Exposed IOCTL with Insufficient Access Control) is present in a module,"The software implements an IOCTL with functionality that should be restricted, but it does not properly enforce access control for the IOCTL." +ACERT,CWE-783,CWE-783 (Operator Precedence Logic Error) is present in a module,The program uses an expression in which operator precedence causes incorrect logic to be used. +ACERT,CWE-784,CWE-784 (Reliance on Cookies without Validation and Integrity Checking in a Security Decision) is present in a module,"The application uses a protection mechanism that relies on the existence or values of a cookie, but it does not properly ensure that the cookie is valid for the associated user." +ACERT,CWE-785,CWE-785 (Use of Path Manipulation Function without Maximum-sized Buffer) is present in a module,"The software invokes a function for normalizing paths or file names, but it provides an output buffer that is smaller than the maximum possible size, such as PATH_MAX." +ACERT,CWE-786,CWE-786 (Access of Memory Location Before Start of Buffer) is present in a module,The software reads or writes to a buffer using an index or pointer that references a memory location prior to the beginning of the buffer. +ACERT,CWE-787,CWE-787 (Out-of-bounds Write) is present in a module,"The software writes data past the end, or before the beginning, of the intended buffer." +ACERT,CWE-788,CWE-788 (Access of Memory Location After End of Buffer) is present in a module,The software reads or writes to a buffer using an index or pointer that references a memory location after the end of the buffer. +ACERT,CWE-789,CWE-789 (Memory Allocation with Excessive Size Value) is present in a module,"The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated." +ACERT,CWE-790,CWE-790 (Improper Filtering of Special Elements) is present in a module,"The software receives data from an upstream component, but does not filter or incorrectly filters special elements before sending it to a downstream component." +ACERT,CWE-791,CWE-791 (Incomplete Filtering of Special Elements) is present in a module,"The software receives data from an upstream component, but does not completely filter special elements before sending it to a downstream component." +ACERT,CWE-792,CWE-792 (Incomplete Filtering of One or More Instances of Special Elements) is present in a module,"The software receives data from an upstream component, but does not completely filter one or more instances of special elements before sending it to a downstream component." +ACERT,CWE-793,CWE-793 (Only Filtering One Instance of a Special Element) is present in a module,"The software receives data from an upstream component, but only filters a single instance of a special element before sending it to a downstream component." +ACERT,CWE-794,CWE-794 (Incomplete Filtering of Multiple Instances of Special Elements) is present in a module,"The software receives data from an upstream component, but does not filter all instances of a special element before sending it to a downstream component." +ACERT,CWE-795,CWE-795 (Only Filtering Special Elements at a Specified Location) is present in a module,"The software receives data from an upstream component, but only accounts for special elements at a specified location, thereby missing remaining special elements that may exist before sending it to a downstream component." +ACERT,CWE-796,CWE-796 (Only Filtering Special Elements Relative to a Marker) is present in a module,"The software receives data from an upstream component, but only accounts for special elements positioned relative to a marker (e.g. at the beginning/end of a string; the second argument), thereby missing remaining special elements that may exist before sending it to a downstream component." +ACERT,CWE-797,CWE-797 (Only Filtering Special Elements at an Absolute Position) is present in a module,"The software receives data from an upstream component, but only accounts for special elements at an absolute position (e.g. byte number 10), thereby missing remaining special elements that may exist before sending it to a downstream component." +ACERT,CWE-798,CWE-798 (Use of Hard-coded Credentials) is present in a module,"The software contains hard-coded credentials, such as a password or cryptographic key, which it uses for its own inbound authentication, outbound communication to external components, or encryption of internal data." +ACERT,CWE-799,CWE-799 (Improper Control of Interaction Frequency) is present in a module,"The software does not properly limit the number or frequency of interactions that it has with an actor, such as the number of incoming requests." +ACERT,CWE-804,CWE-804 (Guessable CAPTCHA) is present in a module,"The software uses a CAPTCHA challenge, but the challenge can be guessed or automatically recognized by a non-human actor." +ACERT,CWE-805,CWE-805 (Buffer Access with Incorrect Length Value) is present in a module,"The software uses a sequential operation to read or write a buffer, but it uses an incorrect length value that causes it to access memory that is outside of the bounds of the buffer." +ACERT,CWE-806,CWE-806 (Buffer Access Using Size of Source Buffer) is present in a module,"The software uses the size of a source buffer when reading from or writing to a destination buffer, which may cause it to access memory that is outside of the bounds of the buffer." +ACERT,CWE-807,CWE-807 (Reliance on Untrusted Inputs in a Security Decision) is present in a module,"The application uses a protection mechanism that relies on the existence or values of an input, but the input can be modified by an untrusted actor in a way that bypasses the protection mechanism." +ACERT,CWE-820,CWE-820 (Missing Synchronization) is present in a module,The software utilizes a shared resource in a concurrent manner but does not attempt to synchronize access to the resource. +ACERT,CWE-821,CWE-821 (Incorrect Synchronization) is present in a module,"The software utilizes a shared resource in a concurrent manner, but it does not correctly synchronize access to the resource." +ACERT,CWE-822,CWE-822 (Untrusted Pointer Dereference) is present in a module,"The program obtains a value from an untrusted source, converts this value to a pointer, and dereferences the resulting pointer." +ACERT,CWE-823,CWE-823 (Use of Out-of-range Pointer Offset) is present in a module,"The program performs pointer arithmetic on a valid pointer, but it uses an offset that can point outside of the intended range of valid memory locations for the resulting pointer." +ACERT,CWE-824,CWE-824 (Access of Uninitialized Pointer) is present in a module,The program accesses or uses a pointer that has not been initialized. +ACERT,CWE-825,CWE-825 (Expired Pointer Dereference) is present in a module,"The program dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid." +ACERT,CWE-826,CWE-826 (Premature Release of Resource During Expected Lifetime) is present in a module,The program releases a resource that is still intended to be used by the program itself or another actor. +ACERT,CWE-827,CWE-827 (Improper Control of Document Type Definition) is present in a module,"The software does not restrict a reference to a Document Type Definition (DTD) to the intended control sphere. This might allow attackers to reference arbitrary DTDs, possibly causing the software to expose files, consume excessive system resources, or execute arbitrary http requests on behalf of the attacker." +ACERT,CWE-828,CWE-828 (Signal Handler with Functionality that is not Asynchronous-Safe) is present in a module,"The software defines a signal handler that contains code sequences that are not asynchronous-safe, i.e., the functionality is not reentrant, or it can be interrupted." +ACERT,CWE-829,CWE-829 (Inclusion of Functionality from Untrusted Control Sphere) is present in a module,"The software imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere." +ACERT,CWE-830,CWE-830 (Inclusion of Web Functionality from an Untrusted Source) is present in a module,"The software includes web functionality (such as a web widget) from another domain, which causes it to operate within the domain of the software, potentially granting total access and control of the software to the untrusted source." +ACERT,CWE-831,CWE-831 (Signal Handler Function Associated with Multiple Signals) is present in a module,The software defines a function that is used as a handler for more than one signal. +ACERT,CWE-832,CWE-832 (Unlock of a Resource that is not Locked) is present in a module,The software attempts to unlock a resource that is not locked. +ACERT,CWE-833,CWE-833 (Deadlock) is present in a module,"The software contains multiple threads or executable segments that are waiting for each other to release a necessary lock, resulting in deadlock." +ACERT,CWE-834,CWE-834 (Excessive Iteration) is present in a module,The software performs an iteration or loop without sufficiently limiting the number of times that the loop is executed. +ACERT,CWE-835,CWE-835 (Loop with Unreachable Exit Condition ('Infinite Loop')) is present in a module,"The program contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop." +ACERT,CWE-836,CWE-836 (Use of Password Hash Instead of Password for Authentication) is present in a module,"The software records password hashes in a data store, receives a hash of a password from a client, and compares the supplied hash to the hash obtained from the data store." +ACERT,CWE-837,"CWE-837 (Improper Enforcement of a Single, Unique Action) is present in a module","The software requires that an actor should only be able to perform an action once, or to have only one unique action, but the software does not enforce or improperly enforces this restriction." +ACERT,CWE-838,CWE-838 (Inappropriate Encoding for Output Context) is present in a module,"The software uses or specifies an encoding when generating output to a downstream component, but the specified encoding is not the same as the encoding that is expected by the downstream component." +ACERT,CWE-839,CWE-839 (Numeric Range Comparison Without Minimum Check) is present in a module,"The program checks a value to ensure that it is less than or equal to a maximum, but it does not also verify that the value is greater than or equal to the minimum." +ACERT,CWE-841,CWE-841 (Improper Enforcement of Behavioral Workflow) is present in a module,"The software supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor performs the behaviors in the required sequence." +ACERT,CWE-842,CWE-842 (Placement of User into Incorrect Group) is present in a module,The software or the administrator places a user into an incorrect group. +ACERT,CWE-843,CWE-843 (Access of Resource Using Incompatible Type ('Type Confusion')) is present in a module,"The program allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type." +ACERT,CWE-862,CWE-862 (Missing Authorization) is present in a module,The software does not perform an authorization check when an actor attempts to access a resource or perform an action. +ACERT,CWE-863,CWE-863 (Incorrect Authorization) is present in a module,"The software performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. This allows attackers to bypass intended access restrictions." +ACERT,CWE-908,CWE-908 (Use of Uninitialized Resource) is present in a module,The software uses or accesses a resource that has not been initialized. +ACERT,CWE-909,CWE-909 (Missing Initialization of Resource) is present in a module,The software does not initialize a critical resource. +ACERT,CWE-910,CWE-910 (Use of Expired File Descriptor) is present in a module,The software uses or accesses a file descriptor after it has been closed. +ACERT,CWE-911,CWE-911 (Improper Update of Reference Count) is present in a module,"The software uses a reference count to manage a resource, but it does not update or incorrectly updates the reference count." +ACERT,CWE-912,CWE-912 (Hidden Functionality) is present in a module,"The software contains functionality that is not documented, not part of the specification, and not accessible through an interface or command sequence that is obvious to the software's users or administrators." +ACERT,CWE-913,CWE-913 (Improper Control of Dynamically-Managed Code Resources) is present in a module,"The software does not properly restrict reading from or writing to dynamically-managed code resources such as variables, objects, classes, attributes, functions, or executable instructions or statements." +ACERT,CWE-914,CWE-914 (Improper Control of Dynamically-Identified Variables) is present in a module,The software does not properly restrict reading from or writing to dynamically-identified variables. +ACERT,CWE-915,CWE-915 (Improperly Controlled Modification of Dynamically-Determined Object Attributes) is present in a module,"The software receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified." +ACERT,CWE-916,CWE-916 (Use of Password Hash With Insufficient Computational Effort) is present in a module,"The software generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive." +ACERT,CWE-917,CWE-917 (Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')) is present in a module,"The software constructs all or part of an expression language (EL) statement in a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed." +ACERT,CWE-918,CWE-918 (Server-Side Request Forgery (SSRF)) is present in a module,"The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination." +ACERT,CWE-920,CWE-920 (Improper Restriction of Power Consumption) is present in a module,"The software operates in an environment in which power is a limited resource that cannot be automatically replenished, but the software does not properly restrict the amount of power that its operation consumes." +ACERT,CWE-921,CWE-921 (Storage of Sensitive Data in a Mechanism without Access Control) is present in a module,The software stores sensitive information in a file system or device that does not have built-in access control. +ACERT,CWE-922,CWE-922 (Insecure Storage of Sensitive Information) is present in a module,The software stores sensitive information without properly limiting read or write access by unauthorized actors. +ACERT,CWE-923,CWE-923 (Improper Restriction of Communication Channel to Intended Endpoints) is present in a module,"The software establishes a communication channel to (or from) an endpoint for privileged or protected operations, but it does not properly ensure that it is communicating with the correct endpoint." +ACERT,CWE-924,CWE-924 (Improper Enforcement of Message Integrity During Transmission in a Communication Channel) is present in a module,"The software establishes a communication channel with an endpoint and receives a message from that endpoint, but it does not sufficiently ensure that the message was not modified during transmission." +ACERT,CWE-925,CWE-925 (Improper Verification of Intent by Broadcast Receiver) is present in a module,The Android application uses a Broadcast Receiver that receives an Intent but does not properly verify that the Intent came from an authorized source. +ACERT,CWE-926,CWE-926 (Improper Export of Android Application Components) is present in a module,"The Android application exports a component for use by other applications, but does not properly restrict which applications can launch the component or access the data it contains." +ACERT,CWE-927,CWE-927 (Use of Implicit Intent for Sensitive Communication) is present in a module,The Android application uses an implicit intent for transmitting sensitive data to other applications. +ACERT,CWE-939,CWE-939 (Improper Authorization in Handler for Custom URL Scheme) is present in a module,"The software uses a handler for a custom URL scheme, but it does not properly restrict which actors can invoke the handler using the scheme." +ACERT,CWE-940,CWE-940 (Improper Verification of Source of a Communication Channel) is present in a module,"The software establishes a communication channel to handle an incoming request that has been initiated by an actor, but it does not properly verify that the request is coming from the expected origin." +ACERT,CWE-941,CWE-941 (Incorrectly Specified Destination in a Communication Channel) is present in a module,"The software creates a communication channel to initiate an outgoing request to an actor, but it does not correctly specify the intended destination for that actor." +ACERT,CWE-942,CWE-942 (Permissive Cross-domain Policy with Untrusted Domains) is present in a module,The software uses a cross-domain policy file that includes domains that should not be trusted. +ACERT,CWE-943,CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) is present in a module,"The application generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query." +ACERT,CWE-1004,CWE-1004 (Sensitive Cookie Without 'HttpOnly' Flag) is present in a module,"The software uses a cookie to store sensitive information, but the cookie is not marked with the HttpOnly flag." +ACERT,CWE-1007,CWE-1007 (Insufficient Visual Distinction of Homoglyphs Presented to User) is present in a module,"The software displays information or identifiers to a user, but the display mechanism does not make it easy for the user to distinguish between visually similar or identical glyphs (homoglyphs), which may cause the user to misinterpret a glyph and perform an unintended, insecure action." +ACERT,CWE-1021,CWE-1021 (Improper Restriction of Rendered UI Layers or Frames) is present in a module,"The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain, which can lead to user confusion about which interface the user is interacting with." +ACERT,CWE-1022,CWE-1022 (Use of Web Link to Untrusted Target with window.opener Access) is present in a module,"The web application produces links to untrusted external sites outside of its sphere of control, but it does not properly prevent the external site from modifying security-critical properties of the window.opener object, such as the location property." +ACERT,CWE-1023,CWE-1023 (Incomplete Comparison with Missing Factors) is present in a module,"The software performs a comparison between entities that must consider multiple factors or characteristics of each entity, but the comparison does not include one or more of these factors." +ACERT,CWE-1024,CWE-1024 (Comparison of Incompatible Types) is present in a module,"The software performs a comparison between two entities, but the entities are of different, incompatible types that cannot be guaranteed to provide correct results when they are directly compared." +ACERT,CWE-1025,CWE-1025 (Comparison Using Wrong Factors) is present in a module,"The code performs a comparison between two entities, but the comparison examines the wrong factors or characteristics of the entities, which can lead to incorrect results and resultant weaknesses." +ACERT,CWE-1037,CWE-1037 (Processor Optimization Removal or Modification of Security-critical Code) is present in a module,"The developer builds a security-critical protection mechanism into the software, but the processor optimizes the execution of the program such that the mechanism is removed or modified." +ACERT,CWE-1038,CWE-1038 (Insecure Automated Optimizations) is present in a module,"The product uses a mechanism that automatically optimizes code, e.g. to improve a characteristic such as performance, but the optimizations can have an unintended side effect that might violate an intended security assumption." +ACERT,CWE-1039,CWE-1039 (Automated Recognition Mechanism with Inadequate Detection or Handling of Adversarial Input Perturbations) is present in a module,"The product uses an automated mechanism such as machine learning to recognize complex data inputs (e.g. image or audio) as a particular concept or category, but it does not properly detect or handle inputs that have been modified or constructed in a way that causes the mechanism to detect a different, incorrect concept." +ACERT,CWE-1041,CWE-1041 (Use of Redundant Code) is present in a module,"The software has multiple functions, methods, procedures, macros, etc. that contain the same code." +ACERT,CWE-1042,CWE-1042 (Static Member Data Element outside of a Singleton Class Element) is present in a module,"The code contains a member element that is declared as static (but not final), in which its parent class element is not a singleton class - that is, a class element that can be used only once in the 'to' association of a Create action." +ACERT,CWE-1043,CWE-1043 (Data Element Aggregating an Excessively Large Number of Non-Primitive Elements) is present in a module,The software uses a data element that has an excessively large number of sub-elements with non-primitive data types such as structures or aggregated objects. +ACERT,CWE-1044,CWE-1044 (Architecture with Number of Horizontal Layers Outside of Expected Range) is present in a module,The software's architecture contains too many - or too few - horizontal layers. +ACERT,CWE-1045,CWE-1045 (Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor) is present in a module,"A parent class has a virtual destructor method, but the parent has a child class that does not have a virtual destructor." +ACERT,CWE-1046,CWE-1046 (Creation of Immutable Text Using String Concatenation) is present in a module,The software creates an immutable text string using string concatenation operations. +ACERT,CWE-1047,CWE-1047 (Modules with Circular Dependencies) is present in a module,"The software contains modules in which one module has references that cycle back to itself, i.e., there are circular dependencies." +ACERT,CWE-1048,CWE-1048 (Invokable Control Element with Large Number of Outward Calls) is present in a module,"The code contains callable control elements that contain an excessively large number of references to other application objects external to the context of the callable, i.e. a Fan-Out value that is excessively large." +ACERT,CWE-1049,CWE-1049 (Excessive Data Query Operations in a Large Data Table) is present in a module,The software performs a data query with a large number of joins and sub-queries on a large data table. +ACERT,CWE-1050,CWE-1050 (Excessive Platform Resource Consumption within a Loop) is present in a module,"The software has a loop body or loop condition that contains a control element that directly or indirectly consumes platform resources, e.g. messaging, sessions, locks, or file descriptors." +ACERT,CWE-1051,CWE-1051 (Initialization with Hard-Coded Network Resource Configuration Data) is present in a module,The software initializes data using hard-coded values that act as network resource identifiers. +ACERT,CWE-1052,CWE-1052 (Excessive Use of Hard-Coded Literals in Initialization) is present in a module,The software initializes a data element using a hard-coded literal that is not a simple integer or static constant element. +ACERT,CWE-1053,CWE-1053 (Missing Documentation for Design) is present in a module,The product does not have documentation that represents how it is designed. +ACERT,CWE-1054,CWE-1054 (Invocation of a Control Element at an Unnecessarily Deep Horizontal Layer) is present in a module,"The code at one architectural layer invokes code that resides at a deeper layer than the adjacent layer, i.e., the invocation skips at least one layer, and the invoked code is not part of a vertical utility layer that can be referenced from any horizontal layer." +ACERT,CWE-1055,CWE-1055 (Multiple Inheritance from Concrete Classes) is present in a module,The software contains a class with inheritance from more than one concrete class. +ACERT,CWE-1056,CWE-1056 (Invokable Control Element with Variadic Parameters) is present in a module,A named-callable or method control element has a signature that supports a variable (variadic) number of parameters or arguments. +ACERT,CWE-1057,CWE-1057 (Data Access Operations Outside of Expected Data Manager Component) is present in a module,"The software uses a dedicated, central data manager component as required by design, but it contains code that performs data-access operations that do not use this data manager." +ACERT,CWE-1058,CWE-1058 (Invokable Control Element in Multi-Thread Context with non-Final Static Storable or Member Element) is present in a module,The code contains a function or method that operates in a multi-threaded environment but owns an unsafe non-final static storable or member data element. +ACERT,CWE-1059,CWE-1059 (Incomplete Documentation) is present in a module,"The documentation, whether on paper or in electronic form, does not contain descriptions of all the relevant elements of the product, such as its usage, structure, interfaces, design, implementation, configuration, operation, etc." +ACERT,CWE-1060,CWE-1060 (Excessive Number of Inefficient Server-Side Data Accesses) is present in a module,The software performs too many data queries without using efficient data processing functionality such as stored procedures. +ACERT,CWE-1061,CWE-1061 (Insufficient Encapsulation) is present in a module,"The software does not sufficiently hide the internal representation and implementation details of data or methods, which might allow external components or modules to modify data unexpectedly, invoke unexpected functionality, or introduce dependencies that the programmer did not intend." +ACERT,CWE-1062,CWE-1062 (Parent Class with References to Child Class) is present in a module,"The code has a parent class that contains references to a child class, its methods, or its members." +ACERT,CWE-1063,CWE-1063 (Creation of Class Instance within a Static Code Block) is present in a module,A static code block creates an instance of a class. +ACERT,CWE-1064,CWE-1064 (Invokable Control Element with Signature Containing an Excessive Number of Parameters) is present in a module,"The software contains a function, subroutine, or method whose signature has an unnecessarily large number of parameters/arguments." +ACERT,CWE-1065,CWE-1065 (Runtime Resource Management Control Element in a Component Built to Run on Application Servers) is present in a module,"The application uses deployed components from application servers, but it also uses low-level functions/methods for management of resources, instead of the API provided by the application server." +ACERT,CWE-1066,CWE-1066 (Missing Serialization Control Element) is present in a module,The software contains a serializable data element that does not have an associated serialization method. +ACERT,CWE-1067,CWE-1067 (Excessive Execution of Sequential Searches of Data Resource) is present in a module,The software contains a data query against an SQL table or view that is configured in a way that does not utilize an index and may cause sequential searches to be performed. +ACERT,CWE-1068,CWE-1068 (Inconsistency Between Implementation and Documented Design) is present in a module,The implementation of the product is not consistent with the design as described within the relevant documentation. +ACERT,CWE-1069,CWE-1069 (Empty Exception Block) is present in a module,"An invokable code block contains an exception handling block that does not contain any code, i.e. is empty." +ACERT,CWE-1070,CWE-1070 (Serializable Data Element Containing non-Serializable Item Elements) is present in a module,"The software contains a serializable, storable data element such as a field or member, but the data element contains member elements that are not serializable." +ACERT,CWE-1071,CWE-1071 (Empty Code Block) is present in a module,"The source code contains a block that does not contain any code, i.e., the block is empty." +ACERT,CWE-1072,CWE-1072 (Data Resource Access without Use of Connection Pooling) is present in a module,The software accesses a data resource through a database without using a connection pooling capability. +ACERT,CWE-1073,CWE-1073 (Non-SQL Invokable Control Element with Excessive Number of Data Resource Accesses) is present in a module,"The software contains a client with a function or method that contains a large number of data accesses/queries that are sent through a data manager, i.e., does not use efficient database capabilities." +ACERT,CWE-1074,CWE-1074 (Class with Excessively Deep Inheritance) is present in a module,"A class has an inheritance level that is too high, i.e., it has a large number of parent classes." +ACERT,CWE-1075,CWE-1075 (Unconditional Control Flow Transfer outside of Switch Block) is present in a module,The software performs unconditional control transfer (such as a goto) in code outside of a branching structure such as a switch block. +ACERT,CWE-1076,CWE-1076 (Insufficient Adherence to Expected Conventions) is present in a module,"The product's architecture, source code, design, documentation, or other artifact does not follow required conventions." +ACERT,CWE-1077,CWE-1077 (Floating Point Comparison with Incorrect Operator) is present in a module,"The code performs a comparison such as an equality test between two float (floating point) values, but it uses comparison operators that do not account for the possibility of loss of precision." +ACERT,CWE-1078,CWE-1078 (Inappropriate Source Code Style or Formatting) is present in a module,"The source code does not follow desired style or formatting for indentation, white space, comments, etc." +ACERT,CWE-1079,CWE-1079 (Parent Class without Virtual Destructor Method) is present in a module,"A parent class contains one or more child classes, but the parent class does not have a virtual destructor method." +ACERT,CWE-1080,CWE-1080 (Source Code File with Excessive Number of Lines of Code) is present in a module,A source code file has too many lines of code. +ACERT,CWE-1082,CWE-1082 (Class Instance Self Destruction Control Element) is present in a module,The code contains a class instance that calls the method or function to delete or destroy itself. +ACERT,CWE-1083,CWE-1083 (Data Access from Outside Expected Data Manager Component) is present in a module,"The software is intended to manage data access through a particular data manager component such as a relational or non-SQL database, but it contains code that performs data access operations without using that component." +ACERT,CWE-1084,CWE-1084 (Invokable Control Element with Excessive File or Data Access Operations) is present in a module,A function or method contains too many operations that utilize a data manager or file resource. +ACERT,CWE-1085,CWE-1085 (Invokable Control Element with Excessive Volume of Commented-out Code) is present in a module,"A function, method, procedure, etc. contains an excessive amount of code that has been commented out within its body." +ACERT,CWE-1086,CWE-1086 (Class with Excessive Number of Child Classes) is present in a module,A class contains an unnecessarily large number of children. +ACERT,CWE-1087,CWE-1087 (Class with Virtual Method without a Virtual Destructor) is present in a module,"A class contains a virtual method, but the method does not have an associated virtual destructor." +ACERT,CWE-1088,CWE-1088 (Synchronous Access of Remote Resource without Timeout) is present in a module,"The code has a synchronous call to a remote resource, but there is no timeout for the call, or the timeout is set to infinite." +ACERT,CWE-1089,CWE-1089 (Large Data Table with Excessive Number of Indices) is present in a module,The software uses a large data table that contains an excessively large number of indices. +ACERT,CWE-1090,CWE-1090 (Method Containing Access of a Member Element from Another Class) is present in a module,A method for a class performs an operation that directly accesses a member element from another class. +ACERT,CWE-1091,CWE-1091 (Use of Object without Invoking Destructor Method) is present in a module,The software contains a method that accesses an object but does not later invoke the element's associated finalize/destructor method. +ACERT,CWE-1092,CWE-1092 (Use of Same Invokable Control Element in Multiple Architectural Layers) is present in a module,The software uses the same control element across multiple architectural layers. +ACERT,CWE-1093,CWE-1093 (Excessively Complex Data Representation) is present in a module,The software uses an unnecessarily complex internal representation for its data structures or interrelationships between those structures. +ACERT,CWE-1094,CWE-1094 (Excessive Index Range Scan for a Data Resource) is present in a module,"The software contains an index range scan for a large data table, but the scan can cover a large number of rows." +ACERT,CWE-1095,CWE-1095 (Loop Condition Value Update within the Loop) is present in a module,The software uses a loop with a control flow condition based on a value that is updated within the body of the loop. +ACERT,CWE-1096,CWE-1096 (Singleton Class Instance Creation without Proper Locking or Synchronization) is present in a module,The software implements a Singleton design pattern but does not use appropriate locking or other synchronization mechanism to ensure that the singleton class is only instantiated once. +ACERT,CWE-1097,CWE-1097 (Persistent Storable Data Element without Associated Comparison Control Element) is present in a module,The software uses a storable data element that does not have all of the associated functions or methods that are necessary to support comparison. +ACERT,CWE-1098,CWE-1098 (Data Element containing Pointer Item without Proper Copy Control Element) is present in a module,The code contains a data element with a pointer that does not have an associated copy or constructor method. +ACERT,CWE-1099,CWE-1099 (Inconsistent Naming Conventions for Identifiers) is present in a module,"The product's code, documentation, or other artifacts do not consistently use the same naming conventions for variables, callables, groups of related callables, I/O capabilities, data types, file names, or similar types of elements." +ACERT,CWE-1100,CWE-1100 (Insufficient Isolation of System-Dependent Functions) is present in a module,The product or code does not isolate system-dependent functionality into separate standalone modules. +ACERT,CWE-1101,CWE-1101 (Reliance on Runtime Component in Generated Code) is present in a module,The product uses automatically-generated code that cannot be executed without a specific runtime support component. +ACERT,CWE-1102,CWE-1102 (Reliance on Machine-Dependent Data Representation) is present in a module,"The code uses a data representation that relies on low-level data representation or constructs that may vary across different processors, physical machines, OSes, or other physical components." +ACERT,CWE-1103,CWE-1103 (Use of Platform-Dependent Third Party Components) is present in a module,The product relies on third-party software components that do not provide equivalent functionality across all desirable platforms. +ACERT,CWE-1104,CWE-1104 (Use of Unmaintained Third Party Components) is present in a module,The product relies on third-party components that are not actively supported or maintained by the original developer or a trusted proxy for the original developer. +ACERT,CWE-1105,CWE-1105 (Insufficient Encapsulation of Machine-Dependent Functionality) is present in a module,"The product or code uses machine-dependent functionality, but it does not sufficiently encapsulate or isolate this functionality from the rest of the code." +ACERT,CWE-1106,CWE-1106 (Insufficient Use of Symbolic Constants) is present in a module,"The source code uses literal constants that may need to change or evolve over time, instead of using symbolic constants." +ACERT,CWE-1107,CWE-1107 (Insufficient Isolation of Symbolic Constant Definitions) is present in a module,"The source code uses symbolic constants, but it does not sufficiently place the definitions of these constants into a more centralized or isolated location." +ACERT,CWE-1108,CWE-1108 (Excessive Reliance on Global Variables) is present in a module,"The code is structured in a way that relies too much on using or setting global variables throughout various points in the code, instead of preserving the associated information in a narrower, more local context." +ACERT,CWE-1109,CWE-1109 (Use of Same Variable for Multiple Purposes) is present in a module,"The code contains a callable, block, or other code element in which the same variable is used to control more than one unique task or store more than one instance of data." +ACERT,CWE-1110,CWE-1110 (Incomplete Design Documentation) is present in a module,"The product's design documentation does not adequately describe control flow, data flow, system initialization, relationships between tasks, components, rationales, or other important aspects of the design." +ACERT,CWE-1111,CWE-1111 (Incomplete I/O Documentation) is present in a module,"The product's documentation does not adequately define inputs, outputs, or system/software interfaces." +ACERT,CWE-1112,CWE-1112 (Incomplete Documentation of Program Execution) is present in a module,The document does not fully define all mechanisms that are used to control or influence how product-specific programs are executed. +ACERT,CWE-1113,CWE-1113 (Inappropriate Comment Style) is present in a module,The source code uses comment styles or formats that are inconsistent or do not follow expected standards for the product. +ACERT,CWE-1114,CWE-1114 (Inappropriate Whitespace Style) is present in a module,The source code contains whitespace that is inconsistent across the code or does not follow expected standards for the product. +ACERT,CWE-1115,CWE-1115 (Source Code Element without Standard Prologue) is present in a module,The source code contains elements such as source files that do not consistently provide a prologue or header that has been standardized for the project. +ACERT,CWE-1116,CWE-1116 (Inaccurate Comments) is present in a module,The source code contains comments that do not accurately describe or explain aspects of the portion of the code with which the comment is associated. +ACERT,CWE-1117,CWE-1117 (Callable with Insufficient Behavioral Summary) is present in a module,"The code contains a function or method whose signature and/or associated inline documentation does not sufficiently describe the callable's inputs, outputs, side effects, assumptions, or return codes." +ACERT,CWE-1118,CWE-1118 (Insufficient Documentation of Error Handling Techniques) is present in a module,"The documentation does not sufficiently describe the techniques that are used for error handling, exception processing, or similar mechanisms." +ACERT,CWE-1119,CWE-1119 (Excessive Use of Unconditional Branching) is present in a module,The code uses too many unconditional branches (such as goto). +ACERT,CWE-1120,CWE-1120 (Excessive Code Complexity) is present in a module,"The code is too complex, as calculated using a well-defined, quantitative measure." +ACERT,CWE-1121,CWE-1121 (Excessive McCabe Cyclomatic Complexity) is present in a module,The code contains McCabe cyclomatic complexity that exceeds a desirable maximum. +ACERT,CWE-1122,CWE-1122 (Excessive Halstead Complexity) is present in a module,The code is structured in a way that a Halstead complexity measure exceeds a desirable maximum. +ACERT,CWE-1123,CWE-1123 (Excessive Use of Self-Modifying Code) is present in a module,The product uses too much self-modifying code. +ACERT,CWE-1124,CWE-1124 (Excessively Deep Nesting) is present in a module,The code contains a callable or other code grouping in which the nesting / branching is too deep. +ACERT,CWE-1125,CWE-1125 (Excessive Attack Surface) is present in a module,The product has an attack surface whose quantitative measurement exceeds a desirable maximum. +ACERT,CWE-1126,CWE-1126 (Declaration of Variable with Unnecessarily Wide Scope) is present in a module,"The source code declares a variable in one scope, but the variable is only used within a narrower scope." +ACERT,CWE-1127,CWE-1127 (Compilation with Insufficient Warnings or Errors) is present in a module,"The code is compiled without sufficient warnings enabled, which may prevent the detection of subtle bugs or quality issues." +ACERT,CWE-1164,CWE-1164 (Irrelevant Code) is present in a module,"The program contains code that is not essential for execution, i.e. makes no state changes and has no side effects that alter data or control flow, such that removal of the code would have no impact to functionality or correctness." +ACERT,CWE-1173,CWE-1173 (Improper Use of Validation Framework) is present in a module,"The application does not use, or incorrectly uses, an input validation framework that is provided by the source language or an independent library." +ACERT,CWE-1174,CWE-1174 (ASP.NET Misconfiguration: Improper Model Validation) is present in a module,"The ASP.NET application does not use, or incorrectly uses, the model validation framework." +ACERT,CWE-1176,CWE-1176 (Inefficient CPU Computation) is present in a module,"The program performs CPU computations using algorithms that are not as efficient as they could be for the needs of the developer, i.e., the computations can be optimized further." +ACERT,CWE-1177,CWE-1177 (Use of Prohibited Code) is present in a module,"The software uses a function, library, or third party component that has been explicitly prohibited, whether by the developer or the customer." +ACERT,CWE-1188,CWE-1188 (Insecure Default Initialization of Resource) is present in a module,"The software initializes or sets a resource with a default that is intended to be changed by the administrator, but the default is not secure." +ACERT,CWE-1189,CWE-1189 (Improper Isolation of Shared Resources on System-on-a-Chip (SoC)) is present in a module,The System-On-a-Chip (SoC) does not properly isolate shared resources between trusted and untrusted agents. +ACERT,CWE-1190,CWE-1190 (DMA Device Enabled Too Early in Boot Phase) is present in a module,"The product enables a Direct Memory Access (DMA) capable device before the security configuration settings are established, which allows an attacker to extract data from or gain privileges on the product." +ACERT,CWE-1191,CWE-1191 (On-Chip Debug and Test Interface With Improper Access Control) is present in a module,The chip does not implement or does not correctly perform access control to check whether users are authorized to access internal registers and test modes through the physical debug/test interface. +ACERT,CWE-1192,"CWE-1192 (System-on-Chip (SoC) Using Components without Unique, Immutable Identifiers) is present in a module","The System-on-Chip (SoC) does not have unique, immutable identifiers for each of its components." +ACERT,CWE-1193,CWE-1193 (Power-On of Untrusted Execution Core Before Enabling Fabric Access Control) is present in a module,The product enables components that contain untrusted firmware before memory and fabric access controls have been enabled. +ACERT,CWE-1204,CWE-1204 (Generation of Weak Initialization Vector (IV)) is present in a module,"The product uses a cryptographic primitive that uses an Initialization Vector (IV), but the product does not generate IVs that are sufficiently unpredictable or unique according to the expected cryptographic requirements for that primitive." +ACERT,CWE-1209,CWE-1209 (Failure to Disable Reserved Bits) is present in a module,"The reserved bits in a hardware design are not disabled prior to production. Typically, reserved bits are used for future capabilities and should not support any functional logic in the design. However, designers might covertly use these bits to debug or further develop new capabilities in production hardware. Adversaries with access to these bits will write to them in hopes of compromising hardware state." +ACERT,CWE-1220,CWE-1220 (Insufficient Granularity of Access Control) is present in a module,"The product implements access controls via a policy or other feature with the intention to disable or restrict accesses (reads and/or writes) to assets in a system from untrusted agents. However, implemented access controls lack required granularity, which renders the control policy too broad because it allows accesses from unauthorized agents to the security-sensitive assets." +ACERT,CWE-1221,CWE-1221 (Incorrect Register Defaults or Module Parameters) is present in a module,Hardware description language code incorrectly defines register defaults or hardware IP parameters to insecure values. +ACERT,CWE-1222,CWE-1222 (Insufficient Granularity of Address Regions Protected by Register Locks) is present in a module,The product defines a large address region protected from modification by the same register lock control bit. This results in a conflict between the functional requirement that some addresses need to be writable by software during operation and the security requirement that the system configuration lock bit must be set during the boot process. +ACERT,CWE-1223,CWE-1223 (Race Condition for Write-Once Attributes) is present in a module,"A write-once register in hardware design is programmable by an untrusted software component earlier than the trusted software component, resulting in a race condition issue." +ACERT,CWE-1224,CWE-1224 (Improper Restriction of Write-Once Bit Fields) is present in a module,"The hardware design control register sticky bits or write-once bit fields are improperly implemented, such that they can be reprogrammed by software." +ACERT,CWE-1229,CWE-1229 (Creation of Emergent Resource) is present in a module,"The product manages resources or behaves in a way that indirectly creates a new, distinct resource that can be used by attackers in violation of the intended policy." +ACERT,CWE-1230,CWE-1230 (Exposure of Sensitive Information Through Metadata) is present in a module,"The product prevents direct access to a resource containing sensitive information, but it does not sufficiently limit access to metadata that is derived from the original, sensitive information." +ACERT,CWE-1231,CWE-1231 (Improper Prevention of Lock Bit Modification) is present in a module,"The product uses a trusted lock bit for restricting access to registers, address regions, or other resources, but the product does not prevent the value of the lock bit from being modified after it has been set." +ACERT,CWE-1232,CWE-1232 (Improper Lock Behavior After Power State Transition) is present in a module,"Register lock bit protection disables changes to system configuration once the bit is set. Some of the protected registers or lock bits become programmable after power state transitions (e.g., Entry and wake from low power sleep modes) causing the system configuration to be changeable." +ACERT,CWE-1233,CWE-1233 (Security-Sensitive Hardware Controls with Missing Lock Bit Protection) is present in a module,"The product uses a register lock bit protection mechanism, but it does not ensure that the lock bit prevents modification of system registers or controls that perform changes to important hardware system configuration." +ACERT,CWE-1234,CWE-1234 (Hardware Internal or Debug Modes Allow Override of Locks) is present in a module,System configuration protection may be bypassed during debug mode. +ACERT,CWE-1235,CWE-1235 (Incorrect Use of Autoboxing and Unboxing for Performance Critical Operations) is present in a module,"The code uses boxed primitives, which may introduce inefficiencies into performance-critical operations." +ACERT,CWE-1236,CWE-1236 (Improper Neutralization of Formula Elements in a CSV File) is present in a module,"The software saves user-provided information into a Comma-Separated Value (CSV) file, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as a command when the file is opened by spreadsheet software." +ACERT,CWE-1239,CWE-1239 (Improper Zeroization of Hardware Register) is present in a module,The hardware product does not properly clear sensitive information from built-in registers when the user of the hardware block changes. +ACERT,CWE-1240,CWE-1240 (Use of a Cryptographic Primitive with a Risky Implementation) is present in a module,"To fulfill the need for a cryptographic primitive, the product implements a cryptographic algorithm using a non-standard, unproven, or disallowed/non-compliant cryptographic implementation." +ACERT,CWE-1241,CWE-1241 (Use of Predictable Algorithm in Random Number Generator) is present in a module,The device uses an algorithm that is predictable and generates a pseudo-random number. +ACERT,CWE-1242,CWE-1242 (Inclusion of Undocumented Features or Chicken Bits) is present in a module,The device includes chicken bits or undocumented features that can create entry points for unauthorized actors. +ACERT,CWE-1243,CWE-1243 (Sensitive Non-Volatile Information Not Protected During Debug) is present in a module,Access to security-sensitive information stored in fuses is not limited during debug. +ACERT,CWE-1244,CWE-1244 (Internal Asset Exposed to Unsafe Debug Access Level or State) is present in a module,"The product uses physical debug or test interfaces with support for multiple access levels, but it assigns the wrong debug access level to an internal asset, providing unintended access to the asset from untrusted debug agents." +ACERT,CWE-1245,CWE-1245 (Improper Finite State Machines (FSMs) in Hardware Logic) is present in a module,"Faulty finite state machines (FSMs) in the hardware logic allow an attacker to put the system in an undefined state, to cause a denial of service (DoS) or gain privileges on the victim's system." +ACERT,CWE-1246,CWE-1246 (Improper Write Handling in Limited-write Non-Volatile Memories) is present in a module,The product does not implement or incorrectly implements wear leveling operations in limited-write non-volatile memories. +ACERT,CWE-1247,CWE-1247 (Improper Protection Against Voltage and Clock Glitches) is present in a module,The device does not contain or contains incorrectly implemented circuitry or sensors to detect and mitigate voltage and clock glitches and protect sensitive information or software contained on the device. +ACERT,CWE-1248,CWE-1248 (Semiconductor Defects in Hardware Logic with Security-Sensitive Implications) is present in a module,The security-sensitive hardware module contains semiconductor defects. +ACERT,CWE-1249,CWE-1249 (Application-Level Admin Tool with Inconsistent View of Underlying Operating System) is present in a module,"The product provides an application for administrators to manage parts of the underlying operating system, but the application does not accurately identify all of the relevant entities or resources that exist in the OS; that is, the application's model of the OS's state is inconsistent with the OS's actual state." +ACERT,CWE-1250,CWE-1250 (Improper Preservation of Consistency Between Independent Representations of Shared State) is present in a module,The product has or supports multiple distributed components or sub-systems that are each required to keep their own local copy of shared data - such as state or cache - but the product does not ensure that all local copies remain consistent with each other. +ACERT,CWE-1251,CWE-1251 (Mirrored Regions with Different Values) is present in a module,The product's architecture mirrors regions without ensuring that their contents always stay in sync. +ACERT,CWE-1252,CWE-1252 (CPU Hardware Not Configured to Support Exclusivity of Write and Execute Operations) is present in a module,The CPU is not configured to provide hardware support for exclusivity of write and execute operations on memory. This allows an attacker to execute data from all of memory. +ACERT,CWE-1253,CWE-1253 (Incorrect Selection of Fuse Values) is present in a module,The logic level used to set a system to a secure state relies on a fuse being unblown. An attacker can set the system to an insecure state merely by blowing the fuse. +ACERT,CWE-1254,CWE-1254 (Incorrect Comparison Logic Granularity) is present in a module,"The product's comparison logic is performed over a series of steps rather than across the entire string in one operation. If there is a comparison logic failure on one of these steps, the operation may be vulnerable to a timing attack that can result in the interception of the process for nefarious purposes." +ACERT,CWE-1255,CWE-1255 (Comparison Logic is Vulnerable to Power Side-Channel Attacks) is present in a module,A device's real time power consumption may be monitored during security token evaluation and the information gleaned may be used to determine the value of the reference token. +ACERT,CWE-1256,CWE-1256 (Improper Restriction of Software Interfaces to Hardware Features) is present in a module,"The product provides software-controllable device functionality for capabilities such as power and clock management, but it does not properly limit functionality that can lead to modification of hardware memory or register bits, or the ability to observe physical side channels." +ACERT,CWE-1257,CWE-1257 (Improper Access Control Applied to Mirrored or Aliased Memory Regions) is present in a module,Aliased or mirrored memory regions in hardware designs may have inconsistent read/write permissions enforced by the hardware. A possible result is that an untrusted agent is blocked from accessing a memory region but is not blocked from accessing the corresponding aliased memory region. +ACERT,CWE-1258,CWE-1258 (Exposure of Sensitive System Information Due to Uncleared Debug Information) is present in a module,"The hardware does not fully clear security-sensitive values, such as keys and intermediate values in cryptographic operations, when debug mode is entered." +ACERT,CWE-1259,CWE-1259 (Improper Restriction of Security Token Assignment) is present in a module,"The System-On-A-Chip (SoC) implements a Security Token mechanism to differentiate what actions are allowed or disallowed when a transaction originates from an entity. However, the Security Tokens are improperly protected." +ACERT,CWE-1260,CWE-1260 (Improper Handling of Overlap Between Protected Memory Ranges) is present in a module,"The product allows address regions to overlap, which can result in the bypassing of intended memory protection." +ACERT,CWE-1261,CWE-1261 (Improper Handling of Single Event Upsets) is present in a module,The hardware logic does not effectively handle when single-event upsets (SEUs) occur. +ACERT,CWE-1262,CWE-1262 (Improper Access Control for Register Interface) is present in a module,"The product uses memory-mapped I/O registers that act as an interface to hardware functionality from software, but there is improper access control to those registers." +ACERT,CWE-1263,CWE-1263 (Improper Physical Access Control) is present in a module,"The product is designed with access restricted to certain information, but it does not sufficiently protect against an unauthorized actor with physical access to these areas." +ACERT,CWE-1264,CWE-1264 (Hardware Logic with Insecure De-Synchronization between Control and Data Channels) is present in a module,The hardware logic for error handling and security checks can incorrectly forward data before the security check is complete. +ACERT,CWE-1265,CWE-1265 (Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls) is present in a module,"During execution of non-reentrant code, the software performs a call that unintentionally produces a nested invocation of the non-reentrant code." +ACERT,CWE-1266,CWE-1266 (Improper Scrubbing of Sensitive Data from Decommissioned Device) is present in a module,"The product does not properly provide a capability for the product administrator to remove sensitive data at the time the product is decommissioned. A scrubbing capability could be missing, insufficient, or incorrect." +ACERT,CWE-1267,CWE-1267 (Policy Uses Obsolete Encoding) is present in a module,The product uses an obsolete encoding mechanism to implement access controls. +ACERT,CWE-1268,CWE-1268 (Policy Privileges are not Assigned Consistently Between Control and Data Agents) is present in a module,The product's hardware-enforced access control for a particular resource improperly accounts for privilege discrepancies between control and write policies. +ACERT,CWE-1269,CWE-1269 (Product Released in Non-Release Configuration) is present in a module,The product released to market is released in pre-production or manufacturing configuration. +ACERT,CWE-1270,CWE-1270 (Generation of Incorrect Security Tokens) is present in a module,"The product implements a Security Token mechanism to differentiate what actions are allowed or disallowed when a transaction originates from an entity. However, the Security Tokens generated in the system are incorrect." +ACERT,CWE-1271,CWE-1271 (Uninitialized Value on Reset for Registers Holding Security Settings) is present in a module,Security-critical logic is not set to a known value on reset. +ACERT,CWE-1272,CWE-1272 (Sensitive Information Uncleared Before Debug/Power State Transition) is present in a module,"The product performs a power or debug state transition, but it does not clear sensitive information that should no longer be accessible due to changes to information access restrictions." +ACERT,CWE-1273,CWE-1273 (Device Unlock Credential Sharing) is present in a module,The credentials necessary for unlocking a device are shared across multiple parties and may expose sensitive information. +ACERT,CWE-1274,CWE-1274 (Improper Access Control for Volatile Memory Containing Boot Code) is present in a module,"The product conducts a secure-boot process that transfers bootloader code from Non-Volatile Memory (NVM) into Volatile Memory (VM), but it does not have sufficient access control or other protections for the Volatile Memory." +ACERT,CWE-1275,CWE-1275 (Sensitive Cookie with Improper SameSite Attribute) is present in a module,"The SameSite attribute for sensitive cookies is not set, or an insecure value is used." +ACERT,CWE-1276,CWE-1276 (Hardware Child Block Incorrectly Connected to Parent System) is present in a module,Signals between a hardware IP and the parent system design are incorrectly connected causing security risks. +ACERT,CWE-1277,CWE-1277 (Firmware Not Updateable) is present in a module,The product does not provide its users with the ability to update or patch its firmware to address any vulnerabilities or weaknesses that may be present. +ACERT,CWE-1278,CWE-1278 (Missing Protection Against Hardware Reverse Engineering Using Integrated Circuit (IC) Imaging Techniques) is present in a module,Information stored in hardware may be recovered by an attacker with the capability to capture and analyze images of the integrated circuit using techniques such as scanning electron microscopy. +ACERT,CWE-1279,CWE-1279 (Cryptographic Operations are run Before Supporting Units are Ready) is present in a module,Performing cryptographic operations without ensuring that the supporting inputs are ready to supply valid data may compromise the cryptographic result. +ACERT,CWE-1280,CWE-1280 (Access Control Check Implemented After Asset is Accessed) is present in a module,A product's hardware-based access control check occurs after the asset has been accessed. +ACERT,CWE-1281,CWE-1281 (Sequence of Processor Instructions Leads to Unexpected Behavior) is present in a module,Specific combinations of processor instructions lead to undesirable behavior such as locking the processor until a hard reset performed. +ACERT,CWE-1282,CWE-1282 (Assumed-Immutable Data is Stored in Writable Memory) is present in a module,"Immutable data, such as a first-stage bootloader, device identifiers, and write-once configuration settings are stored in writable memory that can be re-programmed or updated in the field." +ACERT,CWE-1283,CWE-1283 (Mutable Attestation or Measurement Reporting Data) is present in a module,The register contents used for attestation or measurement reporting data to verify boot flow are modifiable by an adversary. +ACERT,CWE-1284,CWE-1284 (Improper Validation of Specified Quantity in Input) is present in a module,"The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties." +ACERT,CWE-1285,"CWE-1285 (Improper Validation of Specified Index, Position, or Offset in Input) is present in a module","The product receives input that is expected to specify an index, position, or offset into an indexable resource such as a buffer or file, but it does not validate or incorrectly validates that the specified index/position/offset has the required properties." +ACERT,CWE-1286,CWE-1286 (Improper Validation of Syntactic Correctness of Input) is present in a module,"The product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax." +ACERT,CWE-1287,CWE-1287 (Improper Validation of Specified Type of Input) is present in a module,"The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type." +ACERT,CWE-1288,CWE-1288 (Improper Validation of Consistency within Input) is present in a module,"The product receives a complex input with multiple elements or fields that must be consistent with each other, but it does not validate or incorrectly validates that the input is actually consistent." +ACERT,CWE-1289,CWE-1289 (Improper Validation of Unsafe Equivalence in Input) is present in a module,"The product receives an input value that is used as a resource identifier or other type of reference, but it does not validate or incorrectly validates that the input is equivalent to a potentially-unsafe value." +ACERT,CWE-1290,CWE-1290 (Incorrect Decoding of Security Identifiers ) is present in a module,"The product implements a decoding mechanism to decode certain bus-transaction signals to security identifiers. If the decoding is implemented incorrectly, then untrusted agents can now gain unauthorized access to the asset." +ACERT,CWE-1291,CWE-1291 (Public Key Re-Use for Signing both Debug and Production Code) is present in a module,The same public key is used for signing both debug and production code. +ACERT,CWE-1292,CWE-1292 (Incorrect Conversion of Security Identifiers) is present in a module,"The product implements a conversion mechanism to map certain bus-transaction signals to security identifiers. However, if the conversion is incorrectly implemented, untrusted agents can gain unauthorized access to the asset." +ACERT,CWE-1293,CWE-1293 (Missing Source Correlation of Multiple Independent Data) is present in a module,"The software relies on one source of data, preventing the ability to detect if an adversary has compromised a data source." +ACERT,CWE-1294,CWE-1294 (Insecure Security Identifier Mechanism) is present in a module,"The System-on-Chip (SoC) implements a Security Identifier mechanism to differentiate what actions are allowed or disallowed when a transaction originates from an entity. However, the Security Identifiers are not correctly implemented." +ACERT,CWE-1295,CWE-1295 (Debug Messages Revealing Unnecessary Information) is present in a module,The product fails to adequately prevent the revealing of unnecessary and potentially sensitive system information within debugging messages. +ACERT,CWE-1296,CWE-1296 (Incorrect Chaining or Granularity of Debug Components) is present in a module,The product's debug components contain incorrect chaining or granularity of debug components. +ACERT,CWE-1297,CWE-1297 (Unprotected Confidential Information on Device is Accessible by OSAT Vendors) is present in a module,The product does not adequately protect confidential information on the device from being accessed by Outsourced Semiconductor Assembly and Test (OSAT) vendors. +ACERT,CWE-1298,CWE-1298 (Hardware Logic Contains Race Conditions) is present in a module,A race condition in the hardware logic results in undermining security guarantees of the system. +ACERT,CWE-1299,CWE-1299 (Missing Protection Mechanism for Alternate Hardware Interface) is present in a module,The lack of protections on alternate paths to access control-protected assets (such as unprotected shadow registers and other external facing unguarded interfaces) allows an attacker to bypass existing protections to the asset that are only performed against the primary path. +ACERT,CWE-1300,CWE-1300 (Improper Protection of Physical Side Channels) is present in a module,"The device does not contain sufficient protection mechanisms to prevent physical side channels from exposing sensitive information due to patterns in physically observable phenomena such as variations in power consumption, electromagnetic emissions (EME), or acoustic emissions." +ACERT,CWE-1301,CWE-1301 (Insufficient or Incomplete Data Removal within Hardware Component) is present in a module,The product's data removal process does not completely delete all data and potentially sensitive information within hardware components. +ACERT,CWE-1302,CWE-1302 (Missing Security Identifier) is present in a module,The product implements a security identifier mechanism to differentiate what actions are allowed or disallowed when a transaction originates from an entity. A transaction is sent without a security identifier. +ACERT,CWE-1303,CWE-1303 (Non-Transparent Sharing of Microarchitectural Resources) is present in a module,"Hardware structures shared across execution contexts (e.g., caches and branch predictors) can violate the expected architecture isolation between contexts." +ACERT,CWE-1304,CWE-1304 (Improperly Preserved Integrity of Hardware Configuration State During a Power Save/Restore Operation) is present in a module,"The product performs a power save/restore operation, but it does not ensure that the integrity of the configuration state is maintained and/or verified between the beginning and ending of the operation." +ACERT,CWE-1310,CWE-1310 (Missing Ability to Patch ROM Code) is present in a module,Missing an ability to patch ROM code may leave a System or System-on-Chip (SoC) in a vulnerable state. +ACERT,CWE-1311,CWE-1311 (Improper Translation of Security Attributes by Fabric Bridge) is present in a module,The bridge incorrectly translates security attributes from either trusted to untrusted or from untrusted to trusted when converting from one fabric protocol to another. +ACERT,CWE-1312,CWE-1312 (Missing Protection for Mirrored Regions in On-Chip Fabric Firewall) is present in a module,"The firewall in an on-chip fabric protects the main addressed region, but it does not protect any mirrored memory or memory-mapped-IO (MMIO) regions." +ACERT,CWE-1313,CWE-1313 (Hardware Allows Activation of Test or Debug Logic at Runtime) is present in a module,"During runtime, the hardware allows for test or debug logic (feature) to be activated, which allows for changing the state of the hardware. This feature can alter the intended behavior of the system and allow for alteration and leakage of sensitive data by an adversary." +ACERT,CWE-1314,CWE-1314 (Missing Write Protection for Parametric Data Values) is present in a module,"The device does not write-protect the parametric data values for sensors that scale the sensor value, allowing untrusted software to manipulate the apparent result and potentially damage hardware or cause operational failure." +ACERT,CWE-1315,CWE-1315 (Improper Setting of Bus Controlling Capability in Fabric End-point) is present in a module,The bus controller enables bits in the fabric end-point to allow responder devices to control transactions on the fabric. +ACERT,CWE-1316,CWE-1316 (Fabric-Address Map Allows Programming of Unwarranted Overlaps of Protected and Unprotected Ranges) is present in a module,"The address map of the on-chip fabric has protected and unprotected regions overlapping, allowing an attacker to bypass access control to the overlapping portion of the protected region." +ACERT,CWE-1317,CWE-1317 (Missing Security Checks in Fabric Bridge) is present in a module,"A bridge that is connected to a fabric without security features forwards transactions to the slave without checking the privilege level of the master. Similarly, it does not check the hardware identity of the transaction received from the slave interface of the bridge." +ACERT,CWE-1318,CWE-1318 (Missing Support for Security Features in On-chip Fabrics or Buses) is present in a module,"On-chip fabrics or buses either do not support or are not configured to support privilege separation or other security features, such as access control." +ACERT,CWE-1319,CWE-1319 (Improper Protection against Electromagnetic Fault Injection (EM-FI)) is present in a module,"The device is susceptible to electromagnetic fault injection attacks, causing device internal information to be compromised or security mechanisms to be bypassed." +ACERT,CWE-1320,CWE-1320 (Improper Protection for Out of Bounds Signal Level Alerts) is present in a module,Untrusted agents can disable alerts about signal conditions exceeding limits or the response mechanism that handles such alerts. +ACERT,CWE-1321,CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) is present in a module,"The software receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype." +ACERT,CWE-1322,"CWE-1322 (Use of Blocking Code in Single-threaded, Non-blocking Context) is present in a module","The product uses a non-blocking model that relies on a single threaded process for features such as scalability, but it contains code that can block when it is invoked." +ACERT,CWE-1323,CWE-1323 (Improper Management of Sensitive Trace Data) is present in a module,Trace data collected from several sources on the System-on-Chip (SoC) is stored in unprotected locations or transported to untrusted agents. +ACERT,CWE-1324,CWE-1324 (Sensitive Information Accessible by Physical Probing of JTAG Interface) is present in a module,"Sensitive information in clear text on the JTAG interface may be examined by an eavesdropper, e.g. by placing a probe device on the interface such as a logic analyzer, or a corresponding software technique." +ACERT,CWE-1325,CWE-1325 (Improperly Controlled Sequential Memory Allocation) is present in a module,"The product manages a group of objects or resources and performs a separate memory allocation for each object, but it does not properly limit the total amount of memory that is consumed by all of the combined objects." +ACERT,CWE-1326,CWE-1326 (Missing Immutable Root of Trust in Hardware) is present in a module,A missing immutable root of trust in the hardware results in the ability to bypass secure boot or execute untrusted or adversarial boot code. +ACERT,CWE-1327,CWE-1327 (Binding to an Unrestricted IP Address) is present in a module,"The product assigns the address 0.0.0.0 for a database server, a cloud service/instance, or any computing resource that communicates remotely." +ACERT,CWE-1328,CWE-1328 (Security Version Number Mutable to Older Versions) is present in a module,"Security-version number in hardware is mutable, resulting in the ability to downgrade (roll-back) the boot firmware to vulnerable code versions." +ACERT,CWE-1329,CWE-1329 (Reliance on Component That is Not Updateable) is present in a module,The product contains a component that cannot be updated or patched in order to remove vulnerabilities or significant bugs. +ACERT,CWE-1330,CWE-1330 (Remanent Data Readable after Memory Erase) is present in a module,Confidential information stored in memory circuits is readable or recoverable after being cleared or erased. +ACERT,CWE-1331,CWE-1331 (Improper Isolation of Shared Resources in Network On Chip (NoC)) is present in a module,"The Network On Chip (NoC) does not isolate or incorrectly isolates its on-chip-fabric and internal resources such that they are shared between trusted and untrusted agents, creating timing channels." +ACERT,CWE-1332,CWE-1332 (Improper Handling of Faults that Lead to Instruction Skips) is present in a module,The device is missing or incorrectly implements circuitry or sensors that detect and mitigate the skipping of security-critical CPU instructions when they occur. +ACERT,CWE-1333,CWE-1333 (Inefficient Regular Expression Complexity) is present in a module,"The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles." +ACERT,CWE-1334,CWE-1334 (Unauthorized Error Injection Can Degrade Hardware Redundancy) is present in a module,An unauthorized agent can inject errors into a redundant block to deprive the system of redundancy or put the system in a degraded operating mode. +ACERT,CWE-1335,CWE-1335 (Incorrect Bitwise Shift of Integer) is present in a module,An integer value is specified to be shifted by a negative amount or an amount greater than or equal to the number of bits contained in the value causing an unexpected or indeterminate result. +ACERT,CWE-1336,CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) is present in a module,"The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine." +ACERT,CWE-1338,CWE-1338 (Improper Protections Against Hardware Overheating) is present in a module,A hardware device is missing or has inadequate protection features to prevent overheating. +ACERT,CWE-1339,CWE-1339 (Insufficient Precision or Accuracy of a Real Number) is present in a module,"The program processes a real number with an implementation in which the number’s representation does not preserve required accuracy and precision in its fractional part, causing an incorrect result." +ACERT,CWE-1341,CWE-1341 (Multiple Releases of Same Resource or Handle) is present in a module,"The product attempts to close or release a resource or handle more than once, without an intervening successful open." +ACERT,CWE-1342,CWE-1342 (Information Exposure through Microarchitectural State after Transient Execution) is present in a module,"The processor does not properly clear microarchitectural state after incorrect microcode assists or speculative execution, resulting in transient execution." +ACERT,CWE-1351,CWE-1351 (Improper Handling of Hardware Behavior in Exceptionally Cold Environments) is present in a module,"A hardware device, or the firmware running on it, is missing or has incorrect protection features to maintain goals of security primitives when the device is cooled below standard operating temperatures." \ No newline at end of file diff --git a/RACK-Ontology/ontology/claims/THEORIES.csv b/RACK-Ontology/ontology/claims/THEORIES.csv new file mode 100644 index 00000000..4f79a4a4 --- /dev/null +++ b/RACK-Ontology/ontology/claims/THEORIES.csv @@ -0,0 +1,8 @@ +source,identifier,title,description +ACERT,SA_BINARY_CWE_Detection,Static Analysis Binary CWE Detection,Static analysis on binaries: CWE detection +DesCert,Theory_CLEAR_Requirements_based_Test_Oracles_Creation,Theory CLEAR Requirements based Test Oracles Creation,All required test oracles were generated from the set of CLEAR requirements +DesCert,Theory_TestCase_Evaluation_of_TestOracle,Theory TestCase Evaluation of TestOracle,All test cases were evaluated to adequately cover specific test oracles +DesCert,Theory_RADL_Architectural_Gurantee,Theory RADL Architectural Gurantee, +DesCert,Theory_Checker_Fmwk_Ontic_Type_Code_Analysis,Theory Checker Fmwk Ontic Type Code Analysis, +DesCert,Theory_CLEAR_Formal_Requirements_Analysis,Theory CLEAR Formal Requirements Analysis, +DesCert,Theory_Model_Checking,Theory Model Checking, \ No newline at end of file diff --git a/RACK-Ontology/ontology/claims/import.yaml b/RACK-Ontology/ontology/claims/import.yaml new file mode 100644 index 00000000..0670e226 --- /dev/null +++ b/RACK-Ontology/ontology/claims/import.yaml @@ -0,0 +1,5 @@ +data-graph: "http://rack001/model" +ingestion-steps: +- {class: "http://arcos.rack/CLAIM#THEORY", csv: "THEORIES.csv" } +- {class: "http://arcos.rack/CLAIM#CONCERN_TYPE", csv: "CONCERN_TYPES.csv" } +- {class: "http://arcos.rack/PROCESS#PROPERTY_TYPE", csv: "PROPERTY_TYPES.csv" } diff --git a/README.md b/README.md index 8515debe..a00d8b68 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,27 @@ can be found [here](https://github.com/ge-high-assurance/RACK/wiki#log4j-securit # Introducing RACK -RACK (Rapid Assurance Curation Kit) is a research-grade database that uses a structured semantic data model tuned to the domain of the DARPA ARCOS (Automated Rapid Certification Of Software) program. +RACK (Rapid Assurance Curation Kit) is a research-grade database that uses a structured semantic data model tuned to the domain of the DARPA ARCOS (Automated Rapid Certification Of Software) program. Additionally, we offer a suite of tools for data curation and assurance interpretation. RACK Overview Diagram As shown above, RACK takes in evidence in the form of technical documents, test cases and test results, analysis reports, and other results that aid in documenting certification of complex systems. RACK also takes as input the _provenance_ of that data, as well as its relationship to the _structure_ of the relevant system. Specifically, RACK provides a data ingestion interface primarily for use by ARCOS TA1 performers, whose primary focus in ARCOS is to provide evidence from which assurance arguments can be crafted. RACK also provides a query interface for use by TA3 performers, whose primary focus in ARCOS is the construction of compelling assurance arguments. RACK queries allow users to find evidence related to diverse parts of the target system, understand where that evidence came from, and what the evidence infers about that system. While RACK aims to fully support the needs of the ARCOS program, we emphasize that RACK is not intended to be production-ready software. + +## Publications + +If you are citing RACK project, please use the following BibTex entries: +```latex +@inproceedings{moitra2022semantic, + title={A Semantic Reference Model for Capturing System Development and Evaluation}, + author={Moitra, Abha and Cuddihy, Paul and Siu, Kit and Meng, Baoluo and Interrante, John and Archer, David and Mertens, Eric and Quick, Kevin and Robert, Valentin and Russell, Daniel}, + booktitle={2022 IEEE 16th International Conference on Semantic Computing (ICSC)}, + pages={173--174}, + year={2022}, + organization={IEEE} +} +``` + ## The RACK Deployment Model To make RACK easy for all ARCOS performers to use, we deploy RACK as a software appliance that any user can download, install, and run in a local environment. This deployment model, which we call RACK-in-a-Box, makes it easy for both TA1 and TA3 performers to test software against the RACK APIs at will, without worrying about interfering accidentally with other users. In addition, our model allows for users to concurrently collaborate at will across TAs. For example, a TA1 user can send a set of sample data to a TA3 user, so that the TA3 user can ingest that data in a private RACK instance and develop query techniques independently. RACK's deployment approach achieves this flexibility while retaining ease of deployment in a centralized cloud instance, such as we might use during an ARCOS system evaluation experiment. @@ -21,7 +36,7 @@ To make RACK easy for all ARCOS performers to use, we deploy RACK as a software RACK is available as both a Linux container and a virtual machine, and is supported on Linux, Windows, and MacOS systems. To learn more and get detailed instructions on how to get started, see our [Installation Instructions](https://github.com/ge-high-assurance/RACK/wiki/Home#installation-instructions). --- -Copyright (c) 2021, General Electric Company, Galois, Inc. +Copyright (c) 2021-2022 General Electric Company, Galois, Inc. All Rights Reserved diff --git a/SRI-Ontology/ontology/SRI.sadl b/SRI-Ontology/ontology/SRI.sadl index 3ecb357c..87d5ea6e 100644 --- a/SRI-Ontology/ontology/SRI.sadl +++ b/SRI-Ontology/ontology/SRI.sadl @@ -17,6 +17,7 @@ import "http://arcos.rack/ANALYSIS". import "http://arcos.rack/PROCESS". import "http://arcos.rack/AGENTS". import "http://arcos.rack/MODEL". +import "http://arcos.rack/CLAIM". import "http://arcos.AH-64D/Boeing". DesCert_Tool is a type of TOOL. @@ -61,21 +62,7 @@ import "http://arcos.AH-64D/Boeing". propertyBasis is a type of wasImpactedBy. // NOTE: a SpecificProperty is modeled by entities such as SallyPropertyModel; that's where the property text is contained - // DB 4/18/22: changed to inherit from ENTITY rather than ANALYSIS_OUTPUT, since PropertyResult can exist without an anlaysis or another activity - // Added new attributes goalProperty and establishedBy - PropertyResult (note "Result corresponding to one method/attempt to prove a PROPERTY") is a type of ENTITY. - propertyResult (note "Valid/Invalid/Unknown status of this PropertyResult") describes PropertyResult with a single value of type PropertyProofStatus. - // The property being proven by this property result; the property has all relevant information about scope and basis - goalProperty (note "the PROPERTY this result is for") describes PropertyResult with a single value of type PROPERTY. // single value is mandatory, otherwise PropertyResult is meaningless - resultDiagnostics (note "counter examples, other diagnostics") describes PropertyResult with values of type ENTITY. - establishedBy (note "the ACTIVITY, ENTITY that establishes (proves) the propertyResult to be Valid/Invalid/Unknown") describes PropertyResult with values of type THING. - // inherited attribute wasGeneratedBy can also be used when PropertyResult is created by an ACTIVITY, but establishedBy is the main one still needed - - PropertyProofStatus (note "Outcome of the attempt to prove a property") is a type of THING, - must be one of {Valid, Invalid, Unknown}. - Valid (note "property is valid (proven to hold)") is a PropertyProofStatus with identifier "Valid". - Invalid (note "property is invalid (proven to not hold)") is a PropertyProofStatus with identifier "Invalid". - Unknown (note "property cannot be proven to hold or to not hold") is a PropertyProofStatus with identifier "Unknown". + // DB 11/1/22: PropertyResult and PropertyProofStatus not needed due to chnages in core ontology //////////////////////////////////////////////// // System architecture and analysis @@ -220,8 +207,9 @@ import "http://arcos.AH-64D/Boeing". // DB 2/25/22: inherit testGenInfo and testGenInput from DesCertTestGeneration testGenInput of ClearTestAndOracleGeneration only has values of type {SoftwareHighLevelRequirementSet or SoftwareLowLevelRequirementSet or DataDictionary}. - ClearTestingTheory is a type of ENTITY. - testingTheoryDoc describes ClearTestingTheory with values of type DOCUMENT. + // DB 11/1/22: not needed due to use of core class THEORY + // ClearTestingTheory is a type of ENTITY. + // testingTheoryDoc describes ClearTestingTheory with values of type DOCUMENT. TestOracle (note "a test obligation on a specific behavior specified in a sub-clause of a requirement") is a type of ENTITY. // DB 2/9/22: verifiesRequirement is a new property in TestOracle, not inherited from ENTITY @@ -230,7 +218,7 @@ import "http://arcos.AH-64D/Boeing". verifiesRequirement is a type of wasImpactedBy. requirementSubclause (note "part (subclause) of the requirement this test oracle tests") describes TestOracle with values of type string. testOracleCriteria (note "e.g., equiv class, boundary value") describes TestOracle with a single value of type string. - testOracleTheory describes TestOracle with a single value of type ClearTestingTheory. + testOracleTheory describes TestOracle with a single value of type THEORY. // Inherited properties: // title: a name for the TestOracle that is more descriptive than the identifier @@ -293,7 +281,7 @@ import "http://arcos.AH-64D/Boeing". analysisConfiguration of DaikonInvariantDetection only has values of type ToolConfigurationInstance. // DB 2/8/22: not using ConfigurationString analyzedWith of DaikonInvariantDetection only has values of type TOOL. - analyzedWith describes DaikonInvariantDetection with exactly 1 value. + analyzedWith of DaikonInvariantDetection has exactly 1 value. analysisInput of DaikonInvariantDetection only has values of type {SourceCode or RandoopTestsAndMetrics}. DaikonInvariantOutput is a type of ENTITY. diff --git a/ScrapingToolKit/AutoGeneration/Generate-STK.py b/ScrapingToolKit/AutoGeneration/Generate-STK.py new file mode 100755 index 00000000..e067ec82 --- /dev/null +++ b/ScrapingToolKit/AutoGeneration/Generate-STK.py @@ -0,0 +1,211 @@ +#!/usr/bin/env python3 +# +# Copyright (c) 2021-2022, General Electric Company, Inc. +# +# All Rights Reserved +# +# This material is based upon work supported by the Defense Advanced Research +# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. +# +# Any opinions, findings and conclusions or recommendations expressed in this +# material are those of the author(s) and do not necessarily reflect the views +# of the Defense Advanced Research Projects Agency (DARPA). + +import os +import json +import semtk3 +xmlProperty = ''' + ''' + +xmlElementHeader =''' + + + ''' + +xmlElementFooter =''' + + + ''' + +xmlFooter = ''' + + + +''' + +xmlHeader = ''' + + + + ''' +addFunctionComment = """ ''' + |===============================================================| + | {:^61} | + |===============================================================| + | {:61} | + |---------------------------------------------------------------|{} + |===============================================================| + + ''' + @staticmethod +""" +addDataTypeComment = """ + | {:40}: {:16} |""" +addFileHeader = """#!/usr/bin/env python3 +# +# Copyright (c) 2022, General Electric Company, Galois, Inc. +# +# All Rights Reserved +# +# This material is based upon work supported by the Defense Advanced Research +# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. +# +# Any opinions, findings and conclusions or recommendations expressed in this +# material are those of the author(s) and do not necessarily reflect the views +# of the Defense Advanced Research Projects Agency (DARPA). +from Logging import * +from Evidence import * +''' + + +======================================================================= + + This file is Auto-Generated by GenFiles.py. + Any changes made to this file may be over written. + +======================================================================= +''' +""" + +connString = """{ + "model":[ + {"type":"fuseki","url":"http://localhost:3030/RACK","graph":"http://rack001/model"} + ], + "data":[] +}""" + + +def cleanName(string): + newString = "" + for c in string: + if c.isalnum(): + newString+=c + else: + newString+="_" + return newString + +def genDataTypeComment(templateData): + dataTypeComment = "" + for p in sorted(templateData): + dataTypeComment += addDataTypeComment.format(p, templateData[p]) + return dataTypeComment + +def genFunctionDef(className,templateData): + functionDef = " def {}(".format(className) + for p in sorted(templateData): + functionDef += p+"=None, " + return functionDef.rstrip(", ")+"):\n" + +def genFunctionBody(groupName,className,templateData): + pyAddString = ' trace()\n' + pyAddString += ' log("Adding Evidence:",str_good("'+className+'"))\n' + pyAddString += ' objStr = "<{}_{}>"\n'.format(groupName,className) + for p in sorted(templateData): + pyAddString += ' objStr += objectDataString("{propName}", {propName})\n'.replace('{propName}',p) + pyAddString += ' objStr += ""\n'.format(groupName,className) + pyAddString += ' addEvidenceObject(etree.fromstring(objStr))\n\n' + return pyAddString + +def genXsdProperties(templateData): + xsdProperties = "" + for p in sorted(templateData): + xsdProperties += xmlProperty.format(p, templateData[p]) + return xsdProperties + +def generateFiles(orgDict): + directoryPath = os.path.dirname(os.path.realpath(__file__)) + + # Generate File Paths + pyAddFilePath = os.path.realpath(os.path.join(directoryPath, "..","Evidence","Add.py")) + XsdFilePath = os.path.realpath(os.path.join(directoryPath, "..","Evidence","RACK-DATA.xsd")) + pyConstantsFilePath = os.path.realpath(os.path.join(directoryPath, "..","Evidence","CONSTANTS.py")) + + # Create File objects + pyAddFile = open(pyAddFilePath,"w") + pyConstantsFile = open(pyConstantsFilePath,"w") + xsdFile = open(XsdFilePath,"w") + + # Write Headers to files + pyAddFile.write(addFileHeader) + pyConstantsFile.write('nodegroupMapping = {\n') + xsdFile.write(xmlHeader) + + pyConstantsString = "" + + # Loop for Namespace Groups + for o in sorted(orgDict): + groupName = cleanName(o) + print("Generating for {}...".format(groupName)) + pyAddFile.write("class {}:\n".format(groupName)) + + # Loop for Classes + for c in sorted(orgDict[o]): + print(" {}...".format(orgDict[o][c])) + className = cleanName(c) + + # add a Line to the Constants string + pyConstantsString += ' "{}_{}":"{}",\n'.format(groupName,className,orgDict[o][c]) + + # Query semtk to get the Ingestion Template information + templateData = getTemplate(orgDict[o][c]) + + # Write XSD + xsdFile.write(xmlElementHeader.format(groupName,className)) + xsdFile.write(genXsdProperties(templateData)) + xsdFile.write(xmlElementFooter) + + # write Add Function + pyAddFile.write(addFunctionComment.format(orgDict[o][c],"Add.{}.{}()".format(groupName,className), genDataTypeComment(templateData))) + pyAddFile.write(genFunctionDef(className, templateData)) + pyAddFile.write(genFunctionBody(groupName,className, templateData)) + + # Write Footers + pyConstantsFile.write(pyConstantsString.rstrip(",\n") + '}') + xsdFile.write(xmlFooter) + + # Close open file objects + pyAddFile.close() + pyConstantsFile.close() + xsdFile.close() + +def getTemplate(classUri): + nodeProperties = {} + (ng, col_names_str, col_types_str) = semtk3.get_class_template_and_csv(classUri, id_regex="identifier") + col_names = col_names_str.rstrip().split(",") + col_types = col_types_str.rstrip().split(",") + + for cn in col_names: + nodeProperties[cn] = col_types[col_names.index(cn)] + return nodeProperties + +def organizeClasses(classList): + orgDict = {} + for c in classList: + className = c.split("#")[-1] + groupName = c.split("#")[0].split("/")[-1] + if groupName not in orgDict: + orgDict[groupName] = {} + orgDict[groupName][className] = c + return orgDict + +if __name__ == "__main__": + # First Connect to semTK + semtk3.set_connection_override(connString) + all_ok = semtk3.check_services(); + if not all_ok: + raise Exception("Semtk services are not properly running on localhost") + + classList = semtk3.get_class_names() + orgDict = organizeClasses(classList) + generateFiles(orgDict) + diff --git a/ScrapingToolKit/AutoGeneration/ReadNodegroups.py b/ScrapingToolKit/AutoGeneration/ReadNodegroups.py deleted file mode 100755 index 7103381c..00000000 --- a/ScrapingToolKit/AutoGeneration/ReadNodegroups.py +++ /dev/null @@ -1,151 +0,0 @@ -#!/usr/bin/env python3 -# -# Copyright (c) 2021, General Electric Company, Inc. -# -# All Rights Reserved -# -# This material is based upon work supported by the Defense Advanced Research -# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. -# -# Any opinions, findings and conclusions or recommendations expressed in this -# material are those of the author(s) and do not necessarily reflect the views -# of the Defense Advanced Research Projects Agency (DARPA). - -import os -import json - -def createConstants(jsons): - directoryPath = os.path.dirname(os.path.realpath(__file__)) - pythonFilePath = os.path.realpath(os.path.join(directoryPath, "..","Evidence","CONSTANTS.py")) - with open(pythonFilePath,"w") as pyFile: - pyString = 'nodegroupMapping = {\n' - for j in sorted(jsons.keys()): - pyString += ' "'+j+'":"'+os.path.basename(jsons[j]).replace(".json","")+'",\n' - pyString = pyString.rstrip(",\n") + '}' - pyFile.write(pyString) - - -def createPython(nodegroups): - directoryPath = os.path.dirname(os.path.realpath(__file__)) - pythonFilePath = os.path.realpath(os.path.join(directoryPath, "..","Evidence","Add.py")) - with open(pythonFilePath,"w") as pyFile: - pyFile.write("""#!/usr/bin/env python3 -# -# Copyright (c) 2021, General Electric Company, Galois, Inc. -# -# All Rights Reserved -# -# This material is based upon work supported by the Defense Advanced Research -# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. -# -# Any opinions, findings and conclusions or recommendations expressed in this -# material are those of the author(s) and do not necessarily reflect the views -# of the Defense Advanced Research Projects Agency (DARPA). -from Logging import * -from Evidence import * -''' - - -======================================================================= - - This file is Auto-Generated by GenFiles.py. - Any changes made to this file may be over written. - -======================================================================= -''' -""") - nodeList = list(nodegroups.keys()) - nodeList.sort() - for n in nodeList: - propList = list(nodegroups[n].keys()) - propList.sort() - pyString = "def "+n+"(" - for p in propList: - pyString += nodegroups[n][p]["columnName"]+"=None, " - pyString = pyString.rstrip(", ")+"):\n" - pyString += ' trace()\n' - pyString += ' log("Adding Evidence:",str_good("'+n+'"))\n' - pyString += ' objStr = "<'+n+'>"\n' - for p in propList: - pyString += ' objStr += objectDataString("{propName}", {propName})\n'.replace('{propName}',nodegroups[n][p]["columnName"]) - pyString += ' objStr += ""\n' - pyString += ' addEvidenceObject(etree.fromstring(objStr))\n\n' - pyFile.write(pyString) - -def createXsd(nodegroups): - directoryPath = os.path.dirname(os.path.realpath(__file__)) - XsdFilePath = os.path.realpath(os.path.join(directoryPath, "..","Evidence","RACK-DATA.xsd")) - - with open(XsdFilePath,"w") as xmlFile: - xmlFile.write(''' - - - - -''') - nodeList = list(nodegroups.keys()) - nodeList.sort() - for n in nodeList: - xmlFile.write(' \n') - xmlFile.write(' \n') - xmlFile.write(' \n') - propList = list(nodegroups[n].keys()) - propList.sort() - for p in propList: - xmlFile.write(' \n') - xmlFile.write(' \n') - xmlFile.write(' \n') - xmlFile.write(' \n') - xmlFile.write(''' - - - -''') -def processNodegroup(jsonPath): - nodeProperties = {} - with open(jsonPath) as jsonFile: - data = json.load(jsonFile) - for sNode in data["sNodeGroup"]["sNodeList"]: - for prop in sNode["propList"]: - if prop["SparqlID"] != "": - nodeProperties[prop["SparqlID"]] = {} - nodeProperties[prop["SparqlID"]]["SparqlID"] = prop["SparqlID"] - nodeProperties[prop["SparqlID"]]["columnName"] = prop["SparqlID"][1:] - nodeProperties[prop["SparqlID"]]["UriRelationship"] = prop["UriRelationship"] - nodeProperties[prop["SparqlID"]]["relationship"] = prop["relationship"] - return nodeProperties - -def createDataNameFromIngestFileName(name): - dataName = name.replace("ingest_","")\ - .replace(".json","")\ - .replace("-","_")\ - .replace(".","_")\ - .replace("+","_")\ - .replace("=","_") - return dataName - -def findIngestionJsons(jsonDir): - ingestNodegroups = {} - for root, dirs, files in os.walk(jsonDir): - for name in files: - if name.startswith("ingest_") and name.endswith(".json"): - dataName = createDataNameFromIngestFileName(name) - if dataName not in ingestNodegroups: - ingestNodegroups[dataName] = os.path.join(root, name) - else: - print("**** ERROR - multiple class names", dataName,":",name,":",ingestNodegroups[dataName]) - return ingestNodegroups - -if __name__ == "__main__": - nodegroups = {} - directoryPath = os.path.dirname(os.path.realpath(__file__)) - nodgroupPath = os.path.realpath(os.path.join(directoryPath, "..","..","nodegroups")) - jsons = findIngestionJsons(nodgroupPath) - createConstants(jsons) - for j in sorted(jsons.keys()): - print("Processing Nodegroup :",j) - nodegroups[j] = processNodegroup(jsons[j]) - createXsd(nodegroups) - createPython(nodegroups) diff --git a/ScrapingToolKit/Evidence/Add.py b/ScrapingToolKit/Evidence/Add.py deleted file mode 100644 index 153b1d63..00000000 --- a/ScrapingToolKit/Evidence/Add.py +++ /dev/null @@ -1,5211 +0,0 @@ -#!/usr/bin/env python3 -# -# Copyright (c) 2021, General Electric Company, Galois, Inc. -# -# All Rights Reserved -# -# This material is based upon work supported by the Defense Advanced Research -# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. -# -# Any opinions, findings and conclusions or recommendations expressed in this -# material are those of the author(s) and do not necessarily reflect the views -# of the Defense Advanced Research Projects Agency (DARPA). -from Logging import * -from Evidence import * -''' - - -======================================================================= - - This file is Auto-Generated by GenFiles.py. - Any changes made to this file may be over written. - -======================================================================= -''' -def ACTIVITY(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("ACTIVITY")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AGENT(actedOnBehalfOf_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("AGENT")) - objStr = "" - objStr += objectDataString("actedOnBehalfOf_identifier", actedOnBehalfOf_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_CSID_Req(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_CSID_Req")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_DevelopSystemArchitecture(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_DevelopSystemArchitecture")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_DevelopSystemConOps(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_DevelopSystemConOps")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_PIDS_Doc(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_PIDS_Doc")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_PIDS_Req(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_PIDS_Req")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SBVT_Result(confirms_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, result_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SBVT_Result")) - objStr = "" - objStr += objectDataString("confirms_identifier", confirms_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("result_identifier", result_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SBVT_Test(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, verifies_identifier=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SBVT_Test")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("verifies_identifier", verifies_identifier) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SRS_Doc(approvalAuthority_identifier=None, content_identifier=None, createdBy_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SRS_Doc")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("createdBy_identifier", createdBy_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SRS_Req(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SRS_Req")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SoftwareCoding(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, referenced_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SoftwareCoding")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("referenced_identifier", referenced_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SoftwareDesign(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, referenced_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SoftwareDesign")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("referenced_identifier", referenced_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SoftwareHighLevelRequirementsDefinition(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, referenced_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SoftwareHighLevelRequirementsDefinition")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("referenced_identifier", referenced_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SubDD_Doc(approvalAuthority_identifier=None, content_identifier=None, createdBy_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SubDD_Doc")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("createdBy_identifier", createdBy_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SubDD_Req(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SubDD_Req")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SystemArchitecture(ArchitectureOf_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SystemArchitecture")) - objStr = "" - objStr += objectDataString("ArchitectureOf_identifier", ArchitectureOf_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SystemConOps(conOpsDocs_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SystemConOps")) - objStr = "" - objStr += objectDataString("conOpsDocs_identifier", conOpsDocs_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def AH_64D_SystemRequirementsDefinition(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, referenced_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("AH_64D_SystemRequirementsDefinition")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("referenced_identifier", referenced_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def ANALYSIS(analysisConfiguration_identifier=None, analysisInput_identifier=None, analyzedWith_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, runBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("ANALYSIS")) - objStr = "" - objStr += objectDataString("analysisConfiguration_identifier", analysisConfiguration_identifier) - objStr += objectDataString("analysisInput_identifier", analysisInput_identifier) - objStr += objectDataString("analyzedWith_identifier", analyzedWith_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("runBy_identifier", runBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def ANALYSIS_OUTPUT(analyzes_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("ANALYSIS_OUTPUT")) - objStr = "" - objStr += objectDataString("analyzes_identifier", analyzes_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def ASSESSING_CONFIDENCE(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("ASSESSING_CONFIDENCE")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def BASELINE(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("BASELINE")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def BDU_CONFIDENCE_ASSESSMENT(assesses_identifier=None, belief=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, disbelief=None, identifier=None, title=None, uncertainty=None): - trace() - log("Adding Evidence:",str_good("BDU_CONFIDENCE_ASSESSMENT")) - objStr = "" - objStr += objectDataString("assesses_identifier", assesses_identifier) - objStr += objectDataString("belief", belief) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("disbelief", disbelief) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("uncertainty", uncertainty) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def BUILD(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, step_identifier=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("BUILD")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("step_identifier", step_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def CODE_DEVELOPMENT(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, referenced_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("CODE_DEVELOPMENT")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("referenced_identifier", referenced_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def CODE_GEN(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("CODE_GEN")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def COLLECTION(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("COLLECTION")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def COMPILE(compileInput_identifier=None, compiledBy_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, performedBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("COMPILE")) - objStr = "" - objStr += objectDataString("compileInput_identifier", compileInput_identifier) - objStr += objectDataString("compiledBy_identifier", compiledBy_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("performedBy_identifier", performedBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def COMPONENT_TYPE(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("COMPONENT_TYPE")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def CONFIDENCE_ASSESSMENT(assesses_identifier=None, belief=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, disbelief=None, identifier=None, title=None, uncertainty=None): - trace() - log("Adding Evidence:",str_good("CONFIDENCE_ASSESSMENT")) - objStr = "" - objStr += objectDataString("assesses_identifier", assesses_identifier) - objStr += objectDataString("belief", belief) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("disbelief", disbelief) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("uncertainty", uncertainty) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def CONTROL(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("CONTROL")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def CONTROLSET(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("CONTROLSET")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def Connection(commodity=None, connectionType_identifier=None, dataInsertedBy_identifier=None, dataReceivedIsUntrusted=None, dataSentIsUntrusted=None, definedIn_identifier=None, description=None, destination_identifier=None, entityURL=None, generatedAtTime=None, identifier=None, inPort_identifier=None, infoFlowSeverity=None, invalidatedAtTime=None, outPort_identifier=None, source_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("Connection")) - objStr = "" - objStr += objectDataString("commodity", commodity) - objStr += objectDataString("connectionType_identifier", connectionType_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dataReceivedIsUntrusted", dataReceivedIsUntrusted) - objStr += objectDataString("dataSentIsUntrusted", dataSentIsUntrusted) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("destination_identifier", destination_identifier) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("inPort_identifier", inPort_identifier) - objStr += objectDataString("infoFlowSeverity", infoFlowSeverity) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("outPort_identifier", outPort_identifier) - objStr += objectDataString("source_identifier", source_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def ConnectionType(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("ConnectionType")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def Cps(SensitiveInfo=None, canReceiveConfigUpdate=None, canReceiveSWUpdate=None, cpsType_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, function_identifier=None, generatedAtTime=None, identifier=None, implControl_identifier=None, inputPort_identifier=None, insideTrustedBoundary=None, invalidatedAtTime=None, outputPort_identifier=None, partOf_identifier=None, pedigree_identifier=None, provides_identifier=None, requires_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("Cps")) - objStr = "" - objStr += objectDataString("SensitiveInfo", SensitiveInfo) - objStr += objectDataString("canReceiveConfigUpdate", canReceiveConfigUpdate) - objStr += objectDataString("canReceiveSWUpdate", canReceiveSWUpdate) - objStr += objectDataString("cpsType_identifier", cpsType_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("function_identifier", function_identifier) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implControl_identifier", implControl_identifier) - objStr += objectDataString("inputPort_identifier", inputPort_identifier) - objStr += objectDataString("insideTrustedBoundary", insideTrustedBoundary) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("outputPort_identifier", outputPort_identifier) - objStr += objectDataString("partOf_identifier", partOf_identifier) - objStr += objectDataString("pedigree_identifier", pedigree_identifier) - objStr += objectDataString("provides_identifier", provides_identifier) - objStr += objectDataString("requires_identifier", requires_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def CpsType(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("CpsType")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def DATA_DICTIONARY_TERM(consumedBy_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, providedBy_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("DATA_DICTIONARY_TERM")) - objStr = "" - objStr += objectDataString("consumedBy_identifier", consumedBy_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("providedBy_identifier", providedBy_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def DESCRIPTION(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("DESCRIPTION")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def DOCUMENT(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("DOCUMENT")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def DOC_STATUS(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("DOC_STATUS")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def ENTITY(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("ENTITY")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def FILE(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, fileFormat_identifier=None, fileHash_identifier=None, filename=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("FILE")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("fileFormat_identifier", fileFormat_identifier) - objStr += objectDataString("fileHash_identifier", fileHash_identifier) - objStr += objectDataString("filename", filename) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def FILE_CREATION(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("FILE_CREATION")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def FILE_HASH(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, hType_identifier=None, hValue=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("FILE_HASH")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("hType_identifier", hType_identifier) - objStr += objectDataString("hValue", hValue) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def FORMAT(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("FORMAT")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def FUNCTION(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, parentFunction_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("FUNCTION")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("parentFunction_identifier", parentFunction_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def HASH_TYPE(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("HASH_TYPE")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def HAZARD(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, effect=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, likelihood=None, severity=None, source_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("HAZARD")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("effect", effect) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("likelihood", likelihood) - objStr += objectDataString("severity", severity) - objStr += objectDataString("source_identifier", source_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def HAZARD_IDENTIFICATION(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("HAZARD_IDENTIFICATION")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def HWCOMPONENT(componentType_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, instantiates_identifier=None, invalidatedAtTime=None, partitions_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("HWCOMPONENT")) - objStr = "" - objStr += objectDataString("componentType_identifier", componentType_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("instantiates_identifier", instantiates_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("partitions_identifier", partitions_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def HWCOMPONENT_TYPE(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("HWCOMPONENT_TYPE")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def INTERFACE(commodity=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, destination_identifier=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, source_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("INTERFACE")) - objStr = "" - objStr += objectDataString("commodity", commodity) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("destination_identifier", destination_identifier) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("source_identifier", source_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def ImplControl(control_identifier=None, dal=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("ImplControl")) - objStr = "" - objStr += objectDataString("control_identifier", control_identifier) - objStr += objectDataString("dal", dal) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def MODEL(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, models_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("MODEL")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("models_identifier", models_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def OBJECTIVE(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, satisfiedBy_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("OBJECTIVE")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("satisfiedBy_identifier", satisfiedBy_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def OP_ENV(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("OP_ENV")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def OP_PROCEDURE(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, mitigates_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("OP_PROCEDURE")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def ORGANIZATION(actedOnBehalfOf_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("ORGANIZATION")) - objStr = "" - objStr += objectDataString("actedOnBehalfOf_identifier", actedOnBehalfOf_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def PACKAGE(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, packageInput_identifier=None, packagedBy_identifier=None, performedBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("PACKAGE")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("packageInput_identifier", packageInput_identifier) - objStr += objectDataString("packagedBy_identifier", packagedBy_identifier) - objStr += objectDataString("performedBy_identifier", performedBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def PARTITION(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("PARTITION")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def PERSON(actedOnBehalfOf_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, emailAddress=None, employedBy_identifier=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("PERSON")) - objStr = "" - objStr += objectDataString("actedOnBehalfOf_identifier", actedOnBehalfOf_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("emailAddress", emailAddress) - objStr += objectDataString("employedBy_identifier", employedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def PLAN(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("PLAN")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def PROCEDURE(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("PROCEDURE")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def PROPERTY(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, partiallySupports_identifier=None, scopeOf_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("PROPERTY")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("partiallySupports_identifier", partiallySupports_identifier) - objStr += objectDataString("scopeOf_identifier", scopeOf_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def Pedigree(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("Pedigree")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def Port(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("Port")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def REPORT(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("REPORT")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def REQUEST(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("REQUEST")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def REQUIREMENT(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("REQUIREMENT")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def REQUIREMENT_DEVELOPMENT(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, referenced_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("REQUIREMENT_DEVELOPMENT")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("referenced_identifier", referenced_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def REVIEW(author_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, reviewed_identifier=None, reviewer_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("REVIEW")) - objStr = "" - objStr += objectDataString("author_identifier", author_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("reviewed_identifier", reviewed_identifier) - objStr += objectDataString("reviewer_identifier", reviewer_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def REVIEW_LOG(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, reviewResult_identifier=None, reviews_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("REVIEW_LOG")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("reviewResult_identifier", reviewResult_identifier) - objStr += objectDataString("reviews_identifier", reviews_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def REVIEW_STATE(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("REVIEW_STATE")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def SECTION(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("SECTION")) - objStr = "
" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "
" - addEvidenceObject(etree.fromstring(objStr)) - -def SECURITY_LABEL(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("SECURITY_LABEL")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def SPECIFICATION(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("SPECIFICATION")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def SWCOMPONENT(componentType_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, instantiates_identifier=None, invalidatedAtTime=None, mentions_identifier=None, subcomponentOf_identifier=None, title=None, valueType=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("SWCOMPONENT")) - objStr = "" - objStr += objectDataString("componentType_identifier", componentType_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("instantiates_identifier", instantiates_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mentions_identifier", mentions_identifier) - objStr += objectDataString("subcomponentOf_identifier", subcomponentOf_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("valueType", valueType) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def SYSTEM(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, function_identifier=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, partOf_identifier=None, provides_identifier=None, requires_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("SYSTEM")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("function_identifier", function_identifier) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("partOf_identifier", partOf_identifier) - objStr += objectDataString("provides_identifier", provides_identifier) - objStr += objectDataString("requires_identifier", requires_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def SYSTEM_DEVELOPMENT(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("SYSTEM_DEVELOPMENT")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def TEST(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, verifies_identifier=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("TEST")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("verifies_identifier", verifies_identifier) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def TEST_DEVELOPMENT(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("TEST_DEVELOPMENT")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def TEST_EXECUTION(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, testProcedure_identifier=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("TEST_EXECUTION")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("testProcedure_identifier", testProcedure_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def TEST_LOG(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("TEST_LOG")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def TEST_PROCEDURE(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("TEST_PROCEDURE")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def TEST_RECORD(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, logs_identifier=None, nextRecord_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("TEST_RECORD")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("logs_identifier", logs_identifier) - objStr += objectDataString("nextRecord_identifier", nextRecord_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def TEST_RESULT(confirms_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, result_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("TEST_RESULT")) - objStr = "" - objStr += objectDataString("confirms_identifier", confirms_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("result_identifier", result_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def TEST_STATUS(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("TEST_STATUS")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def TEST_STEP(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, nextStep_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("TEST_STEP")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("nextStep_identifier", nextStep_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def THING(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("THING")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def THREAT(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, effect=None, entityURL=None, generatedAtTime=None, identified_identifier=None, identifier=None, invalidatedAtTime=None, likelihood=None, severity=None, source_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("THREAT")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("effect", effect) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identified_identifier", identified_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("likelihood", likelihood) - objStr += objectDataString("severity", severity) - objStr += objectDataString("source_identifier", source_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def THREAT_IDENTIFICATION(author_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("THREAT_IDENTIFICATION")) - objStr = "" - objStr += objectDataString("author_identifier", author_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def TOOL(actedOnBehalfOf_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None, toolInstallationConfiguration_identifier=None, toolVersion=None, wasQualifiedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("TOOL")) - objStr = "" - objStr += objectDataString("actedOnBehalfOf_identifier", actedOnBehalfOf_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("toolInstallationConfiguration_identifier", toolInstallationConfiguration_identifier) - objStr += objectDataString("toolVersion", toolVersion) - objStr += objectDataString("wasQualifiedBy_identifier", wasQualifiedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def acert_AcertRequirementModel(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, givenText=None, givenTextConfidence=None, identifier=None, ifText=None, ifTextConfidence=None, invalidatedAtTime=None, models_identifier=None, textConfidence=None, thenText=None, thenTextConfidence=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("acert_AcertRequirementModel")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("givenText", givenText) - objStr += objectDataString("givenTextConfidence", givenTextConfidence) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("ifText", ifText) - objStr += objectDataString("ifTextConfidence", ifTextConfidence) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("models_identifier", models_identifier) - objStr += objectDataString("textConfidence", textConfidence) - objStr += objectDataString("thenText", thenText) - objStr += objectDataString("thenTextConfidence", thenTextConfidence) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def acert_AcertTestExecution(cpuTime=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, memory=None, startedAtTime=None, testProcedure_identifier=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("acert_AcertTestExecution")) - objStr = "" - objStr += objectDataString("cpuTime", cpuTime) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("memory", memory) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("testProcedure_identifier", testProcedure_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def acert_AcertTestResult(confirms_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, failureDetails=None, failureReason_identifier=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, result_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("acert_AcertTestResult")) - objStr = "" - objStr += objectDataString("confirms_identifier", confirms_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("failureDetails", failureDetails) - objStr += objectDataString("failureReason_identifier", failureReason_identifier) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("result_identifier", result_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def acert_FailureReason(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("acert_FailureReason")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def arbiter_StrComponent(componentType_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, instantiates_identifier=None, invalidatedAtTime=None, mentions_identifier=None, recvsVia_identifier=None, sendsVia_identifier=None, subcomponentOf_identifier=None, title=None, valueType=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("arbiter_StrComponent")) - objStr = "" - objStr += objectDataString("componentType_identifier", componentType_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("instantiates_identifier", instantiates_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mentions_identifier", mentions_identifier) - objStr += objectDataString("recvsVia_identifier", recvsVia_identifier) - objStr += objectDataString("sendsVia_identifier", sendsVia_identifier) - objStr += objectDataString("subcomponentOf_identifier", subcomponentOf_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("valueType", valueType) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def arbiter_StrEarsModel(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, earsStatement=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, models_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("arbiter_StrEarsModel")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("earsStatement", earsStatement) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("models_identifier", models_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def arbiter_StrInPort(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, portType=None, title=None, variableName=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("arbiter_StrInPort")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("portType", portType) - objStr += objectDataString("title", title) - objStr += objectDataString("variableName", variableName) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def arbiter_StrOutPort(connectsTo_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, portType=None, title=None, variableName=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("arbiter_StrOutPort")) - objStr = "" - objStr += objectDataString("connectsTo_identifier", connectsTo_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("portType", portType) - objStr += objectDataString("title", title) - objStr += objectDataString("variableName", variableName) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def arbiter_StrPort(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, portType=None, title=None, variableName=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("arbiter_StrPort")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("portType", portType) - objStr += objectDataString("title", title) - objStr += objectDataString("variableName", variableName) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def arbiter_StrSystem(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, function_identifier=None, generatedAtTime=None, identifier=None, informs_identifier=None, invalidatedAtTime=None, partOf_identifier=None, provides_identifier=None, requires_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("arbiter_StrSystem")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("function_identifier", function_identifier) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("informs_identifier", informs_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("partOf_identifier", partOf_identifier) - objStr += objectDataString("provides_identifier", provides_identifier) - objStr += objectDataString("requires_identifier", requires_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ArgumentAsset(Abstract=None, Citation=None, Content_identifier=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ArgumentAsset")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ArgumentPackage(Abstract=None, Citation=None, Description_identifier=None, Element_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ArgumentPackage")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("Element_identifier", Element_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ArgumentReasoning(Abstract=None, Citation=None, Content_identifier=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ArgumentReasoning")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ArgumentationElement(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ArgumentationElement")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Artifact(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, artifactDate=None, artifactVersion=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Artifact")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("artifactDate", artifactDate) - objStr += objectDataString("artifactVersion", artifactVersion) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ArtifactAsset(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ArtifactAsset")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ArtifactAssetRelationship(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, source_identifier=None, target_identifier=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ArtifactAssetRelationship")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("source_identifier", source_identifier) - objStr += objectDataString("target_identifier", target_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ArtifactElement(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ArtifactElement")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ArtifactPackage(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ArtifactPackage")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ArtifactReference(Abstract=None, Citation=None, Content_identifier=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, references_identifier=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ArtifactReference")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_AssertedContext(Abstract=None, Citation=None, Content_identifier=None, Counter=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, assertionDeclaration=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, reasoning_identifier=None, source_identifier=None, target_identifier=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_AssertedContext")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("Counter", Counter) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("assertionDeclaration", assertionDeclaration) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("reasoning_identifier", reasoning_identifier) - objStr += objectDataString("source_identifier", source_identifier) - objStr += objectDataString("target_identifier", target_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_AssertedEvidence(Abstract=None, Citation=None, Content_identifier=None, Counter=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, assertionDeclaration=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, reasoning_identifier=None, source_identifier=None, target_identifier=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_AssertedEvidence")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("Counter", Counter) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("assertionDeclaration", assertionDeclaration) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("reasoning_identifier", reasoning_identifier) - objStr += objectDataString("source_identifier", source_identifier) - objStr += objectDataString("target_identifier", target_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_AssertedRelationship(Abstract=None, Citation=None, Content_identifier=None, Counter=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, assertionDeclaration=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, reasoning_identifier=None, source_identifier=None, target_identifier=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_AssertedRelationship")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("Counter", Counter) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("assertionDeclaration", assertionDeclaration) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("reasoning_identifier", reasoning_identifier) - objStr += objectDataString("source_identifier", source_identifier) - objStr += objectDataString("target_identifier", target_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Assertion(Abstract=None, Citation=None, Content_identifier=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, assertionDeclaration=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Assertion")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("assertionDeclaration", assertionDeclaration) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_AssuranceCasePackage(Abstract=None, Argument_identifier=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, Package_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, usesTerminology_identifier=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_AssuranceCasePackage")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Argument_identifier", Argument_identifier) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("Package_identifier", Package_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("usesTerminology_identifier", usesTerminology_identifier) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Category(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Category")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Claim(Abstract=None, Citation=None, Content_identifier=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, assertionDeclaration=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Claim")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("assertionDeclaration", assertionDeclaration) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Description(Abstract=None, Citation=None, Content_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Description")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Element(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Element")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Event(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, occurence=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Event")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("occurence", occurence) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Expression(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, inCategory_identifier=None, invalidatedAtTime=None, title=None, usesElement_identifier=None, uuid=None, val=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Expression")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("inCategory_identifier", inCategory_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("usesElement_identifier", usesElement_identifier) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("val", val) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ExpressionElement(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, inCategory_identifier=None, invalidatedAtTime=None, title=None, uuid=None, val=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ExpressionElement")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("inCategory_identifier", inCategory_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("val", val) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ExpressionLangString(contents=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, expresses_identifier=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, lang=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ExpressionLangString")) - objStr = "" - objStr += objectDataString("contents", contents) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("expresses_identifier", expresses_identifier) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("lang", lang) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ImplementationConstraint(Abstract=None, Citation=None, Content_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ImplementationConstraint")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_LangString(contents=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, lang=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_LangString")) - objStr = "" - objStr += objectDataString("contents", contents) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("lang", lang) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_ModelElement(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_ModelElement")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_MultiLangString(Value_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_MultiLangString")) - objStr = "" - objStr += objectDataString("Value_identifier", Value_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Note(Abstract=None, Citation=None, Content_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Note")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Participant(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Participant")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Property(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Property")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Resource(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Resource")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_SacmActivity(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endTime=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, startTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_SacmActivity")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endTime", endTime) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("startTime", startTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_SacmElement(Abstract=None, Citation=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_SacmElement")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_TaggedValue(Abstract=None, Citation=None, Content_identifier=None, Key_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_TaggedValue")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("Key_identifier", Key_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Technique(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Technique")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_Term(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, Origin_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, externalReference=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, inCategory_identifier=None, invalidatedAtTime=None, title=None, uuid=None, val=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_Term")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("Origin_identifier", Origin_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("externalReference", externalReference) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("inCategory_identifier", inCategory_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("val", val) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_TerminologyAsset(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_TerminologyAsset")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_TerminologyElement(Abstract=None, Citation=None, Description_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_TerminologyElement")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_TerminologyGroup(Abstract=None, Citation=None, Description_identifier=None, Element_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_TerminologyGroup")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("Element_identifier", Element_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_TerminologyPackage(Abstract=None, Citation=None, Description_identifier=None, Element_identifier=None, ImplementationConstraint_identifier=None, Name_identifier=None, Note_identifier=None, TaggedValue_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_TerminologyPackage")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Description_identifier", Description_identifier) - objStr += objectDataString("Element_identifier", Element_identifier) - objStr += objectDataString("ImplementationConstraint_identifier", ImplementationConstraint_identifier) - objStr += objectDataString("Name_identifier", Name_identifier) - objStr += objectDataString("Note_identifier", Note_identifier) - objStr += objectDataString("TaggedValue_identifier", TaggedValue_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def certgate_UtilityElement(Abstract=None, Citation=None, Content_identifier=None, cites_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, gid=None, identifier=None, implements_identifier=None, invalidatedAtTime=None, title=None, uuid=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("certgate_UtilityElement")) - objStr = "" - objStr += objectDataString("Abstract", Abstract) - objStr += objectDataString("Citation", Citation) - objStr += objectDataString("Content_identifier", Content_identifier) - objStr += objectDataString("cites_identifier", cites_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("gid", gid) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("implements_identifier", implements_identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uuid", uuid) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_ClearGenericProperty(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, partiallySupports_identifier=None, scopeOf_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_ClearGenericProperty")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("partiallySupports_identifier", partiallySupports_identifier) - objStr += objectDataString("scopeOf_identifier", scopeOf_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_ClearNotation(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, semantics_identifier=None, title=None, userGuide_identifier=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_ClearNotation")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("semantics_identifier", semantics_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("userGuide_identifier", userGuide_identifier) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_ClearRequirementAnalysis(analysisConfiguration_identifier=None, analysisInput_identifier=None, analyzedWith_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, runBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_ClearRequirementAnalysis")) - objStr = "" - objStr += objectDataString("analysisConfiguration_identifier", analysisConfiguration_identifier) - objStr += objectDataString("analysisInput_identifier", analysisInput_identifier) - objStr += objectDataString("analyzedWith_identifier", analyzedWith_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("runBy_identifier", runBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_ClearTestAndOracleGeneration(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_ClearTestAndOracleGeneration")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_ClearTestingTheory(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, testingTheoryDoc_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_ClearTestingTheory")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("testingTheoryDoc_identifier", testingTheoryDoc_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_ConfigurationString(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_ConfigurationString")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_DaikonInvariantDetection(analysisConfiguration_identifier=None, analysisInput_identifier=None, analyzedWith_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, runBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_DaikonInvariantDetection")) - objStr = "" - objStr += objectDataString("analysisConfiguration_identifier", analysisConfiguration_identifier) - objStr += objectDataString("analysisInput_identifier", analysisInput_identifier) - objStr += objectDataString("analyzedWith_identifier", analyzedWith_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("runBy_identifier", runBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_DaikonInvariantOutput(classesCount=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, invariantCount=None, likelyInvariants_identifier=None, supportFiles_identifier=None, testDriver_identifier=None, testsCount=None, title=None, verifies_identifier=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_DaikonInvariantOutput")) - objStr = "" - objStr += objectDataString("classesCount", classesCount) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("invariantCount", invariantCount) - objStr += objectDataString("likelyInvariants_identifier", likelyInvariants_identifier) - objStr += objectDataString("supportFiles_identifier", supportFiles_identifier) - objStr += objectDataString("testDriver_identifier", testDriver_identifier) - objStr += objectDataString("testsCount", testsCount) - objStr += objectDataString("title", title) - objStr += objectDataString("verifies_identifier", verifies_identifier) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_DataDictionary(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_DataDictionary")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_DesCertRequirementModel(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, models_identifier=None, requirementNotation_identifier=None, requirementText=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_DesCertRequirementModel")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("models_identifier", models_identifier) - objStr += objectDataString("requirementNotation_identifier", requirementNotation_identifier) - objStr += objectDataString("requirementText", requirementText) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_DesCert_Tool(actedOnBehalfOf_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, identifier=None, title=None, toolInstallationConfiguration_identifier=None, toolQualificationData_identifier=None, toolVersion=None, userGuide_identifier=None, wasQualifiedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_DesCert_Tool")) - objStr = "" - objStr += objectDataString("actedOnBehalfOf_identifier", actedOnBehalfOf_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("toolInstallationConfiguration_identifier", toolInstallationConfiguration_identifier) - objStr += objectDataString("toolQualificationData_identifier", toolQualificationData_identifier) - objStr += objectDataString("toolVersion", toolVersion) - objStr += objectDataString("userGuide_identifier", userGuide_identifier) - objStr += objectDataString("wasQualifiedBy_identifier", wasQualifiedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_ExecutableObject(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, fileFormat_identifier=None, fileHash_identifier=None, filename=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_ExecutableObject")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("fileFormat_identifier", fileFormat_identifier) - objStr += objectDataString("fileHash_identifier", fileHash_identifier) - objStr += objectDataString("filename", filename) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_LikelyInvariantModel(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, invariantSpecification=None, models_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_LikelyInvariantModel")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("invariantSpecification", invariantSpecification) - objStr += objectDataString("models_identifier", models_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_ObjectFile(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, fileFormat_identifier=None, fileHash_identifier=None, filename=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_ObjectFile")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("fileFormat_identifier", fileFormat_identifier) - objStr += objectDataString("fileHash_identifier", fileHash_identifier) - objStr += objectDataString("filename", filename) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_RadlArchitectureModel(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, models_identifier=None, radlArchitectureNotation_identifier=None, radlSpecification=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_RadlArchitectureModel")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("models_identifier", models_identifier) - objStr += objectDataString("radlArchitectureNotation_identifier", radlArchitectureNotation_identifier) - objStr += objectDataString("radlSpecification", radlSpecification) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_RadlGenericProperty(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, partiallySupports_identifier=None, scopeOf_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_RadlGenericProperty")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("partiallySupports_identifier", partiallySupports_identifier) - objStr += objectDataString("scopeOf_identifier", scopeOf_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_RadlNotation(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, semantics_identifier=None, title=None, userGuide_identifier=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_RadlNotation")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("semantics_identifier", semantics_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("userGuide_identifier", userGuide_identifier) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_RadlerArchitectureAnalysis(analysisConfiguration_identifier=None, analysisInput_identifier=None, analyzedWith_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, runBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_RadlerArchitectureAnalysis")) - objStr = "" - objStr += objectDataString("analysisConfiguration_identifier", analysisConfiguration_identifier) - objStr += objectDataString("analysisInput_identifier", analysisInput_identifier) - objStr += objectDataString("analyzedWith_identifier", analyzedWith_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("runBy_identifier", runBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_RandoopJUnitTestGeneration(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_RandoopJUnitTestGeneration")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_RandoopTestsAndMetrics(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, numberOfErrorRevealingTestCases=None, numberOfReducedViolationInducingTestCases=None, numberOfRegressionTestCases=None, numberOfViolationInducingTestCases=None, title=None, totalNumberOfTestCases=None, verifies_identifier=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_RandoopTestsAndMetrics")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("numberOfErrorRevealingTestCases", numberOfErrorRevealingTestCases) - objStr += objectDataString("numberOfReducedViolationInducingTestCases", numberOfReducedViolationInducingTestCases) - objStr += objectDataString("numberOfRegressionTestCases", numberOfRegressionTestCases) - objStr += objectDataString("numberOfViolationInducingTestCases", numberOfViolationInducingTestCases) - objStr += objectDataString("title", title) - objStr += objectDataString("totalNumberOfTestCases", totalNumberOfTestCases) - objStr += objectDataString("verifies_identifier", verifies_identifier) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SallyModelChecking(analysisConfiguration_identifier=None, analysisInput_identifier=None, analyzedWith_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, runBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SallyModelChecking")) - objStr = "" - objStr += objectDataString("analysisConfiguration_identifier", analysisConfiguration_identifier) - objStr += objectDataString("analysisInput_identifier", analysisInput_identifier) - objStr += objectDataString("analyzedWith_identifier", analyzedWith_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("runBy_identifier", runBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SallyNotation(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, semantics_identifier=None, title=None, userGuide_identifier=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SallyNotation")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("semantics_identifier", semantics_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("userGuide_identifier", userGuide_identifier) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SallyPropertyModel(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, models_identifier=None, sallyPropertyNotation_identifier=None, sallyPropertySpecification=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SallyPropertyModel")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("models_identifier", models_identifier) - objStr += objectDataString("sallyPropertyNotation_identifier", sallyPropertyNotation_identifier) - objStr += objectDataString("sallyPropertySpecification", sallyPropertySpecification) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SallyTransitionSystemModel(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, sallyModelContents_identifier=None, sallyModelNotation_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SallyTransitionSystemModel")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("sallyModelContents_identifier", sallyModelContents_identifier) - objStr += objectDataString("sallyModelNotation_identifier", sallyModelNotation_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SallyTransitionSystemModelGeneration(analysisConfiguration_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SallyTransitionSystemModelGeneration")) - objStr = "" - objStr += objectDataString("analysisConfiguration_identifier", analysisConfiguration_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SoftwareHighLevelRequirementSet(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SoftwareHighLevelRequirementSet")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SoftwareIntegration(compileInput_identifier=None, compileWithOptimizations=None, compiledBy_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, linkerPath=None, performedBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SoftwareIntegration")) - objStr = "" - objStr += objectDataString("compileInput_identifier", compileInput_identifier) - objStr += objectDataString("compileWithOptimizations", compileWithOptimizations) - objStr += objectDataString("compiledBy_identifier", compiledBy_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("linkerPath", linkerPath) - objStr += objectDataString("performedBy_identifier", performedBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SoftwareLowLevelRequirementSet(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SoftwareLowLevelRequirementSet")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SourceCode(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, fileFormat_identifier=None, fileHash_identifier=None, filename=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SourceCode")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("fileFormat_identifier", fileFormat_identifier) - objStr += objectDataString("fileHash_identifier", fileHash_identifier) - objStr += objectDataString("filename", filename) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SpecificProperty(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, partiallySupports_identifier=None, propertyBasis_identifier=None, scopeOf_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SpecificProperty")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("partiallySupports_identifier", partiallySupports_identifier) - objStr += objectDataString("propertyBasis_identifier", propertyBasis_identifier) - objStr += objectDataString("scopeOf_identifier", scopeOf_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_SystemRequirementSet(content_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_SystemRequirementSet")) - objStr = "" - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_TestOracle(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, requirementSubclause=None, testOracleCriteria=None, testOracleTheory_identifier=None, title=None, verifies_identifier=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_TestOracle")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("requirementSubclause", requirementSubclause) - objStr += objectDataString("testOracleCriteria", testOracleCriteria) - objStr += objectDataString("testOracleTheory_identifier", testOracleTheory_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("verifies_identifier", verifies_identifier) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def descert_ToolQualificationData(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, toolQualificationArtifacts_identifier=None, toolQualificationSummary=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("descert_ToolQualificationData")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("toolQualificationArtifacts_identifier", toolQualificationArtifacts_identifier) - objStr += objectDataString("toolQualificationSummary", toolQualificationSummary) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_ChangeRequest(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_ChangeRequest")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_Change_Authorization(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_Change_Authorization")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_ControlCoupleCoverageReport(analyzes_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_ControlCoupleCoverageReport")) - objStr = "" - objStr += objectDataString("analyzes_identifier", analyzes_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_ControlCouplingAnalysis(analysisConfiguration_identifier=None, analysisInput_identifier=None, analyzedWith_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, runBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_ControlCouplingAnalysis")) - objStr = "" - objStr += objectDataString("analysisConfiguration_identifier", analysisConfiguration_identifier) - objStr += objectDataString("analysisInput_identifier", analysisInput_identifier) - objStr += objectDataString("analyzedWith_identifier", analyzedWith_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("runBy_identifier", runBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_DataAndControlCouple(consumedBy_identifier=None, createdBy_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, providedBy_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_DataAndControlCouple")) - objStr = "" - objStr += objectDataString("consumedBy_identifier", consumedBy_identifier) - objStr += objectDataString("createdBy_identifier", createdBy_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("providedBy_identifier", providedBy_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_DataCoupleCoverageReport(analyzes_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_DataCoupleCoverageReport")) - objStr = "" - objStr += objectDataString("analyzes_identifier", analyzes_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_DataCouplingAnalysis(analysisConfiguration_identifier=None, analysisInput_identifier=None, analyzedWith_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, runBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_DataCouplingAnalysis")) - objStr = "" - objStr += objectDataString("analysisConfiguration_identifier", analysisConfiguration_identifier) - objStr += objectDataString("analysisInput_identifier", analysisInput_identifier) - objStr += objectDataString("analyzedWith_identifier", analyzedWith_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("runBy_identifier", runBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_DataDictionary(consumedBy_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, providedBy_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_DataDictionary")) - objStr = "" - objStr += objectDataString("consumedBy_identifier", consumedBy_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("providedBy_identifier", providedBy_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_DefineSystemInterfaces(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_DefineSystemInterfaces")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_DevelopComponentTests(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_DevelopComponentTests")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_DevelopSystemArchitecture(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_DevelopSystemArchitecture")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_DevelopUnitTests(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_DevelopUnitTests")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_Engineer(actedOnBehalfOf_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, emailAddress=None, employedBy_identifier=None, identifier=None, title=None): - trace() - log("Adding Evidence:",str_good("turnstile_Engineer")) - objStr = "" - objStr += objectDataString("actedOnBehalfOf_identifier", actedOnBehalfOf_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("emailAddress", emailAddress) - objStr += objectDataString("employedBy_identifier", employedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("title", title) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_ExecutableObject(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, fileFormat_identifier=None, fileHash_identifier=None, filename=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_ExecutableObject")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("fileFormat_identifier", fileFormat_identifier) - objStr += objectDataString("fileHash_identifier", fileHash_identifier) - objStr += objectDataString("filename", filename) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_GenerateSoftwareReleaseDocumentation(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_GenerateSoftwareReleaseDocumentation")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_HighLevelRequirement(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_HighLevelRequirement")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_LowLevelRequirement(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_LowLevelRequirement")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_ObjectFile(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, fileFormat_identifier=None, fileHash_identifier=None, filename=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_ObjectFile")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("fileFormat_identifier", fileFormat_identifier) - objStr += objectDataString("fileHash_identifier", fileHash_identifier) - objStr += objectDataString("filename", filename) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_ProblemReport(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_ProblemReport")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_Problem_Reporting(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_Problem_Reporting")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_RequirementConfigurationManagement(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_RequirementConfigurationManagement")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_ReviewConfigurationManagement(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_ReviewConfigurationManagement")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_RpmFile(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, fileFormat_identifier=None, fileHash_identifier=None, filename=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_RpmFile")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("fileFormat_identifier", fileFormat_identifier) - objStr += objectDataString("fileHash_identifier", fileHash_identifier) - objStr += objectDataString("filename", filename) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareAccomplishmentSummary(approvalAuthority_identifier=None, content_identifier=None, dataInsertedBy_identifier=None, dateOfIssue=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, issuingOrganization_identifier=None, references_identifier=None, status_identifier=None, title=None, versionNumber=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareAccomplishmentSummary")) - objStr = "" - objStr += objectDataString("approvalAuthority_identifier", approvalAuthority_identifier) - objStr += objectDataString("content_identifier", content_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("dateOfIssue", dateOfIssue) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("issuingOrganization_identifier", issuingOrganization_identifier) - objStr += objectDataString("references_identifier", references_identifier) - objStr += objectDataString("status_identifier", status_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("versionNumber", versionNumber) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareCodeReview(author_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, reviewed_identifier=None, reviewer_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareCodeReview")) - objStr = "" - objStr += objectDataString("author_identifier", author_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("reviewed_identifier", reviewed_identifier) - objStr += objectDataString("reviewer_identifier", reviewer_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareCodeReviewArtifacts(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, reviewResult_identifier=None, reviews_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareCodeReviewArtifacts")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("reviewResult_identifier", reviewResult_identifier) - objStr += objectDataString("reviews_identifier", reviews_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareCoding(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, referenced_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareCoding")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("referenced_identifier", referenced_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareComponentTest(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, verifies_identifier=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareComponentTest")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("verifies_identifier", verifies_identifier) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareComponentTestExecution(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, testProcedure_identifier=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareComponentTestExecution")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("testProcedure_identifier", testProcedure_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareComponentTestResult(confirms_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, result_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareComponentTestResult")) - objStr = "" - objStr += objectDataString("confirms_identifier", confirms_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("result_identifier", result_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareDesign(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, referenced_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareDesign")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("referenced_identifier", referenced_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareDesignReview(author_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, reviewed_identifier=None, reviewer_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareDesignReview")) - objStr = "" - objStr += objectDataString("author_identifier", author_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("reviewed_identifier", reviewed_identifier) - objStr += objectDataString("reviewer_identifier", reviewer_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareDesignReviewArtifacts(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, reviewResult_identifier=None, reviews_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareDesignReviewArtifacts")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("reviewResult_identifier", reviewResult_identifier) - objStr += objectDataString("reviews_identifier", reviews_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareIntegration(compileInput_identifier=None, compileWithOptimizations=None, compiledBy_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, linkerPath=None, performedBy_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareIntegration")) - objStr = "" - objStr += objectDataString("compileInput_identifier", compileInput_identifier) - objStr += objectDataString("compileWithOptimizations", compileWithOptimizations) - objStr += objectDataString("compiledBy_identifier", compiledBy_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("linkerPath", linkerPath) - objStr += objectDataString("performedBy_identifier", performedBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareModule(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, function_identifier=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, partOf_identifier=None, provides_identifier=None, requires_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareModule")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("function_identifier", function_identifier) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("partOf_identifier", partOf_identifier) - objStr += objectDataString("provides_identifier", provides_identifier) - objStr += objectDataString("requires_identifier", requires_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareRequirementReviewArtifacts(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, reviewResult_identifier=None, reviews_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareRequirementReviewArtifacts")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("reviewResult_identifier", reviewResult_identifier) - objStr += objectDataString("reviews_identifier", reviews_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareRequirementsDefinition(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, referenced_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareRequirementsDefinition")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("referenced_identifier", referenced_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareRequirementsReview(author_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, reviewed_identifier=None, reviewer_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareRequirementsReview")) - objStr = "" - objStr += objectDataString("author_identifier", author_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("reviewed_identifier", reviewed_identifier) - objStr += objectDataString("reviewer_identifier", reviewer_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareThread(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, function_identifier=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, partOf_identifier=None, provides_identifier=None, requires_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareThread")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("function_identifier", function_identifier) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("partOf_identifier", partOf_identifier) - objStr += objectDataString("provides_identifier", provides_identifier) - objStr += objectDataString("requires_identifier", requires_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareUnitTest(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, verifies_identifier=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareUnitTest")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("verifies_identifier", verifies_identifier) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareUnitTestExecution(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, testProcedure_identifier=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareUnitTestExecution")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("testProcedure_identifier", testProcedure_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SoftwareUnitTestResult(confirms_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, result_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SoftwareUnitTestResult")) - objStr = "" - objStr += objectDataString("confirms_identifier", confirms_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("result_identifier", result_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SourceCode(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, fileFormat_identifier=None, fileHash_identifier=None, filename=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SourceCode")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("fileFormat_identifier", fileFormat_identifier) - objStr += objectDataString("fileHash_identifier", fileHash_identifier) - objStr += objectDataString("filename", filename) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SourceConfigurationManagement(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SourceConfigurationManagement")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_StructuralCoverageAnalysis(analysisConfiguration_identifier=None, analysisInput_identifier=None, analyzedWith_identifier=None, coveredNodes=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, identifier=None, runBy_identifier=None, startedAtTime=None, title=None, uncoveredNodes=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_StructuralCoverageAnalysis")) - objStr = "" - objStr += objectDataString("analysisConfiguration_identifier", analysisConfiguration_identifier) - objStr += objectDataString("analysisInput_identifier", analysisInput_identifier) - objStr += objectDataString("analyzedWith_identifier", analyzedWith_identifier) - objStr += objectDataString("coveredNodes", coveredNodes) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("runBy_identifier", runBy_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("uncoveredNodes", uncoveredNodes) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_StructuralCoverageReport(analyzes_identifier=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_StructuralCoverageReport")) - objStr = "" - objStr += objectDataString("analyzes_identifier", analyzes_identifier) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SystemComponent(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, function_identifier=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, partOf_identifier=None, provides_identifier=None, requires_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SystemComponent")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("function_identifier", function_identifier) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("partOf_identifier", partOf_identifier) - objStr += objectDataString("provides_identifier", provides_identifier) - objStr += objectDataString("requires_identifier", requires_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SystemInterfaceDefinition(commodity=None, dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, destination_identifier=None, entityURL=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, source_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SystemInterfaceDefinition")) - objStr = "" - objStr += objectDataString("commodity", commodity) - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("destination_identifier", destination_identifier) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("source_identifier", source_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SystemRequirement(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, generatedAtTime=None, governs_identifier=None, identifier=None, invalidatedAtTime=None, mitigates_identifier=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): - trace() - log("Adding Evidence:",str_good("turnstile_SystemRequirement")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("entityURL", entityURL) - objStr += objectDataString("generatedAtTime", generatedAtTime) - objStr += objectDataString("governs_identifier", governs_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("invalidatedAtTime", invalidatedAtTime) - objStr += objectDataString("mitigates_identifier", mitigates_identifier) - objStr += objectDataString("satisfies_identifier", satisfies_identifier) - objStr += objectDataString("title", title) - objStr += objectDataString("wasAttributedTo_identifier", wasAttributedTo_identifier) - objStr += objectDataString("wasDerivedFrom_identifier", wasDerivedFrom_identifier) - objStr += objectDataString("wasGeneratedBy_identifier", wasGeneratedBy_identifier) - objStr += objectDataString("wasImpactedBy_identifier", wasImpactedBy_identifier) - objStr += objectDataString("wasRevisionOf_identifier", wasRevisionOf_identifier) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - -def turnstile_SystemRequirementsDefinition(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, endedAtTime=None, goal_identifier=None, governedBy_identifier=None, identifier=None, referenced_identifier=None, startedAtTime=None, title=None, used_identifier=None, wasAssociatedWith_identifier=None, wasInformedBy_identifier=None, wasInformedBy_identifier_0=None): - trace() - log("Adding Evidence:",str_good("turnstile_SystemRequirementsDefinition")) - objStr = "" - objStr += objectDataString("dataInsertedBy_identifier", dataInsertedBy_identifier) - objStr += objectDataString("definedIn_identifier", definedIn_identifier) - objStr += objectDataString("description", description) - objStr += objectDataString("endedAtTime", endedAtTime) - objStr += objectDataString("goal_identifier", goal_identifier) - objStr += objectDataString("governedBy_identifier", governedBy_identifier) - objStr += objectDataString("identifier", identifier) - objStr += objectDataString("referenced_identifier", referenced_identifier) - objStr += objectDataString("startedAtTime", startedAtTime) - objStr += objectDataString("title", title) - objStr += objectDataString("used_identifier", used_identifier) - objStr += objectDataString("wasAssociatedWith_identifier", wasAssociatedWith_identifier) - objStr += objectDataString("wasInformedBy_identifier", wasInformedBy_identifier) - objStr += objectDataString("wasInformedBy_identifier_0", wasInformedBy_identifier_0) - objStr += "" - addEvidenceObject(etree.fromstring(objStr)) - diff --git a/ScrapingToolKit/Evidence/CONSTANTS.py b/ScrapingToolKit/Evidence/CONSTANTS.py deleted file mode 100644 index 9b682a42..00000000 --- a/ScrapingToolKit/Evidence/CONSTANTS.py +++ /dev/null @@ -1,228 +0,0 @@ -nodegroupMapping = { - "ACTIVITY":"http://arcos.rack/PROV-S#ACTIVITY", - "AGENT":"http://arcos.rack/PROV-S#AGENT", - "AH_64D_CSID_Req":"http://arcos.AH-64D/Boeing#CSID_Req", - "AH_64D_DevelopSystemArchitecture":"http://arcos.AH-64D/Boeing#DevelopSystemArchitecture", - "AH_64D_DevelopSystemConOps":"http://arcos.AH-64D/Boeing#DevelopSystemConOps", - "AH_64D_PIDS_Doc":"http://arcos.AH-64D/Boeing#PIDS_Doc", - "AH_64D_PIDS_Req":"http://arcos.AH-64D/Boeing#PIDS_Req", - "AH_64D_SBVT_Result":"http://arcos.AH-64D/Boeing#SBVT_Result", - "AH_64D_SBVT_Test":"http://arcos.AH-64D/Boeing#SBVT_Test", - "AH_64D_SRS_Doc":"http://arcos.AH-64D/Boeing#SRS_Doc", - "AH_64D_SRS_Req":"http://arcos.AH-64D/Boeing#SRS_Req", - "AH_64D_SoftwareCoding":"http://arcos.AH-64D/Boeing#SoftwareCoding", - "AH_64D_SoftwareDesign":"http://arcos.AH-64D/Boeing#SoftwareDesign", - "AH_64D_SoftwareHighLevelRequirementsDefinition":"http://arcos.AH-64D/Boeing#SoftwareHighLevelRequirementsDefinition", - "AH_64D_SubDD_Doc":"http://arcos.AH-64D/Boeing#SubDD_Doc", - "AH_64D_SubDD_Req":"http://arcos.AH-64D/Boeing#SubDD_Req", - "AH_64D_SystemArchitecture":"http://arcos.AH-64D/Boeing#SystemArchitecture", - "AH_64D_SystemConOps":"http://arcos.AH-64D/Boeing#SystemConOps", - "AH_64D_SystemRequirementsDefinition":"http://arcos.AH-64D/Boeing#SystemRequirementsDefinition", - "ANALYSIS":"http://arcos.rack/ANALYSIS#ANALYSIS", - "ANALYSIS_OUTPUT":"http://arcos.rack/ANALYSIS#ANALYSIS_OUTPUT", - "ASSESSING_CONFIDENCE":"http://arcos.rack/CONFIDENCE#ASSESSING_CONFIDENCE", - "BASELINE":"http://arcos.rack/BASELINE#BASELINE", - "BDU_CONFIDENCE_ASSESSMENT":"http://arcos.rack/CONFIDENCE#BDU_CONFIDENCE_ASSESSMENT", - "BUILD":"http://arcos.rack/SOFTWARE#BUILD", - "CODE_DEVELOPMENT":"http://arcos.rack/SOFTWARE#CODE_DEVELOPMENT", - "CODE_GEN":"http://arcos.rack/SOFTWARE#CODE_GEN", - "COLLECTION":"http://arcos.rack/PROV-S#COLLECTION", - "COMPILE":"http://arcos.rack/SOFTWARE#COMPILE", - "COMPONENT_TYPE":"http://arcos.rack/SOFTWARE#COMPONENT_TYPE", - "CONFIDENCE_ASSESSMENT":"http://arcos.rack/CONFIDENCE#CONFIDENCE_ASSESSMENT", - "CONTROL":"http://arcos.rack/SECURITY#CONTROL", - "CONTROLSET":"http://arcos.rack/SECURITY#CONTROLSET", - "Connection":"http://arcos.turnstile/CPS#Connection", - "ConnectionType":"http://arcos.turnstile/CPS#ConnectionType", - "Cps":"http://arcos.turnstile/CPS#Cps", - "CpsType":"http://arcos.turnstile/CPS#CpsType", - "DATA_DICTIONARY_TERM":"http://arcos.rack/REQUIREMENTS#DATA_DICTIONARY_TERM", - "DESCRIPTION":"http://arcos.rack/DOCUMENT#DESCRIPTION", - "DOCUMENT":"http://arcos.rack/DOCUMENT#DOCUMENT", - "DOC_STATUS":"http://arcos.rack/DOCUMENT#DOC_STATUS", - "ENTITY":"http://arcos.rack/PROV-S#ENTITY", - "FILE":"http://arcos.rack/FILE#FILE", - "FILE_CREATION":"http://arcos.rack/FILE#FILE_CREATION", - "FILE_HASH":"http://arcos.rack/FILE#FILE_HASH", - "FORMAT":"http://arcos.rack/FILE#FORMAT", - "FUNCTION":"http://arcos.rack/SYSTEM#FUNCTION", - "HASH_TYPE":"http://arcos.rack/FILE#HASH_TYPE", - "HAZARD":"http://arcos.rack/HAZARD#HAZARD", - "HAZARD_IDENTIFICATION":"http://arcos.rack/HAZARD#HAZARD_IDENTIFICATION", - "HWCOMPONENT":"http://arcos.rack/HARDWARE#HWCOMPONENT", - "HWCOMPONENT_TYPE":"http://arcos.rack/HARDWARE#HWCOMPONENT_TYPE", - "INTERFACE":"http://arcos.rack/SYSTEM#INTERFACE", - "ImplControl":"http://arcos.turnstile/CPS#ImplControl", - "MODEL":"http://arcos.rack/MODEL#MODEL", - "OBJECTIVE":"http://arcos.rack/PROCESS#OBJECTIVE", - "OP_ENV":"http://arcos.rack/SYSTEM#OP_ENV", - "OP_PROCEDURE":"http://arcos.rack/SYSTEM#OP_PROCEDURE", - "ORGANIZATION":"http://arcos.rack/AGENTS#ORGANIZATION", - "PACKAGE":"http://arcos.rack/SOFTWARE#PACKAGE", - "PARTITION":"http://arcos.rack/HARDWARE#PARTITION", - "PERSON":"http://arcos.rack/AGENTS#PERSON", - "PLAN":"http://arcos.rack/DOCUMENT#PLAN", - "PROCEDURE":"http://arcos.rack/DOCUMENT#PROCEDURE", - "PROPERTY":"http://arcos.rack/PROCESS#PROPERTY", - "Pedigree":"http://arcos.turnstile/CPS#Pedigree", - "Port":"http://arcos.turnstile/CPS#Port", - "REPORT":"http://arcos.rack/DOCUMENT#REPORT", - "REQUEST":"http://arcos.rack/DOCUMENT#REQUEST", - "REQUIREMENT":"http://arcos.rack/REQUIREMENTS#REQUIREMENT", - "REQUIREMENT_DEVELOPMENT":"http://arcos.rack/REQUIREMENTS#REQUIREMENT_DEVELOPMENT", - "REVIEW":"http://arcos.rack/REVIEW#REVIEW", - "REVIEW_LOG":"http://arcos.rack/REVIEW#REVIEW_LOG", - "REVIEW_STATE":"http://arcos.rack/REVIEW#REVIEW_STATE", - "SECTION":"http://arcos.rack/DOCUMENT#SECTION", - "SECURITY_LABEL":"http://arcos.rack/SECURITY#SECURITY_LABEL", - "SPECIFICATION":"http://arcos.rack/DOCUMENT#SPECIFICATION", - "SWCOMPONENT":"http://arcos.rack/SOFTWARE#SWCOMPONENT", - "SYSTEM":"http://arcos.rack/SYSTEM#SYSTEM", - "SYSTEM_DEVELOPMENT":"http://arcos.rack/SYSTEM#SYSTEM_DEVELOPMENT", - "TEST":"http://arcos.rack/TESTING#TEST", - "TEST_DEVELOPMENT":"http://arcos.rack/TESTING#TEST_DEVELOPMENT", - "TEST_EXECUTION":"http://arcos.rack/TESTING#TEST_EXECUTION", - "TEST_LOG":"http://arcos.rack/TESTING#TEST_LOG", - "TEST_PROCEDURE":"http://arcos.rack/TESTING#TEST_PROCEDURE", - "TEST_RECORD":"http://arcos.rack/TESTING#TEST_RECORD", - "TEST_RESULT":"http://arcos.rack/TESTING#TEST_RESULT", - "TEST_STATUS":"http://arcos.rack/TESTING#TEST_STATUS", - "TEST_STEP":"http://arcos.rack/TESTING#TEST_STEP", - "THING":"http://arcos.rack/PROV-S#THING", - "THREAT":"http://arcos.rack/SECURITY#THREAT", - "THREAT_IDENTIFICATION":"http://arcos.rack/SECURITY#THREAT_IDENTIFICATION", - "TOOL":"http://arcos.rack/AGENTS#TOOL", - "acert_AcertRequirementModel":"http://arcos.acert/GrammaTech#AcertRequirementModel", - "acert_AcertTestExecution":"http://arcos.acert/GrammaTech#AcertTestExecution", - "acert_AcertTestResult":"http://arcos.acert/GrammaTech#AcertTestResult", - "acert_FailureReason":"http://arcos.acert/GrammaTech#FailureReason", - "arbiter_StrComponent":"http://arcos.arbiter/STR#StrComponent", - "arbiter_StrEarsModel":"http://arcos.arbiter/STR#StrEarsModel", - "arbiter_StrInPort":"http://arcos.arbiter/STR#StrInPort", - "arbiter_StrOutPort":"http://arcos.arbiter/STR#StrOutPort", - "arbiter_StrPort":"http://arcos.arbiter/STR#StrPort", - "arbiter_StrSystem":"http://arcos.arbiter/STR#StrSystem", - "certgate_ArgumentAsset":"http://arcos.certgate/LM#ArgumentAsset", - "certgate_ArgumentPackage":"http://arcos.certgate/LM#ArgumentPackage", - "certgate_ArgumentReasoning":"http://arcos.certgate/LM#ArgumentReasoning", - "certgate_ArgumentationElement":"http://arcos.certgate/LM#ArgumentationElement", - "certgate_Artifact":"http://arcos.certgate/LM#Artifact", - "certgate_ArtifactAsset":"http://arcos.certgate/LM#ArtifactAsset", - "certgate_ArtifactAssetRelationship":"http://arcos.certgate/LM#ArtifactAssetRelationship", - "certgate_ArtifactElement":"http://arcos.certgate/LM#ArtifactElement", - "certgate_ArtifactPackage":"http://arcos.certgate/LM#ArtifactPackage", - "certgate_ArtifactReference":"http://arcos.certgate/LM#ArtifactReference", - "certgate_AssertedContext":"http://arcos.certgate/LM#AssertedContext", - "certgate_AssertedEvidence":"http://arcos.certgate/LM#AssertedEvidence", - "certgate_AssertedRelationship":"http://arcos.certgate/LM#AssertedRelationship", - "certgate_Assertion":"http://arcos.certgate/LM#Assertion", - "certgate_AssuranceCasePackage":"http://arcos.certgate/LM#AssuranceCasePackage", - "certgate_Category":"http://arcos.certgate/LM#Category", - "certgate_Claim":"http://arcos.certgate/LM#Claim", - "certgate_Description":"http://arcos.certgate/LM#Description", - "certgate_Element":"http://arcos.certgate/LM#Element", - "certgate_Event":"http://arcos.certgate/LM#Event", - "certgate_Expression":"http://arcos.certgate/LM#Expression", - "certgate_ExpressionElement":"http://arcos.certgate/LM#ExpressionElement", - "certgate_ExpressionLangString":"http://arcos.certgate/LM#ExpressionLangString", - "certgate_ImplementationConstraint":"http://arcos.certgate/LM#ImplementationConstraint", - "certgate_LangString":"http://arcos.certgate/LM#LangString", - "certgate_ModelElement":"http://arcos.certgate/LM#ModelElement", - "certgate_MultiLangString":"http://arcos.certgate/LM#MultiLangString", - "certgate_Note":"http://arcos.certgate/LM#Note", - "certgate_Participant":"http://arcos.certgate/LM#Participant", - "certgate_Property":"http://arcos.certgate/LM#Property", - "certgate_Resource":"http://arcos.certgate/LM#Resource", - "certgate_SacmActivity":"http://arcos.certgate/LM#SacmActivity", - "certgate_SacmElement":"http://arcos.certgate/LM#SacmElement", - "certgate_TaggedValue":"http://arcos.certgate/LM#TaggedValue", - "certgate_Technique":"http://arcos.certgate/LM#Technique", - "certgate_Term":"http://arcos.certgate/LM#Term", - "certgate_TerminologyAsset":"http://arcos.certgate/LM#TerminologyAsset", - "certgate_TerminologyElement":"http://arcos.certgate/LM#TerminologyElement", - "certgate_TerminologyGroup":"http://arcos.certgate/LM#TerminologyGroup", - "certgate_TerminologyPackage":"http://arcos.certgate/LM#TerminologyPackage", - "certgate_UtilityElement":"http://arcos.certgate/LM#UtilityElement", - "descert_ClearGenericProperty":"http://arcos.descert/SRI#ClearGenericProperty", - "descert_ClearNotation":"http://arcos.descert/SRI#ClearNotation", - "descert_ClearRequirementAnalysis":"http://arcos.descert/SRI#ClearRequirementAnalysis", - "descert_ClearTestAndOracleGeneration":"http://arcos.descert/SRI#ClearTestAndOracleGeneration", - "descert_ClearTestingTheory":"http://arcos.descert/SRI#ClearTestingTheory", - "descert_ConfigurationString":"http://arcos.descert/SRI#ConfigurationString", - "descert_DaikonInvariantDetection":"http://arcos.descert/SRI#DaikonInvariantDetection", - "descert_DaikonInvariantOutput":"http://arcos.descert/SRI#DaikonInvariantOutput", - "descert_DataDictionary":"http://arcos.descert/SRI#DataDictionary", - "descert_DesCertRequirementModel":"http://arcos.descert/SRI#DesCertRequirementModel", - "descert_DesCert_Tool":"http://arcos.descert/SRI#DesCert_Tool", - "descert_ExecutableObject":"http://arcos.descert/SRI#ExecutableObject", - "descert_LikelyInvariantModel":"http://arcos.descert/SRI#LikelyInvariantModel", - "descert_ObjectFile":"http://arcos.descert/SRI#ObjectFile", - "descert_RadlArchitectureModel":"http://arcos.descert/SRI#RadlArchitectureModel", - "descert_RadlGenericProperty":"http://arcos.descert/SRI#RadlGenericProperty", - "descert_RadlNotation":"http://arcos.descert/SRI#RadlNotation", - "descert_RadlerArchitectureAnalysis":"http://arcos.descert/SRI#RadlerArchitectureAnalysis", - "descert_RandoopJUnitTestGeneration":"http://arcos.descert/SRI#RandoopJUnitTestGeneration", - "descert_RandoopTestsAndMetrics":"http://arcos.descert/SRI#RandoopTestsAndMetrics", - "descert_SallyModelChecking":"http://arcos.descert/SRI#SallyModelChecking", - "descert_SallyNotation":"http://arcos.descert/SRI#SallyNotation", - "descert_SallyPropertyModel":"http://arcos.descert/SRI#SallyPropertyModel", - "descert_SallyTransitionSystemModel":"http://arcos.descert/SRI#SallyTransitionSystemModel", - "descert_SallyTransitionSystemModelGeneration":"http://arcos.descert/SRI#SallyTransitionSystemModelGeneration", - "descert_SoftwareHighLevelRequirementSet":"http://arcos.descert/SRI#SoftwareHighLevelRequirementSet", - "descert_SoftwareIntegration":"http://arcos.descert/SRI#SoftwareIntegration", - "descert_SoftwareLowLevelRequirementSet":"http://arcos.descert/SRI#SoftwareLowLevelRequirementSet", - "descert_SourceCode":"http://arcos.descert/SRI#SourceCode", - "descert_SpecificProperty":"http://arcos.descert/SRI#SpecificProperty", - "descert_SystemRequirementSet":"http://arcos.descert/SRI#SystemRequirementSet", - "descert_TestOracle":"http://arcos.descert/SRI#TestOracle", - "descert_ToolQualificationData":"http://arcos.descert/SRI#ToolQualificationData", - "turnstile_ChangeRequest":"http://arcos.turnstile/GE#ChangeRequest", - "turnstile_Change_Authorization":"http://arcos.turnstile/GE#Change_Authorization", - "turnstile_ControlCoupleCoverageReport":"http://arcos.turnstile/GE#ControlCoupleCoverageReport", - "turnstile_ControlCouplingAnalysis":"http://arcos.turnstile/GE#ControlCouplingAnalysis", - "turnstile_DataAndControlCouple":"http://arcos.turnstile/GE#DataAndControlCouple", - "turnstile_DataCoupleCoverageReport":"http://arcos.turnstile/GE#DataCoupleCoverageReport", - "turnstile_DataCouplingAnalysis":"http://arcos.turnstile/GE#DataCouplingAnalysis", - "turnstile_DataDictionary":"http://arcos.turnstile/GE#DataDictionary", - "turnstile_DefineSystemInterfaces":"http://arcos.turnstile/GE#DefineSystemInterfaces", - "turnstile_DevelopComponentTests":"http://arcos.turnstile/GE#DevelopComponentTests", - "turnstile_DevelopSystemArchitecture":"http://arcos.turnstile/GE#DevelopSystemArchitecture", - "turnstile_DevelopUnitTests":"http://arcos.turnstile/GE#DevelopUnitTests", - "turnstile_Engineer":"http://arcos.turnstile/GE#Engineer", - "turnstile_ExecutableObject":"http://arcos.turnstile/GE#ExecutableObject", - "turnstile_GenerateSoftwareReleaseDocumentation":"http://arcos.turnstile/GE#GenerateSoftwareReleaseDocumentation", - "turnstile_HighLevelRequirement":"http://arcos.turnstile/GE#HighLevelRequirement", - "turnstile_LowLevelRequirement":"http://arcos.turnstile/GE#LowLevelRequirement", - "turnstile_ObjectFile":"http://arcos.turnstile/GE#ObjectFile", - "turnstile_ProblemReport":"http://arcos.turnstile/GE#ProblemReport", - "turnstile_Problem_Reporting":"http://arcos.turnstile/GE#Problem_Reporting", - "turnstile_RequirementConfigurationManagement":"http://arcos.turnstile/GE#RequirementConfigurationManagement", - "turnstile_ReviewConfigurationManagement":"http://arcos.turnstile/GE#ReviewConfigurationManagement", - "turnstile_RpmFile":"http://arcos.turnstile/GE#RpmFile", - "turnstile_SoftwareAccomplishmentSummary":"http://arcos.turnstile/GE#SoftwareAccomplishmentSummary", - "turnstile_SoftwareCodeReview":"http://arcos.turnstile/GE#SoftwareCodeReview", - "turnstile_SoftwareCodeReviewArtifacts":"http://arcos.turnstile/GE#SoftwareCodeReviewArtifacts", - "turnstile_SoftwareCoding":"http://arcos.turnstile/GE#SoftwareCoding", - "turnstile_SoftwareComponentTest":"http://arcos.turnstile/GE#SoftwareComponentTest", - "turnstile_SoftwareComponentTestExecution":"http://arcos.turnstile/GE#SoftwareComponentTestExecution", - "turnstile_SoftwareComponentTestResult":"http://arcos.turnstile/GE#SoftwareComponentTestResult", - "turnstile_SoftwareDesign":"http://arcos.turnstile/GE#SoftwareDesign", - "turnstile_SoftwareDesignReview":"http://arcos.turnstile/GE#SoftwareDesignReview", - "turnstile_SoftwareDesignReviewArtifacts":"http://arcos.turnstile/GE#SoftwareDesignReviewArtifacts", - "turnstile_SoftwareIntegration":"http://arcos.turnstile/GE#SoftwareIntegration", - "turnstile_SoftwareModule":"http://arcos.turnstile/GE#SoftwareModule", - "turnstile_SoftwareRequirementReviewArtifacts":"http://arcos.turnstile/GE#SoftwareRequirementReviewArtifacts", - "turnstile_SoftwareRequirementsDefinition":"http://arcos.turnstile/GE#SoftwareRequirementsDefinition", - "turnstile_SoftwareRequirementsReview":"http://arcos.turnstile/GE#SoftwareRequirementsReview", - "turnstile_SoftwareThread":"http://arcos.turnstile/GE#SoftwareThread", - "turnstile_SoftwareUnitTest":"http://arcos.turnstile/GE#SoftwareUnitTest", - "turnstile_SoftwareUnitTestExecution":"http://arcos.turnstile/GE#SoftwareUnitTestExecution", - "turnstile_SoftwareUnitTestResult":"http://arcos.turnstile/GE#SoftwareUnitTestResult", - "turnstile_SourceCode":"http://arcos.turnstile/GE#SourceCode", - "turnstile_SourceConfigurationManagement":"http://arcos.turnstile/GE#SourceConfigurationManagement", - "turnstile_StructuralCoverageAnalysis":"http://arcos.turnstile/GE#StructuralCoverageAnalysis", - "turnstile_StructuralCoverageReport":"http://arcos.turnstile/GE#StructuralCoverageReport", - "turnstile_SystemComponent":"http://arcos.turnstile/GE#SystemComponent", - "turnstile_SystemInterfaceDefinition":"http://arcos.turnstile/GE#SystemInterfaceDefinition", - "turnstile_SystemRequirement":"http://arcos.turnstile/GE#SystemRequirement", - "turnstile_SystemRequirementsDefinition":"http://arcos.turnstile/GE#SystemRequirementsDefinition"} diff --git a/ScrapingToolKit/Evidence/RACK-DATA.xsd b/ScrapingToolKit/Evidence/RACK-DATA.xsd deleted file mode 100644 index 17da3ef8..00000000 --- a/ScrapingToolKit/Evidence/RACK-DATA.xsd +++ /dev/null @@ -1,4970 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ScrapingToolKit/Evidence/__init__.py b/ScrapingToolKit/Evidence/__init__.py index 36231a81..b128dcd3 100644 --- a/ScrapingToolKit/Evidence/__init__.py +++ b/ScrapingToolKit/Evidence/__init__.py @@ -48,7 +48,7 @@ def createCDR(dataGraph="http://rack001/data"): ''' global __EvidenceDir__, __Evidence__, __ingestionIdentifier__ - Add.ACTIVITY(identifier=__ingestionIdentifier__,endedAtTime=str(datetime.now()).split(".")[0]) + Add.PROV_S.ACTIVITY(identifier=__ingestionIdentifier__,endedAtTime=str(datetime.now()).split(".")[0]) __Evidence__.write(__EvidenceDir__, pretty_print=True, @@ -77,11 +77,11 @@ def createCDR(dataGraph="http://rack001/data"): if c.find("identifier").text not in loaded: outwriter.writerow([c.find("identifier").text]) loaded.append(c.find("identifier").text) - # Check to see if the header item - for k in headers: - if c.find(k) is not None: - if k not in usedHeaders: - usedHeaders.append(k) + # Check to see if the header item + for k in headers: + if c.find(k) is not None: + if k not in usedHeaders: + usedHeaders.append(k) else: log("Identifier not found.") @@ -132,7 +132,7 @@ def createEvidenceFile(ingestionTitle="ScrapingToolKitIngestion", ingestionDescr __ingestionIdentifier__ = ingestionTitle - Add.ACTIVITY(identifier=__ingestionIdentifier__,description = ingestionDescription, + Add.PROV_S.ACTIVITY(identifier=__ingestionIdentifier__,description = ingestionDescription, title= ingestionTitle, startedAtTime=str(datetime.now()).split(".")[0]) diff --git a/ScrapingToolKit/Install-STK.sh b/ScrapingToolKit/Install-STK.sh new file mode 100755 index 00000000..93ee6cae --- /dev/null +++ b/ScrapingToolKit/Install-STK.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Copyright (c) 2020, General Electric Company and Galois, Inc. + +BASEDIR=$(cd "$(dirname "$0")" || exit; pwd) +echo "Installing RACK-STK from $BASEDIR" + +echo "Creating Derived files from Local RACK instance" + +python3 "$BASEDIR"/AutoGeneration/Generate-STK.py + +pip3 install "$BASEDIR" --upgrade diff --git a/ScrapingToolKit/README.md b/ScrapingToolKit/README.md index 21ccdf14..82c0da9f 100644 --- a/ScrapingToolKit/README.md +++ b/ScrapingToolKit/README.md @@ -3,7 +3,7 @@ The Scraping Tool Kit (STK) is a series of python packages that provide utilitie # Installation -STK is installed by downloading the files to your local machine. This can either be from a git clone of the whole RACK repo, or it can be just the ScrapingToolKit folder. Once the source files are downloaded installation is as simple entering `pip install .` from a command window in your `ScrapingToolKit` folder. +STK is installed by downloading the files to your local machine. This can either be from a git clone of the whole RACK repo, or it can be just the ScrapingToolKit folder. After the repo is downloaded with and with RACK running on you local machine and the desired ontology loaded, execute the script `AutoGeneration/Generate-STK.py`, this will create `Evidence/Add.py`, `Evidence/CONSTANTS.py` and `Evidence/RACK-DATA.xsd`. Once the source files are generated installation is as simple entering `pip install .` from a command window in your `ScrapingToolKit` folder. dependencies can be installed by `pip install -r requirements.txt` to install all dependencies at once or they can be installed individually. Dependencies: @@ -11,11 +11,16 @@ Dependencies: `pip install colorama` `pip install graphviz` `pip install ftfy` +`pip install git+https://github.com/ge-semtk/semtk-python3@master` Note: Sometimes for linux machines that have multiple versions of Python installed the command will be `pip3 install .` TODO: May need to add more instructions to make sure any missing dependencies are installed as well; possibly set up as a virtualenv +`Install-STK.sh` will perform the build and pip install steps. + +Note: If new ontology is loaded `Generate-STK.py` and `pip install .` commands can be run again to update the ScrapingToolKit with new the new ontology. + # Usage After installing, the STK there are two modules that need to be imported into your python script in order to use. @@ -33,8 +38,38 @@ After installing, the STK there are two modules that need to be imported into yo `Evidence.Add` - This module is provides all the `Add` functions for adding data in the RACK-DATA.xml. For each class from the ontology there is a function that allows you to add an evidence record to the RACK-DATA.xml. ### - `Evidence.Add.` - Each function has a series of option arguments that correspond to the properties of the class. Every property is optional and are defaulted to `None`, for example: - `def FILE(createBy_identifier=None, fileFormat_identifier=None, fileHash_identifier=None, fileParent_identifier=None, filename=None, satisfies_identifier=None, dataInsertedBy_identifier=None, description=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None)` + `Evidence.Add..` - Each function has a series of option arguments that correspond to the properties of the class. Every property is optional and are defaulted to `None`, for example: +``` +class FILE: + ''' + ╔═══════════════════════════════════════════════════════════════╗ + ║ http://arcos.rack/FILE#FILE ║ + ╠═══════════════════════════════════════════════════════════════╣ + ║ Add.FILE.FILE() ║ + ╟───────────────────────────────────────────────────────────────╢ + ║ dataInsertedBy_identifier : string ║ + ║ definedIn_identifier : string ║ + ║ description : string ║ + ║ entityURL : string ║ + ║ fileFormat_identifier : string ║ + ║ fileHash_identifier : string ║ + ║ filename : string ║ + ║ generatedAtTime : dateTime ║ + ║ identifier : string ║ + ║ invalidatedAtTime : dateTime ║ + ║ satisfies_identifier : string ║ + ║ title : string ║ + ║ wasAttributedTo_identifier : string ║ + ║ wasDerivedFrom_identifier : string ║ + ║ wasGeneratedBy_identifier : string ║ + ║ wasImpactedBy_identifier : string ║ + ║ wasRevisionOf_identifier : string ║ + ╚═══════════════════════════════════════════════════════════════╝ + + ''' + @staticmethod + def FILE(dataInsertedBy_identifier=None, definedIn_identifier=None, description=None, entityURL=None, fileFormat_identifier=None, fileHash_identifier=None, filename=None, generatedAtTime=None, identifier=None, invalidatedAtTime=None, satisfies_identifier=None, title=None, wasAttributedTo_identifier=None, wasDerivedFrom_identifier=None, wasGeneratedBy_identifier=None, wasImpactedBy_identifier=None, wasRevisionOf_identifier=None): +``` When this function is call the RACK-DATA.xml is populated with a Evidence Record based on the data provided. @@ -47,9 +82,9 @@ import Evidence import Evidence.Add Evidence.createEvidenceFile() -Evidence.Add.REQUIREMENT(identifier = "R-1", description = "System shall do something.", satisfies_identifier = "Parent-1") -Evidence.Add.FILE(identifier = "SourceCodeFile", satisfies_identifier = "R-1") -Evidence.Add.REQUIREMENT(identifier = "R-2", description = "System shall do something else.", satisfies_identifier = "Parent-1") +Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = "R-1", description = "System shall do something.", satisfies_identifier = "Parent-1") +Evidence.Add.FILE.FILE(identifier = "SourceCodeFile", satisfies_identifier = "R-1") +Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = "R-2", description = "System shall do something else.", satisfies_identifier = "Parent-1") Evidence.createCDR() ``` This will create a `ENTITY` for `PARENT-1`. @@ -59,10 +94,10 @@ import Evidence import Evidence.Add Evidence.createEvidenceFile() -Evidence.Add.REQUIREMENT(identifier = "R-1", description = "System shall do something.", satisfies_identifier = "Parent-1") -Evidence.Add.FILE(identifier = "SourceCodeFile", satisfies_identifier = "R-1") -Evidence.Add.REQUIREMENT(identifier = "R-2", description = "System shall do something else.", satisfies_identifier = "Parent-1") -Evidence.Add.REQUIREMENT(identifier = "Parent-1") +Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = "R-1", description = "System shall do something.", satisfies_identifier = "Parent-1") +Evidence.Add.FILE.FILE(identifier = "SourceCodeFile", satisfies_identifier = "R-1") +Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = "R-2", description = "System shall do something else.", satisfies_identifier = "Parent-1") +Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = "Parent-1") Evidence.createCDR() ``` This will create `PARENT-1` as a `REQUIREMENT`. @@ -72,10 +107,10 @@ import Evidence import Evidence.Add Evidence.createEvidenceFile() -Evidence.Add.REQUIREMENT(identifier = "R-1", description = "System shall do something.", satisfies_identifier = "Parent-1") -Evidence.Add.FILE(identifier = "SourceCodeFile", satisfies_identifier = "R-1") -Evidence.Add.REQUIREMENT(identifier = "R-2", description = "System shall do something else.", satisfies_identifier = "Parent-1") -Evidence.Add.SPECIFICATION(identifier = "Parent-1") +Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = "R-1", description = "System shall do something.", satisfies_identifier = "Parent-1") +Evidence.Add.FILE.FILE(identifier = "SourceCodeFile", satisfies_identifier = "R-1") +Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = "R-2", description = "System shall do something else.", satisfies_identifier = "Parent-1") +Evidence.Add.DOCUMENT.SPECIFICATION(identifier = "Parent-1") Evidence.createCDR() ``` This will create `PARENT-1` as a `SPECIFICATION`. @@ -84,20 +119,20 @@ This will create `PARENT-1` as a `SPECIFICATION`. import Evidence import Evidence.Add -Evidence.createEvidenceFile() -Evidence.Add.REQUIREMENT(identifier = "R-1", description = "System shall do something.", satisfies_identifier = "Parent-1") -Evidence.Add.FILE(identifier = "SourceCodeFile", satisfies_identifier = "R-1") -Evidence.Add.REQUIREMENT(identifier = "R-2", description = "System shall do something else.", satisfies_identifier = "Parent-1") -Evidence.Add.SPECIFICATION(identifier = "Parent-1") -Evidence.Add.REQUIREMENT(identifier = "Parent-1") +Evidence.REQUIREMENTS.createEvidenceFile() +Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = "R-1", description = "System shall do something.", satisfies_identifier = "Parent-1") +Evidence.Add.FILE.FILE(identifier = "SourceCodeFile", satisfies_identifier = "R-1") +Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = "R-2", description = "System shall do something else.", satisfies_identifier = "Parent-1") +Evidence.Add.DOCUMENT.SPECIFICATION(identifier = "Parent-1") +Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = "Parent-1") Evidence.createCDR() ``` This will result in an ingestion error. `PARENT-1` for the `satisfies_identifier` could be either `SPECIFICATION` or `REQUIREMENT`. # Examples -## Example Plain Text +## NTS.Plain Text -Ingesting of Text Files is entirely up to the user on how the data is formatted and how they are processing it. This example is created just to show how the STK can be used, it is not the only way. Any processing begins by examining the data to be ingested. For this short tutorial we are going to look at a simple text file "REQs.txt" +Ingesting of Text Files is entirely up to the user on how the data is formatted and how they are processing it. This example is created just to show how the STK can be used, it is e only way. Any processing begins by examining the data to be ingested. For this short tutorial we are going to look at a simple text file "REQs.txt" Example File REQs.txt: ``` @@ -124,7 +159,7 @@ def ingest(filePath): reqId, reqDesc = l.split("-") reqId = reqId.lstrip().rstrip() reqDesc = reqDesc.lstrip().rstrip() - Evidence.Add.REQUIREMENT(identifier = reqId, description = reqDesc) + Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = reqId, description = reqDesc) lastReqId = reqId elif l.startswith("ParentRequirement"): # Found Parent Requirement List @@ -132,15 +167,15 @@ def ingest(filePath): end = l.rfind("}") parIds = l[start+1:end].split(",") for pId in parIds: - Evidence.Add.REQUIREMENT(identifier = lastReqId, satisfies_identifier = pId) - Evidence.Add.REQUIREMENT(identifier = pId) + Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = lastReqId, satisfies_identifier = pId) + Evidence.Add.REQUIREMENTS.REQUIREMENT(identifier = pId) elif l.startswith("SourceCode"): # Found Source Code List start = l.find("{") end = l.rfind("}") sourceIds = l[start+1:end].split(",") for sId in sourceIds: - Evidence.Add.FILE(identifier = sId, satisfies_identifier = lastReqId) + Evidence.Add.FILE.FILE(identifier = sId, satisfies_identifier = lastReqId) if __name__=="__main__": Evidence.createEvidenceFile() @@ -184,16 +219,16 @@ def req(e): Add.REQUIREMENT(identifier=reqId) for p in e.iter("ParentReq"): parentId = p.attrib["id"] - Add.REQUIREMENT(identifier=parentId) - Add.REQUIREMENT(identifier=reqId, satisfies_identifier=parentId) + Add.REQUIREMENTS.REQUIREMENT(identifier=parentId) + Add.REQUIREMENTS.REQUIREMENT(identifier=reqId, satisfies_identifier=parentId) for f in e.iter("Source"): fileId = f.attrib["id"] - Add.FILE(identifier=fileId) - Add.FILE(identifier=fileId, satisfies_identifier=reqId) + Add.FILE.FILE(identifier=fileId) + Add.FILE.FILE(identifier=fileId, satisfies_identifier=reqId) def initialize(xmlPath): global __xmlroot__, handlers, __xmlpath__ - Add.FILE(identifier=xmlPath) + Add.FILE.FILE(identifier=xmlPath) # Initialize the tag handlers. handlers = {"Req", req} @@ -205,10 +240,3 @@ STK ultimately produces two sets of CDR files and an import.yaml files when the Resulting data can be ingested into RACK by using the CLI command: `rack data import /RACK-DATA/import.yaml` - -# Updating STK - -STK has the ability to be updated to use the latest CDR files. This can be done by downloading the entire RACK repo. From the RACK repo run the python script `Autogeneration\ReadNodegroups.py`. - -This will generate updated `\Evidence\Add.py`, `\Evidence\CONSTANTS.py` and `\Evidence\RACK-DATA.xsd`. These files will be tailored to the CDR nodegroups (json files that start with "ingest_", i.e. "ingest_ACTIVITY.json") found in the `nodegroups` folder of the repo. To use these updated file simply re-install the STK using `pip install .` as described in the installation section. - diff --git a/ScrapingToolKit/TestSTK.py b/ScrapingToolKit/TestSTK.py index d6604815..0fe0d800 100644 --- a/ScrapingToolKit/TestSTK.py +++ b/ScrapingToolKit/TestSTK.py @@ -18,11 +18,13 @@ createEvidenceFile() -Add.ACTIVITY(identifier="TST-ACTIVITY-1") -Add.REQUIREMENT(identifier="TST-REQUIREMENT-1", description="Thing shall do what it should do.") -Add.REQUIREMENT(identifier="TST-REQUIREMENT-2", +Add.PROV_S.ACTIVITY(identifier="TST-ACTIVITY-1") +Add.REQUIREMENTS.REQUIREMENT(identifier="TST-REQUIREMENT-1", description="Thing shall do what it should do.") +Add.REQUIREMENTS.REQUIREMENT(identifier="TST-REQUIREMENT-2", description="Thing2 shall do what it should do.", satisfies_identifier="TST-REQUIREMENT-1", - createdBy_identifier="TST-ACTIVITY-1") + wasAttributedTo_identifier="TST-ACTIVITY-1") + +#Add.REQUIREMENTS.REQUIREMENT(ientifier="TST-REQUIREMENT-2") -createCDR() \ No newline at end of file +createCDR() diff --git a/ScrapingToolKit/requirements.txt b/ScrapingToolKit/requirements.txt index 2b57ed7e..2e1c1dad 100644 --- a/ScrapingToolKit/requirements.txt +++ b/ScrapingToolKit/requirements.txt @@ -2,3 +2,4 @@ colorama lxml graphviz ftfy +semtk-python3 @ git+https://github.com/ge-semtk/semtk-python3@d44a45941d06ec6466bbe61bfd81cd667d6a5137 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ORGANIZATION1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/AGENTS_ORGANIZATION1.csv similarity index 93% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ORGANIZATION1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/AGENTS_ORGANIZATION1.csv index 4bba9ecb..38f95d4a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ORGANIZATION1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/AGENTS_ORGANIZATION1.csv @@ -1,2 +1,2 @@ -identifier -General_Electric +identifier +General_Electric diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ORGANIZATION2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/AGENTS_ORGANIZATION2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ORGANIZATION2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/AGENTS_ORGANIZATION2.csv index 2367ad77..cbff4311 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ORGANIZATION2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/AGENTS_ORGANIZATION2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -General_Electric,TurnstileIngestion-SystemReview +identifier,dataInsertedBy_identifier +General_Electric,TurnstileIngestion-SystemReview diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT_DOCUMENT1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT_DOCUMENT1.csv index ffd310d0..d63719ab 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT_DOCUMENT1.csv @@ -1,3 +1,3 @@ -identifier -RQ-STD:v1 -SW-STD:v1 +identifier +RQ-STD:v1 +SW-STD:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT_DOCUMENT2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT_DOCUMENT2.csv index 193f55d3..50a6d0b5 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/DOCUMENT_DOCUMENT2.csv @@ -1,6 +1,6 @@ -identifier,dataInsertedBy_identifier -RQ-STD:v1,TurnstileIngestion-SystemReview -RQ-STD:v1,TurnstileIngestion-SystemReview -SW-STD:v1,TurnstileIngestion-SystemReview -SW-STD:v1,TurnstileIngestion-SystemReview -SW-STD:v1,TurnstileIngestion-SystemReview +identifier,dataInsertedBy_identifier +RQ-STD:v1,TurnstileIngestion-SystemReview +RQ-STD:v1,TurnstileIngestion-SystemReview +SW-STD:v1,TurnstileIngestion-SystemReview +SW-STD:v1,TurnstileIngestion-SystemReview +SW-STD:v1,TurnstileIngestion-SystemReview diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_DataDictionary1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_DataDictionary1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_DataDictionary1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_DataDictionary1.csv index 11a3e1bb..237dd4f2 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_DataDictionary1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_DataDictionary1.csv @@ -1,5 +1,5 @@ -identifier -inflowEvent -outflowEvent -counter -display +identifier +inflowEvent +outflowEvent +counter +display diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_DataDictionary2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_DataDictionary2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_DataDictionary2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_DataDictionary2.csv index b9677a8a..9e0c93e9 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_DataDictionary2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_DataDictionary2.csv @@ -1,5 +1,5 @@ -identifier,dataInsertedBy_identifier -inflowEvent,TurnstileIngestion-SystemReview -outflowEvent,TurnstileIngestion-SystemReview -counter,TurnstileIngestion-SystemReview -display,TurnstileIngestion-SystemReview +identifier,dataInsertedBy_identifier +inflowEvent,TurnstileIngestion-SystemReview +outflowEvent,TurnstileIngestion-SystemReview +counter,TurnstileIngestion-SystemReview +display,TurnstileIngestion-SystemReview diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_Engineer1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_Engineer1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_Engineer1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_Engineer1.csv index 5cd05528..4afafedd 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_Engineer1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_Engineer1.csv @@ -1,2 +1,2 @@ -identifier -259863025 +identifier +259863025 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_Engineer2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_Engineer2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_Engineer2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_Engineer2.csv index 9924a488..a4dbba8f 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_Engineer2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_Engineer2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier,emailAddress,employedBy_identifier,title -259863025,TurnstileIngestion-SystemReview,john.public@ge.com,General_Electric,"Public, John" +identifier,dataInsertedBy_identifier,emailAddress,employedBy_identifier,title +259863025,TurnstileIngestion-SystemReview,john.public@ge.com,General_Electric,"Public, John" diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_HighLevelRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_HighLevelRequirement1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_HighLevelRequirement1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_HighLevelRequirement1.csv index 3dba20bc..55e9bcdc 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_HighLevelRequirement1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_HighLevelRequirement1.csv @@ -1,6 +1,6 @@ -identifier -HLR-1:v1 -HLR-2:v1 -HLR-3:v1 -HLR-1:v2 -HLR-2:v2 +identifier +HLR-1:v1 +HLR-2:v1 +HLR-3:v1 +HLR-1:v2 +HLR-2:v2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_HighLevelRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_HighLevelRequirement2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_HighLevelRequirement2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_HighLevelRequirement2.csv index 91282b48..95f38054 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_HighLevelRequirement2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_HighLevelRequirement2.csv @@ -1,11 +1,11 @@ -identifier,dataInsertedBy_identifier -HLR-1:v1,TurnstileIngestion-SystemReview -HLR-2:v1,TurnstileIngestion-SystemReview -HLR-3:v1,TurnstileIngestion-SystemReview -HLR-1:v1,TurnstileIngestion-SystemReview -HLR-2:v1,TurnstileIngestion-SystemReview -HLR-3:v1,TurnstileIngestion-SystemReview -HLR-1:v2,TurnstileIngestion-SystemReview -HLR-1:v2,TurnstileIngestion-SystemReview -HLR-2:v2,TurnstileIngestion-SystemReview -HLR-1:v2,TurnstileIngestion-SystemReview +identifier,dataInsertedBy_identifier +HLR-1:v1,TurnstileIngestion-SystemReview +HLR-2:v1,TurnstileIngestion-SystemReview +HLR-3:v1,TurnstileIngestion-SystemReview +HLR-1:v1,TurnstileIngestion-SystemReview +HLR-2:v1,TurnstileIngestion-SystemReview +HLR-3:v1,TurnstileIngestion-SystemReview +HLR-1:v2,TurnstileIngestion-SystemReview +HLR-1:v2,TurnstileIngestion-SystemReview +HLR-2:v2,TurnstileIngestion-SystemReview +HLR-1:v2,TurnstileIngestion-SystemReview diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_LowLevelRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_LowLevelRequirement1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_LowLevelRequirement1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_LowLevelRequirement1.csv index 03be79b4..fece63fa 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_LowLevelRequirement1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_LowLevelRequirement1.csv @@ -1,12 +1,12 @@ -identifier -IN-LLR-1 -IN-LLR-2:v2 -IN-LLR-3:v2 -IN-LLR-4 -IN-LLR-5 -IN-LLR-6 -OUT-LLR-1 -OUT-LLR-2:v2 -EXE-LLR-1 -EXE-LLR-2 -EXE-LLR-3 +identifier +IN-LLR-1 +IN-LLR-2:v2 +IN-LLR-3:v2 +IN-LLR-4 +IN-LLR-5 +IN-LLR-6 +OUT-LLR-1 +OUT-LLR-2:v2 +EXE-LLR-1 +EXE-LLR-2 +EXE-LLR-3 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_LowLevelRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_LowLevelRequirement2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_LowLevelRequirement2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_LowLevelRequirement2.csv index df6f8e47..3d64596f 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_LowLevelRequirement2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_LowLevelRequirement2.csv @@ -1,23 +1,23 @@ -identifier,dataInsertedBy_identifier -IN-LLR-1,TurnstileIngestion-SystemReview -IN-LLR-2:v2,TurnstileIngestion-SystemReview -IN-LLR-3:v2,TurnstileIngestion-SystemReview -IN-LLR-4,TurnstileIngestion-SystemReview -IN-LLR-5,TurnstileIngestion-SystemReview -IN-LLR-6,TurnstileIngestion-SystemReview -IN-LLR-1,TurnstileIngestion-SystemReview -IN-LLR-2:v2,TurnstileIngestion-SystemReview -IN-LLR-3:v2,TurnstileIngestion-SystemReview -IN-LLR-4,TurnstileIngestion-SystemReview -IN-LLR-5,TurnstileIngestion-SystemReview -IN-LLR-6,TurnstileIngestion-SystemReview -OUT-LLR-1,TurnstileIngestion-SystemReview -OUT-LLR-2:v2,TurnstileIngestion-SystemReview -OUT-LLR-1,TurnstileIngestion-SystemReview -OUT-LLR-2:v2,TurnstileIngestion-SystemReview -EXE-LLR-1,TurnstileIngestion-SystemReview -EXE-LLR-2,TurnstileIngestion-SystemReview -EXE-LLR-3,TurnstileIngestion-SystemReview -EXE-LLR-1,TurnstileIngestion-SystemReview -EXE-LLR-2,TurnstileIngestion-SystemReview -EXE-LLR-3,TurnstileIngestion-SystemReview +identifier,dataInsertedBy_identifier +IN-LLR-1,TurnstileIngestion-SystemReview +IN-LLR-2:v2,TurnstileIngestion-SystemReview +IN-LLR-3:v2,TurnstileIngestion-SystemReview +IN-LLR-4,TurnstileIngestion-SystemReview +IN-LLR-5,TurnstileIngestion-SystemReview +IN-LLR-6,TurnstileIngestion-SystemReview +IN-LLR-1,TurnstileIngestion-SystemReview +IN-LLR-2:v2,TurnstileIngestion-SystemReview +IN-LLR-3:v2,TurnstileIngestion-SystemReview +IN-LLR-4,TurnstileIngestion-SystemReview +IN-LLR-5,TurnstileIngestion-SystemReview +IN-LLR-6,TurnstileIngestion-SystemReview +OUT-LLR-1,TurnstileIngestion-SystemReview +OUT-LLR-2:v2,TurnstileIngestion-SystemReview +OUT-LLR-1,TurnstileIngestion-SystemReview +OUT-LLR-2:v2,TurnstileIngestion-SystemReview +EXE-LLR-1,TurnstileIngestion-SystemReview +EXE-LLR-2,TurnstileIngestion-SystemReview +EXE-LLR-3,TurnstileIngestion-SystemReview +EXE-LLR-1,TurnstileIngestion-SystemReview +EXE-LLR-2,TurnstileIngestion-SystemReview +EXE-LLR-3,TurnstileIngestion-SystemReview diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReview1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReview1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReview1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReview1.csv index 059fb793..e9f7702a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReview1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReview1.csv @@ -1,4 +1,4 @@ -identifier -LlrReview1 -LlrReview2 -LlrReview3 +identifier +LlrReview1 +LlrReview2 +LlrReview3 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReview2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReview2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReview2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReview2.csv index 866d82e1..a5cc4ba7 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReview2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReview2.csv @@ -1,15 +1,15 @@ -identifier,dataInsertedBy_identifier,reviewed_identifier,author_identifier,governedBy_identifier,reviewer_identifier -LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-1,,, -LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-2:v2,,, -LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-3:v2,,, -LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-4,,, -LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-5,,, -LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-6,,, -LlrReview1,TurnstileIngestion-SystemReview,,2125895152,SW-STD:v1,259863025 -LlrReview2,TurnstileIngestion-SystemReview,OUT-LLR-1,,, -LlrReview2,TurnstileIngestion-SystemReview,OUT-LLR-2:v2,,, -LlrReview2,TurnstileIngestion-SystemReview,,2125895152,SW-STD:v1,259863025 -LlrReview3,TurnstileIngestion-SystemReview,EXE-LLR-1,,, -LlrReview3,TurnstileIngestion-SystemReview,EXE-LLR-2,,, -LlrReview3,TurnstileIngestion-SystemReview,EXE-LLR-3,,, -LlrReview3,TurnstileIngestion-SystemReview,,2125895152,SW-STD:v1,259863025 +identifier,dataInsertedBy_identifier,reviewed_identifier,author_identifier,governedBy_identifier,reviewer_identifier +LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-1,,, +LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-2:v2,,, +LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-3:v2,,, +LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-4,,, +LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-5,,, +LlrReview1,TurnstileIngestion-SystemReview,IN-LLR-6,,, +LlrReview1,TurnstileIngestion-SystemReview,,2125895152,SW-STD:v1,259863025 +LlrReview2,TurnstileIngestion-SystemReview,OUT-LLR-1,,, +LlrReview2,TurnstileIngestion-SystemReview,OUT-LLR-2:v2,,, +LlrReview2,TurnstileIngestion-SystemReview,,2125895152,SW-STD:v1,259863025 +LlrReview3,TurnstileIngestion-SystemReview,EXE-LLR-1,,, +LlrReview3,TurnstileIngestion-SystemReview,EXE-LLR-2,,, +LlrReview3,TurnstileIngestion-SystemReview,EXE-LLR-3,,, +LlrReview3,TurnstileIngestion-SystemReview,,2125895152,SW-STD:v1,259863025 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReviewArtifacts1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReviewArtifacts1.csv similarity index 93% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReviewArtifacts1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReviewArtifacts1.csv index e77b6751..1def5289 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReviewArtifacts1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReviewArtifacts1.csv @@ -1,12 +1,12 @@ -identifier -LlrReview1Log-1 -LlrReview1Log-2 -LlrReview1Log-3 -LlrReview1Log-4 -LlrReview1Log-5 -LlrReview1Log-6 -LlrReview2Log-1 -LlrReview2Log-2 -LlrReview3Log-1 -LlrReview3Log-2 -LlrReview3Log-3 +identifier +LlrReview1Log-1 +LlrReview1Log-2 +LlrReview1Log-3 +LlrReview1Log-4 +LlrReview1Log-5 +LlrReview1Log-6 +LlrReview2Log-1 +LlrReview2Log-2 +LlrReview3Log-1 +LlrReview3Log-2 +LlrReview3Log-3 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReviewArtifacts2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReviewArtifacts2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReviewArtifacts2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReviewArtifacts2.csv index 9eb585f5..4c1ecf39 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareDesignReviewArtifacts2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareDesignReviewArtifacts2.csv @@ -1,12 +1,12 @@ -identifier,dataInsertedBy_identifier,reviewResult_identifier,reviews_identifier,wasGeneratedBy_identifier -LlrReview1Log-1,TurnstileIngestion-SystemReview,Passed,IN-LLR-1,LlrReview1 -LlrReview1Log-2,TurnstileIngestion-SystemReview,Passed,IN-LLR-2:v2,LlrReview1 -LlrReview1Log-3,TurnstileIngestion-SystemReview,Passed,IN-LLR-3:v2,LlrReview1 -LlrReview1Log-4,TurnstileIngestion-SystemReview,Passed,IN-LLR-4,LlrReview1 -LlrReview1Log-5,TurnstileIngestion-SystemReview,Passed,IN-LLR-5,LlrReview1 -LlrReview1Log-6,TurnstileIngestion-SystemReview,Passed,IN-LLR-6,LlrReview1 -LlrReview2Log-1,TurnstileIngestion-SystemReview,Passed,OUT-LLR-1,LlrReview2 -LlrReview2Log-2,TurnstileIngestion-SystemReview,Passed,OUT-LLR-2:v2,LlrReview2 -LlrReview3Log-1,TurnstileIngestion-SystemReview,Passed,EXE-LLR-1,LlrReview3 -LlrReview3Log-2,TurnstileIngestion-SystemReview,Passed,EXE-LLR-2,LlrReview3 -LlrReview3Log-3,TurnstileIngestion-SystemReview,Passed,EXE-LLR-3,LlrReview3 +identifier,dataInsertedBy_identifier,reviewResult_identifier,reviews_identifier,wasGeneratedBy_identifier +LlrReview1Log-1,TurnstileIngestion-SystemReview,Passed,IN-LLR-1,LlrReview1 +LlrReview1Log-2,TurnstileIngestion-SystemReview,Passed,IN-LLR-2:v2,LlrReview1 +LlrReview1Log-3,TurnstileIngestion-SystemReview,Passed,IN-LLR-3:v2,LlrReview1 +LlrReview1Log-4,TurnstileIngestion-SystemReview,Passed,IN-LLR-4,LlrReview1 +LlrReview1Log-5,TurnstileIngestion-SystemReview,Passed,IN-LLR-5,LlrReview1 +LlrReview1Log-6,TurnstileIngestion-SystemReview,Passed,IN-LLR-6,LlrReview1 +LlrReview2Log-1,TurnstileIngestion-SystemReview,Passed,OUT-LLR-1,LlrReview2 +LlrReview2Log-2,TurnstileIngestion-SystemReview,Passed,OUT-LLR-2:v2,LlrReview2 +LlrReview3Log-1,TurnstileIngestion-SystemReview,Passed,EXE-LLR-1,LlrReview3 +LlrReview3Log-2,TurnstileIngestion-SystemReview,Passed,EXE-LLR-2,LlrReview3 +LlrReview3Log-3,TurnstileIngestion-SystemReview,Passed,EXE-LLR-3,LlrReview3 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementReviewArtifacts1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementReviewArtifacts1.csv similarity index 93% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementReviewArtifacts1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementReviewArtifacts1.csv index 05237098..78ec8faf 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementReviewArtifacts1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementReviewArtifacts1.csv @@ -1,6 +1,6 @@ -identifier -HlrReviewLog-1 -HlrReviewLog-2 -HlrReviewLog-3 -HlrReviewLog-4 -HlrReviewLog-5 +identifier +HlrReviewLog-1 +HlrReviewLog-2 +HlrReviewLog-3 +HlrReviewLog-4 +HlrReviewLog-5 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementReviewArtifacts2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementReviewArtifacts2.csv similarity index 65% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementReviewArtifacts2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementReviewArtifacts2.csv index 4d59dc0c..7e5ccc38 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementReviewArtifacts2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementReviewArtifacts2.csv @@ -1,6 +1,6 @@ -identifier,dataInsertedBy_identifier,reviewResult_identifier,reviews_identifier,wasGeneratedBy_identifier -HlrReviewLog-1,TurnstileIngestion-SystemReview,"Revise With Review",HLR-1:v1,HlrReview -HlrReviewLog-2,TurnstileIngestion-SystemReview,"Revise With Review",HLR-2:v1,HlrReview -HlrReviewLog-3,TurnstileIngestion-SystemReview,Passed,HLR-3:v1,HlrReview -HlrReviewLog-4,TurnstileIngestion-SystemReview,Passed,HLR-1:v2,HlrReview-2 -HlrReviewLog-5,TurnstileIngestion-SystemReview,Passed,HLR-2:v2,HlrReview-2 +identifier,dataInsertedBy_identifier,reviewResult_identifier,reviews_identifier,wasGeneratedBy_identifier +HlrReviewLog-1,TurnstileIngestion-SystemReview,Revise With Review,HLR-1:v1,HlrReview +HlrReviewLog-2,TurnstileIngestion-SystemReview,Revise With Review,HLR-2:v1,HlrReview +HlrReviewLog-3,TurnstileIngestion-SystemReview,Passed,HLR-3:v1,HlrReview +HlrReviewLog-4,TurnstileIngestion-SystemReview,Passed,HLR-1:v2,HlrReview-2 +HlrReviewLog-5,TurnstileIngestion-SystemReview,Passed,HLR-2:v2,HlrReview-2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementsReview1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementsReview1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementsReview1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementsReview1.csv index c64c8be2..16aeaa6a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementsReview1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementsReview1.csv @@ -1,3 +1,3 @@ -identifier -HlrReview -HlrReview-2 +identifier +HlrReview +HlrReview-2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementsReview2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementsReview2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementsReview2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementsReview2.csv index 45569601..ccade3dc 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_SoftwareRequirementsReview2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/GE_SoftwareRequirementsReview2.csv @@ -1,12 +1,12 @@ -identifier,dataInsertedBy_identifier,author_identifier,governedBy_identifier,reviewer_identifier,reviewed_identifier -HlrReview,TurnstileIngestion-SystemReview,125569538,RQ-STD:v1,259863025, -HlrReview,TurnstileIngestion-SystemReview,,,,HLR-1:v1 -HlrReview,TurnstileIngestion-SystemReview,,,,HLR-2:v1 -HlrReview,TurnstileIngestion-SystemReview,,,,HLR-3:v1 -HlrReview,TurnstileIngestion-SystemReview,,,,inflowEvent -HlrReview,TurnstileIngestion-SystemReview,,,,outflowEvent -HlrReview,TurnstileIngestion-SystemReview,,,,counter -HlrReview,TurnstileIngestion-SystemReview,,,,display -HlrReview-2,TurnstileIngestion-SystemReview,125569538,RQ-STD:v1,259863025, -HlrReview-2,TurnstileIngestion-SystemReview,,,,HLR-1:v2 -HlrReview-2,TurnstileIngestion-SystemReview,,,,HLR-2:v2 +identifier,dataInsertedBy_identifier,author_identifier,governedBy_identifier,reviewer_identifier,reviewed_identifier +HlrReview,TurnstileIngestion-SystemReview,125569538,RQ-STD:v1,259863025, +HlrReview,TurnstileIngestion-SystemReview,,,,HLR-1:v1 +HlrReview,TurnstileIngestion-SystemReview,,,,HLR-2:v1 +HlrReview,TurnstileIngestion-SystemReview,,,,HLR-3:v1 +HlrReview,TurnstileIngestion-SystemReview,,,,inflowEvent +HlrReview,TurnstileIngestion-SystemReview,,,,outflowEvent +HlrReview,TurnstileIngestion-SystemReview,,,,counter +HlrReview,TurnstileIngestion-SystemReview,,,,display +HlrReview-2,TurnstileIngestion-SystemReview,125569538,RQ-STD:v1,259863025, +HlrReview-2,TurnstileIngestion-SystemReview,,,,HLR-1:v2 +HlrReview-2,TurnstileIngestion-SystemReview,,,,HLR-2:v2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/PROV_S_ACTIVITY1.csv similarity index 95% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/PROV_S_ACTIVITY1.csv index 35bac374..abaf35d5 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/PROV_S_ACTIVITY1.csv @@ -1,2 +1,2 @@ -identifier -TurnstileIngestion-SystemReview +identifier +TurnstileIngestion-SystemReview diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/PROV_S_ACTIVITY2.csv similarity index 62% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/PROV_S_ACTIVITY2.csv index 0a0c49f2..b144d754 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/PROV_S_ACTIVITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime -TurnstileIngestion-SystemReview,TurnstileIngestion-SystemReview,Manual ingestion of Counter Application Reviews,2022-01-13 09:14:15,TurnstileIngestion-SystemReview, -TurnstileIngestion-SystemReview,TurnstileIngestion-SystemReview,,,,2022-01-13 09:14:15 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-SystemReview,TurnstileIngestion-SystemReview,Manual ingestion of Counter Application Reviews,2022-07-13 14:33:28,TurnstileIngestion-SystemReview, +TurnstileIngestion-SystemReview,TurnstileIngestion-SystemReview,,,,2022-07-13 14:33:28 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/import.yaml index 9833aabb..956f6807 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/import.yaml @@ -1,27 +1,27 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT1.csv"} -- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "ORGANIZATION1.csv"} -- {class: "http://arcos.turnstile/GE#DataDictionary", csv: "turnstile_DataDictionary1.csv"} -- {class: "http://arcos.turnstile/GE#Engineer", csv: "turnstile_Engineer1.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement1.csv"} -- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "turnstile_LowLevelRequirement1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareDesignReview", csv: "turnstile_SoftwareDesignReview1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareDesignReviewArtifacts", csv: "turnstile_SoftwareDesignReviewArtifacts1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareRequirementReviewArtifacts", csv: "turnstile_SoftwareRequirementReviewArtifacts1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareRequirementsReview", csv: "turnstile_SoftwareRequirementsReview1.csv"} +- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "AGENTS_ORGANIZATION1.csv"} +- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT_DOCUMENT1.csv"} +- {class: "http://arcos.turnstile/GE#DataDictionary", csv: "GE_DataDictionary1.csv"} +- {class: "http://arcos.turnstile/GE#Engineer", csv: "GE_Engineer1.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement1.csv"} +- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "GE_LowLevelRequirement1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareDesignReview", csv: "GE_SoftwareDesignReview1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareDesignReviewArtifacts", csv: "GE_SoftwareDesignReviewArtifacts1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareRequirementReviewArtifacts", csv: "GE_SoftwareRequirementReviewArtifacts1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareRequirementsReview", csv: "GE_SoftwareRequirementsReview1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT2.csv"} -- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "ORGANIZATION2.csv"} -- {class: "http://arcos.turnstile/GE#DataDictionary", csv: "turnstile_DataDictionary2.csv"} -- {class: "http://arcos.turnstile/GE#Engineer", csv: "turnstile_Engineer2.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement2.csv"} -- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "turnstile_LowLevelRequirement2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareDesignReview", csv: "turnstile_SoftwareDesignReview2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareDesignReviewArtifacts", csv: "turnstile_SoftwareDesignReviewArtifacts2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareRequirementReviewArtifacts", csv: "turnstile_SoftwareRequirementReviewArtifacts2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareRequirementsReview", csv: "turnstile_SoftwareRequirementsReview2.csv"} +- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "AGENTS_ORGANIZATION2.csv"} +- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT_DOCUMENT2.csv"} +- {class: "http://arcos.turnstile/GE#DataDictionary", csv: "GE_DataDictionary2.csv"} +- {class: "http://arcos.turnstile/GE#Engineer", csv: "GE_Engineer2.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement2.csv"} +- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "GE_LowLevelRequirement2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareDesignReview", csv: "GE_SoftwareDesignReview2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareDesignReviewArtifacts", csv: "GE_SoftwareDesignReviewArtifacts2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareRequirementReviewArtifacts", csv: "GE_SoftwareRequirementReviewArtifacts2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareRequirementsReview", csv: "GE_SoftwareRequirementsReview2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ORGANIZATION1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_ORGANIZATION1.csv similarity index 93% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ORGANIZATION1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_ORGANIZATION1.csv index 4bba9ecb..38f95d4a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ORGANIZATION1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_ORGANIZATION1.csv @@ -1,2 +1,2 @@ -identifier -General_Electric +identifier +General_Electric diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ORGANIZATION2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_ORGANIZATION2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ORGANIZATION2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_ORGANIZATION2.csv index c834a562..cf3f53bc 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ORGANIZATION2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_ORGANIZATION2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -General_Electric,TurnstileIngestion-Testing +identifier,dataInsertedBy_identifier +General_Electric,TurnstileIngestion-Testing diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/TOOL1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_TOOL1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/TOOL1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_TOOL1.csv index b2be4417..a69baaec 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/TOOL1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_TOOL1.csv @@ -1,2 +1,2 @@ -identifier -ASSERT +identifier +ASSERT diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/TOOL2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_TOOL2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/TOOL2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_TOOL2.csv index c9da5dff..6a4f16b1 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/TOOL2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENTS_TOOL2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier,actedOnBehalfOf_identifier,toolVersion -ASSERT,TurnstileIngestion-Testing,General_Electric,V4.2.3 +identifier,dataInsertedBy_identifier,actedOnBehalfOf_identifier,toolVersion +ASSERT,TurnstileIngestion-Testing,General_Electric,V4.2.3 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT_DOCUMENT1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT_DOCUMENT1.csv index a6884e39..a34c421e 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT_DOCUMENT1.csv @@ -1,2 +1,2 @@ -identifier -VER-STD:v1 +identifier +VER-STD:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT_DOCUMENT2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT_DOCUMENT2.csv index a9cea2f7..aa3bea8f 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/DOCUMENT_DOCUMENT2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -VER-STD:v1,TurnstileIngestion-Testing +identifier,dataInsertedBy_identifier +VER-STD:v1,TurnstileIngestion-Testing diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FILE1.csv similarity index 93% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FILE1.csv index 76d46a18..936ced93 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FILE1.csv @@ -1,2 +1,2 @@ -identifier -ATCG-Config-File +identifier +ATCG-Config-File diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FILE2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FILE2.csv index 5e1231e8..1e8943bc 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FILE2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier,fileFormat_identifier -ATCG-Config-File,TurnstileIngestion-Testing,XML +identifier,dataInsertedBy_identifier,fileFormat_identifier +ATCG-Config-File,TurnstileIngestion-Testing,XML diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FORMAT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FORMAT1.csv similarity index 88% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FORMAT1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FORMAT1.csv index f2c1df2e..6a86c63a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FORMAT1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FORMAT1.csv @@ -1,2 +1,2 @@ -identifier -XML +identifier +XML diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FORMAT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FORMAT2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FORMAT2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FORMAT2.csv index b667c309..d5426668 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FORMAT2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/FILE_FORMAT2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -XML,TurnstileIngestion-Testing +identifier,dataInsertedBy_identifier +XML,TurnstileIngestion-Testing diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_DevelopComponentTests1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_DevelopComponentTests1.csv similarity index 93% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_DevelopComponentTests1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_DevelopComponentTests1.csv index 6d66291e..57d6129b 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_DevelopComponentTests1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_DevelopComponentTests1.csv @@ -1,2 +1,2 @@ -identifier -CompTestDevelopment +identifier +CompTestDevelopment diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_DevelopComponentTests2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_DevelopComponentTests2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_DevelopComponentTests2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_DevelopComponentTests2.csv index 64a0d224..edb47db6 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_DevelopComponentTests2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_DevelopComponentTests2.csv @@ -1,4 +1,4 @@ -identifier,dataInsertedBy_identifier,endedAtTime,used_identifier,wasAssociatedWith_identifier -CompTestDevelopment,TurnstileIngestion-Testing,2020-07-26 10:53:38,VER-STD:v1,ASSERT -CompTestDevelopment,TurnstileIngestion-Testing,,ATCG-Config-File, -CompTestDevelopment,TurnstileIngestion-Testing,,HLR-1-Model, +identifier,dataInsertedBy_identifier,endedAtTime,used_identifier,wasAssociatedWith_identifier +CompTestDevelopment,TurnstileIngestion-Testing,2020-07-26 10:53:38,VER-STD:v1,ASSERT +CompTestDevelopment,TurnstileIngestion-Testing,,ATCG-Config-File, +CompTestDevelopment,TurnstileIngestion-Testing,,HLR-1-Model, diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_HighLevelRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_HighLevelRequirement1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_HighLevelRequirement1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_HighLevelRequirement1.csv index 588d3f26..76ae32ed 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_HighLevelRequirement1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_HighLevelRequirement1.csv @@ -1,2 +1,2 @@ -identifier -HLR-1:v1 +identifier +HLR-1:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_HighLevelRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_HighLevelRequirement2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_HighLevelRequirement2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_HighLevelRequirement2.csv index 2fb30518..dfee6ad4 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_HighLevelRequirement2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_HighLevelRequirement2.csv @@ -1,5 +1,5 @@ -identifier,dataInsertedBy_identifier -HLR-1:v1,TurnstileIngestion-Testing -HLR-1:v1,TurnstileIngestion-Testing -HLR-1:v1,TurnstileIngestion-Testing -HLR-1:v1,TurnstileIngestion-Testing +identifier,dataInsertedBy_identifier +HLR-1:v1,TurnstileIngestion-Testing +HLR-1:v1,TurnstileIngestion-Testing +HLR-1:v1,TurnstileIngestion-Testing +HLR-1:v1,TurnstileIngestion-Testing diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTest1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTest1.csv similarity index 88% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTest1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTest1.csv index 24c5984a..588bc1d0 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTest1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTest1.csv @@ -1,5 +1,5 @@ -identifier -TC-1-1 -TC-1-2 -TC-1-3 -TC-1-4 +identifier +TC-1-1 +TC-1-2 +TC-1-3 +TC-1-4 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTest2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTest2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTest2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTest2.csv index 7accb113..ed042095 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTest2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTest2.csv @@ -1,5 +1,5 @@ -identifier,dataInsertedBy_identifier,verifies_identifier,wasGeneratedBy_identifier -TC-1-1,TurnstileIngestion-Testing,HLR-1:v1,CompTestDevelopment -TC-1-2,TurnstileIngestion-Testing,HLR-1:v1,CompTestDevelopment -TC-1-3,TurnstileIngestion-Testing,HLR-1:v1,CompTestDevelopment -TC-1-4,TurnstileIngestion-Testing,HLR-1:v1,CompTestDevelopment +identifier,dataInsertedBy_identifier,verifies_identifier,wasGeneratedBy_identifier +TC-1-1,TurnstileIngestion-Testing,HLR-1:v1,CompTestDevelopment +TC-1-2,TurnstileIngestion-Testing,HLR-1:v1,CompTestDevelopment +TC-1-3,TurnstileIngestion-Testing,HLR-1:v1,CompTestDevelopment +TC-1-4,TurnstileIngestion-Testing,HLR-1:v1,CompTestDevelopment diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestExecution1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestExecution1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestExecution1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestExecution1.csv index ee1bdb7b..9df5b4b2 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestExecution1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestExecution1.csv @@ -1,3 +1,3 @@ -identifier -TestRun1 -TestRun2 +identifier +TestRun1 +TestRun2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestExecution2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestExecution2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestExecution2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestExecution2.csv index e52ecc8e..7d569fa4 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestExecution2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestExecution2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,endedAtTime,wasAssociatedWith_identifier -TestRun1,TurnstileIngestion-Testing,2020-07-28 11:53:38,TargetHardware -TestRun2,TurnstileIngestion-Testing,2020-07-30 11:02:38,TargetHardware +identifier,dataInsertedBy_identifier,endedAtTime,wasAssociatedWith_identifier +TestRun1,TurnstileIngestion-Testing,2020-07-28 11:53:38,TargetHardware +TestRun2,TurnstileIngestion-Testing,2020-07-30 11:02:38,TargetHardware diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestResult1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestResult1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestResult1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestResult1.csv index 8d751b7a..df02abf1 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestResult1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestResult1.csv @@ -1,9 +1,9 @@ -identifier -TR-1-1-1 -TR-1-2-1 -TR-1-3-1 -TR-1-4-1 -TR-1-1-2 -TR-1-2-2 -TR-1-3-2 -TR-1-4-2 +identifier +TR-1-1-1 +TR-1-2-1 +TR-1-3-1 +TR-1-4-1 +TR-1-1-2 +TR-1-2-2 +TR-1-3-2 +TR-1-4-2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestResult2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestResult2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestResult2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestResult2.csv index cc1392b6..fce10472 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/turnstile_SoftwareComponentTestResult2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/GE_SoftwareComponentTestResult2.csv @@ -1,9 +1,9 @@ -identifier,dataInsertedBy_identifier,confirms_identifier,result_identifier,wasGeneratedBy_identifier -TR-1-1-1,TurnstileIngestion-Testing,TC-1-1,Passed,TestRun1 -TR-1-2-1,TurnstileIngestion-Testing,TC-1-2,Passed,TestRun1 -TR-1-3-1,TurnstileIngestion-Testing,TC-1-3,Passed,TestRun1 -TR-1-4-1,TurnstileIngestion-Testing,TC-1-4,Failed,TestRun1 -TR-1-1-2,TurnstileIngestion-Testing,TC-1-1,Passed,TestRun2 -TR-1-2-2,TurnstileIngestion-Testing,TC-1-2,Passed,TestRun2 -TR-1-3-2,TurnstileIngestion-Testing,TC-1-3,Passed,TestRun2 -TR-1-4-2,TurnstileIngestion-Testing,TC-1-4,Failed,TestRun2 +identifier,dataInsertedBy_identifier,confirms_identifier,result_identifier,wasGeneratedBy_identifier +TR-1-1-1,TurnstileIngestion-Testing,TC-1-1,Passed,TestRun1 +TR-1-2-1,TurnstileIngestion-Testing,TC-1-2,Passed,TestRun1 +TR-1-3-1,TurnstileIngestion-Testing,TC-1-3,Passed,TestRun1 +TR-1-4-1,TurnstileIngestion-Testing,TC-1-4,Failed,TestRun1 +TR-1-1-2,TurnstileIngestion-Testing,TC-1-1,Passed,TestRun2 +TR-1-2-2,TurnstileIngestion-Testing,TC-1-2,Passed,TestRun2 +TR-1-3-2,TurnstileIngestion-Testing,TC-1-3,Passed,TestRun2 +TR-1-4-2,TurnstileIngestion-Testing,TC-1-4,Failed,TestRun2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ACTIVITY1.csv similarity index 95% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ACTIVITY1.csv index 2b59a6c1..ea45a3b6 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ACTIVITY1.csv @@ -1,2 +1,2 @@ -identifier -TurnstileIngestion-Testing +identifier +TurnstileIngestion-Testing diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ACTIVITY2.csv similarity index 53% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ACTIVITY2.csv index 954e9c21..305bfbc4 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ACTIVITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime -TurnstileIngestion-Testing,TurnstileIngestion-Testing,Manual ingestion of Counter Application Testing,2022-01-13 09:14:15,TurnstileIngestion-Testing, -TurnstileIngestion-Testing,TurnstileIngestion-Testing,,,,2022-01-13 09:14:15 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-Testing,TurnstileIngestion-Testing,Manual ingestion of Counter Application Testing,2022-07-13 14:33:28,TurnstileIngestion-Testing, +TurnstileIngestion-Testing,TurnstileIngestion-Testing,,,,2022-07-13 14:33:28 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_AGENT1.csv similarity index 92% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENT1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_AGENT1.csv index 1eca7f18..7d38e592 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENT1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_AGENT1.csv @@ -1,2 +1,2 @@ -identifier -TargetHardware +identifier +TargetHardware diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_AGENT2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENT2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_AGENT2.csv index 8379a655..b2c2fa1e 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/AGENT2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_AGENT2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -TargetHardware,TurnstileIngestion-Testing +identifier,dataInsertedBy_identifier +TargetHardware,TurnstileIngestion-Testing diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ENTITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ENTITY1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ENTITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ENTITY1.csv index a848923e..564da52a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ENTITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ENTITY1.csv @@ -1,3 +1,3 @@ -identifier -IncludeBVA -IncludeLCA +identifier +IncludeBVA +IncludeLCA diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ENTITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ENTITY2.csv similarity index 99% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ENTITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ENTITY2.csv index eb6249fc..34f207d3 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/ENTITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/PROV_S_ENTITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,definedIn_identifier,description -IncludeBVA,TurnstileIngestion-Testing,ATCG-Config-File,Flag Indicating to include Boundary Value Analysis in testcase generation. -IncludeLCA,TurnstileIngestion-Testing,ATCG-Config-File,Flag Indicating to include Logic Condition Analysis in testcase generation. +identifier,dataInsertedBy_identifier,definedIn_identifier,description +IncludeBVA,TurnstileIngestion-Testing,ATCG-Config-File,Flag Indicating to include Boundary Value Analysis in testcase generation. +IncludeLCA,TurnstileIngestion-Testing,ATCG-Config-File,Flag Indicating to include Logic Condition Analysis in testcase generation. diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/import.yaml index a383b989..2b168e09 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationTesting/import.yaml @@ -1,31 +1,31 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/PROV-S#AGENT", csv: "AGENT1.csv"} -- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT1.csv"} -- {class: "http://arcos.rack/PROV-S#ENTITY", csv: "ENTITY1.csv"} -- {class: "http://arcos.rack/FILE#FILE", csv: "FILE1.csv"} -- {class: "http://arcos.rack/FILE#FORMAT", csv: "FORMAT1.csv"} -- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "ORGANIZATION1.csv"} -- {class: "http://arcos.rack/AGENTS#TOOL", csv: "TOOL1.csv"} -- {class: "http://arcos.turnstile/GE#DevelopComponentTests", csv: "turnstile_DevelopComponentTests1.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareComponentTest", csv: "turnstile_SoftwareComponentTest1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareComponentTestExecution", csv: "turnstile_SoftwareComponentTestExecution1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareComponentTestResult", csv: "turnstile_SoftwareComponentTestResult1.csv"} +- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "AGENTS_ORGANIZATION1.csv"} +- {class: "http://arcos.rack/AGENTS#TOOL", csv: "AGENTS_TOOL1.csv"} +- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT_DOCUMENT1.csv"} +- {class: "http://arcos.rack/FILE#FILE", csv: "FILE_FILE1.csv"} +- {class: "http://arcos.rack/FILE#FORMAT", csv: "FILE_FORMAT1.csv"} +- {class: "http://arcos.turnstile/GE#DevelopComponentTests", csv: "GE_DevelopComponentTests1.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareComponentTest", csv: "GE_SoftwareComponentTest1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareComponentTestExecution", csv: "GE_SoftwareComponentTestExecution1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareComponentTestResult", csv: "GE_SoftwareComponentTestResult1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/PROV-S#AGENT", csv: "PROV_S_AGENT1.csv"} +- {class: "http://arcos.rack/PROV-S#ENTITY", csv: "PROV_S_ENTITY1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/PROV-S#AGENT", csv: "AGENT2.csv"} -- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT2.csv"} -- {class: "http://arcos.rack/PROV-S#ENTITY", csv: "ENTITY2.csv"} -- {class: "http://arcos.rack/FILE#FILE", csv: "FILE2.csv"} -- {class: "http://arcos.rack/FILE#FORMAT", csv: "FORMAT2.csv"} -- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "ORGANIZATION2.csv"} -- {class: "http://arcos.rack/AGENTS#TOOL", csv: "TOOL2.csv"} -- {class: "http://arcos.turnstile/GE#DevelopComponentTests", csv: "turnstile_DevelopComponentTests2.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareComponentTest", csv: "turnstile_SoftwareComponentTest2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareComponentTestExecution", csv: "turnstile_SoftwareComponentTestExecution2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareComponentTestResult", csv: "turnstile_SoftwareComponentTestResult2.csv"} +- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "AGENTS_ORGANIZATION2.csv"} +- {class: "http://arcos.rack/AGENTS#TOOL", csv: "AGENTS_TOOL2.csv"} +- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT_DOCUMENT2.csv"} +- {class: "http://arcos.rack/FILE#FILE", csv: "FILE_FILE2.csv"} +- {class: "http://arcos.rack/FILE#FORMAT", csv: "FILE_FORMAT2.csv"} +- {class: "http://arcos.turnstile/GE#DevelopComponentTests", csv: "GE_DevelopComponentTests2.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareComponentTest", csv: "GE_SoftwareComponentTest2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareComponentTestExecution", csv: "GE_SoftwareComponentTestExecution2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareComponentTestResult", csv: "GE_SoftwareComponentTestResult2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/PROV-S#AGENT", csv: "PROV_S_AGENT2.csv"} +- {class: "http://arcos.rack/PROV-S#ENTITY", csv: "PROV_S_ENTITY2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD1.csv b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD_HAZARD1.csv similarity index 86% rename from Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD_HAZARD1.csv index eb5b18bd..ce5729c2 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD_HAZARD1.csv @@ -1,5 +1,5 @@ -identifier -H-1 -H-1.1 -H-1.2 -H-2 +identifier +H-1 +H-1.1 +H-1.2 +H-2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD2.csv b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD_HAZARD2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD_HAZARD2.csv index 724a1b01..145e26de 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/HAZARD_HAZARD2.csv @@ -1,5 +1,5 @@ -identifier,dataInsertedBy_identifier,description,source_identifier,wasDerivedFrom_identifier -H-1,TurnstileIngestion-HazardAssessment,System Crash,Turnstile, -H-1.1,TurnstileIngestion-HazardAssessment,Integer Under Flow,,H-1 -H-1.2,TurnstileIngestion-HazardAssessment,Integer Over Flow,,H-1 -H-2,TurnstileIngestion-HazardAssessment,Park Exceeds Capacity,Turnstile, +identifier,dataInsertedBy_identifier,description,source_identifier,wasDerivedFrom_identifier +H-1,TurnstileIngestion-HazardAssessment,System Crash,Turnstile, +H-1.1,TurnstileIngestion-HazardAssessment,Integer Under Flow,,H-1 +H-1.2,TurnstileIngestion-HazardAssessment,Integer Over Flow,,H-1 +H-2,TurnstileIngestion-HazardAssessment,Park Exceeds Capacity,Turnstile, diff --git a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/PROV_S_ACTIVITY1.csv similarity index 95% rename from Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/PROV_S_ACTIVITY1.csv index a451ef89..43ae9d40 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/PROV_S_ACTIVITY1.csv @@ -1,2 +1,2 @@ -identifier -TurnstileIngestion-HazardAssessment +identifier +TurnstileIngestion-HazardAssessment diff --git a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/PROV_S_ACTIVITY2.csv similarity index 60% rename from Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/PROV_S_ACTIVITY2.csv index 5a8fca70..3043353a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/PROV_S_ACTIVITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime -TurnstileIngestion-HazardAssessment,TurnstileIngestion-HazardAssessment,Manual ingestion of Hazard Assessment,2022-01-13 09:14:15,TurnstileIngestion-HazardAssessment, -TurnstileIngestion-HazardAssessment,TurnstileIngestion-HazardAssessment,,,,2022-01-13 09:14:15 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-HazardAssessment,TurnstileIngestion-HazardAssessment,Manual ingestion of Hazard Assessment,2022-07-13 14:33:29,TurnstileIngestion-HazardAssessment, +TurnstileIngestion-HazardAssessment,TurnstileIngestion-HazardAssessment,,,,2022-07-13 14:33:29 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM1.csv b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM_SYSTEM1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM_SYSTEM1.csv index a7f35b57..6286ae83 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM_SYSTEM1.csv @@ -1,2 +1,2 @@ -identifier -Turnstile +identifier +Turnstile diff --git a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM2.csv b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM_SYSTEM2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM_SYSTEM2.csv index fc37e29e..47de9f1d 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/SYSTEM_SYSTEM2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -Turnstile,TurnstileIngestion-HazardAssessment +identifier,dataInsertedBy_identifier +Turnstile,TurnstileIngestion-HazardAssessment diff --git a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/import.yaml index a6f4ce40..539708f9 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/HazardAssessment/import.yaml @@ -1,11 +1,11 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/HAZARD#HAZARD", csv: "HAZARD1.csv"} -- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM1.csv"} +- {class: "http://arcos.rack/HAZARD#HAZARD", csv: "HAZARD_HAZARD1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM_SYSTEM1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/HAZARD#HAZARD", csv: "HAZARD2.csv"} -- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM2.csv"} +- {class: "http://arcos.rack/HAZARD#HAZARD", csv: "HAZARD_HAZARD2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM_SYSTEM2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/Load-TurnstileData.sh b/Turnstile-Example/Turnstile-IngestionPackage/Load-TurnstileData.sh index 003d7b03..0feac6be 100755 --- a/Turnstile-Example/Turnstile-IngestionPackage/Load-TurnstileData.sh +++ b/Turnstile-Example/Turnstile-IngestionPackage/Load-TurnstileData.sh @@ -21,6 +21,9 @@ then exit 1 fi +# suppress RACK cli warnings about missing columns +export LOG_LEVEL=ERROR + if test "$OSTYPE" == "cygwin" -o "$OSTYPE" == "msys"; then URLBASE=$(cygpath -m "$BASEDIR") else diff --git a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT_DOCUMENT1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT_DOCUMENT1.csv index 5046d1c1..a5dfb953 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT_DOCUMENT1.csv @@ -1,4 +1,4 @@ -identifier -SW-STD:v1 -SQ-STD:v1 -VER-STD:v1 +identifier +SW-STD:v1 +SQ-STD:v1 +VER-STD:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT_DOCUMENT2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT_DOCUMENT2.csv index c0a269c3..a7365177 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/DOCUMENT_DOCUMENT2.csv @@ -1,4 +1,4 @@ -identifier,dataInsertedBy_identifier,title -SW-STD:v1,TurnstileIngestion-PlanningDocuments,Turnstile Software Development Standards -SQ-STD:v1,TurnstileIngestion-PlanningDocuments,Turnstile Requirement Standards -VER-STD:v1,TurnstileIngestion-PlanningDocuments,Turnstile Verification Standards +identifier,dataInsertedBy_identifier,title +SW-STD:v1,TurnstileIngestion-PlanningDocuments,Turnstile Software Development Standards +SQ-STD:v1,TurnstileIngestion-PlanningDocuments,Turnstile Requirement Standards +VER-STD:v1,TurnstileIngestion-PlanningDocuments,Turnstile Verification Standards diff --git a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/PROV_S_ACTIVITY1.csv similarity index 96% rename from Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/PROV_S_ACTIVITY1.csv index 50416616..a6c13b35 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/PROV_S_ACTIVITY1.csv @@ -1,2 +1,2 @@ -identifier -TurnstileIngestion-PlanningDocuments +identifier +TurnstileIngestion-PlanningDocuments diff --git a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/PROV_S_ACTIVITY2.csv similarity index 75% rename from Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/PROV_S_ACTIVITY2.csv index 012afeae..15a2a23b 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/PROV_S_ACTIVITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime -TurnstileIngestion-PlanningDocuments,TurnstileIngestion-PlanningDocuments,Manual ingestion of Turnstile Planning documents,2022-01-13 09:14:15,TurnstileIngestion-PlanningDocuments, -TurnstileIngestion-PlanningDocuments,TurnstileIngestion-PlanningDocuments,,,,2022-01-13 09:14:15 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-PlanningDocuments,TurnstileIngestion-PlanningDocuments,Manual ingestion of Turnstile Planning documents,2022-07-13 14:33:29,TurnstileIngestion-PlanningDocuments, +TurnstileIngestion-PlanningDocuments,TurnstileIngestion-PlanningDocuments,,,,2022-07-13 14:33:29 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/import.yaml index 757a4417..a78b7407 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/PlanningDocuments/import.yaml @@ -1,9 +1,9 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT1.csv"} +- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT_DOCUMENT1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT2.csv"} +- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT_DOCUMENT2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE_BASELINE1.csv similarity index 94% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE_BASELINE1.csv index 2e944d03..c98f0215 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE_BASELINE1.csv @@ -1,7 +1,7 @@ -identifier -RequirementsPackage:v1 -RequirementsPackage:v2 -SoftwareDesignAndCode:v1 -TestSuite:v1 -Turnstile:v1 -Turnstile:v1.1 +identifier +RequirementsPackage:v1 +RequirementsPackage:v2 +SoftwareDesignAndCode:v1 +TestSuite:v1 +Turnstile:v1 +Turnstile:v1.1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE_BASELINE2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE_BASELINE2.csv index 6d782ad7..0d8e4e5c 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/BASELINE_BASELINE2.csv @@ -1,33 +1,33 @@ -identifier,dataInsertedBy_identifier,content_identifier,wasRevisionOf_identifier -RequirementsPackage:v1,TurnstileIngestion-Baselines,HLR-1:v1, -RequirementsPackage:v2,TurnstileIngestion-Baselines,HLR-1:v2, -RequirementsPackage:v1,TurnstileIngestion-Baselines,HLR-2:v1, -RequirementsPackage:v2,TurnstileIngestion-Baselines,HLR-2:v2, -RequirementsPackage:v1,TurnstileIngestion-Baselines,HLR-3:v1, -RequirementsPackage:v2,TurnstileIngestion-Baselines,HLR-3:v2, -RequirementsPackage:v1,TurnstileIngestion-Baselines,IN-LLR-2:v1, -RequirementsPackage:v2,TurnstileIngestion-Baselines,IN-LLR-2:v2, -RequirementsPackage:v1,TurnstileIngestion-Baselines,IN-LLR-3:v1, -RequirementsPackage:v2,TurnstileIngestion-Baselines,IN-LLR-3:v2, -RequirementsPackage:v1,TurnstileIngestion-Baselines,OUT-LLR-2:v1, -RequirementsPackage:v2,TurnstileIngestion-Baselines,OUT-LLR-2:v2, -RequirementsPackage:v1,TurnstileIngestion-Baselines,Sys-1, -RequirementsPackage:v2,TurnstileIngestion-Baselines,Sys-1, -RequirementsPackage:v1,TurnstileIngestion-Baselines,Sys-2, -RequirementsPackage:v2,TurnstileIngestion-Baselines,Sys-2, -RequirementsPackage:v1,TurnstileIngestion-Baselines,Sys-3, -RequirementsPackage:v2,TurnstileIngestion-Baselines,Sys-3, -RequirementsPackage:v2,TurnstileIngestion-Baselines,,RequirementsPackage:v1 -SoftwareDesignAndCode:v1,TurnstileIngestion-Baselines,OutputThread, -SoftwareDesignAndCode:v1,TurnstileIngestion-Baselines,InputThread, -SoftwareDesignAndCode:v1,TurnstileIngestion-Baselines,ExecutiveThread, -TestSuite:v1,TurnstileIngestion-Baselines,TC-1-1, -TestSuite:v1,TurnstileIngestion-Baselines,TC-1-2, -TestSuite:v1,TurnstileIngestion-Baselines,TC-1-3, -TestSuite:v1,TurnstileIngestion-Baselines,TC-1-4, -Turnstile:v1,TurnstileIngestion-Baselines,RequirementsPackage:v1, -Turnstile:v1,TurnstileIngestion-Baselines,SoftwareDesignAndCode:v1, -Turnstile:v1,TurnstileIngestion-Baselines,TestSuite:v1, -Turnstile:v1.1,TurnstileIngestion-Baselines,,Turnstile:v1 -Turnstile:v1.1,TurnstileIngestion-Baselines,RequirementsPackage:v2, -Turnstile:v1.1,TurnstileIngestion-Baselines,SoftwareDesignAndCode:v1, +identifier,dataInsertedBy_identifier,content_identifier,wasRevisionOf_identifier +RequirementsPackage:v1,TurnstileIngestion-Baselines,HLR-1:v1, +RequirementsPackage:v2,TurnstileIngestion-Baselines,HLR-1:v2, +RequirementsPackage:v1,TurnstileIngestion-Baselines,HLR-2:v1, +RequirementsPackage:v2,TurnstileIngestion-Baselines,HLR-2:v2, +RequirementsPackage:v1,TurnstileIngestion-Baselines,HLR-3:v1, +RequirementsPackage:v2,TurnstileIngestion-Baselines,HLR-3:v2, +RequirementsPackage:v1,TurnstileIngestion-Baselines,IN-LLR-2:v1, +RequirementsPackage:v2,TurnstileIngestion-Baselines,IN-LLR-2:v2, +RequirementsPackage:v1,TurnstileIngestion-Baselines,IN-LLR-3:v1, +RequirementsPackage:v2,TurnstileIngestion-Baselines,IN-LLR-3:v2, +RequirementsPackage:v1,TurnstileIngestion-Baselines,OUT-LLR-2:v1, +RequirementsPackage:v2,TurnstileIngestion-Baselines,OUT-LLR-2:v2, +RequirementsPackage:v1,TurnstileIngestion-Baselines,Sys-1, +RequirementsPackage:v2,TurnstileIngestion-Baselines,Sys-1, +RequirementsPackage:v1,TurnstileIngestion-Baselines,Sys-2, +RequirementsPackage:v2,TurnstileIngestion-Baselines,Sys-2, +RequirementsPackage:v1,TurnstileIngestion-Baselines,Sys-3, +RequirementsPackage:v2,TurnstileIngestion-Baselines,Sys-3, +RequirementsPackage:v2,TurnstileIngestion-Baselines,,RequirementsPackage:v1 +SoftwareDesignAndCode:v1,TurnstileIngestion-Baselines,OutputThread, +SoftwareDesignAndCode:v1,TurnstileIngestion-Baselines,InputThread, +SoftwareDesignAndCode:v1,TurnstileIngestion-Baselines,ExecutiveThread, +TestSuite:v1,TurnstileIngestion-Baselines,TC-1-1, +TestSuite:v1,TurnstileIngestion-Baselines,TC-1-2, +TestSuite:v1,TurnstileIngestion-Baselines,TC-1-3, +TestSuite:v1,TurnstileIngestion-Baselines,TC-1-4, +Turnstile:v1,TurnstileIngestion-Baselines,RequirementsPackage:v1, +Turnstile:v1,TurnstileIngestion-Baselines,SoftwareDesignAndCode:v1, +Turnstile:v1,TurnstileIngestion-Baselines,TestSuite:v1, +Turnstile:v1.1,TurnstileIngestion-Baselines,,Turnstile:v1 +Turnstile:v1.1,TurnstileIngestion-Baselines,RequirementsPackage:v2, +Turnstile:v1.1,TurnstileIngestion-Baselines,SoftwareDesignAndCode:v1, diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/PROV_S_ACTIVITY1.csv similarity index 95% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/PROV_S_ACTIVITY1.csv index d5f5881e..3c3c6a2d 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/PROV_S_ACTIVITY1.csv @@ -1,2 +1,2 @@ -identifier -TurnstileIngestion-Baselines +identifier +TurnstileIngestion-Baselines diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/PROV_S_ACTIVITY2.csv similarity index 79% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/PROV_S_ACTIVITY2.csv index d61ec4e9..54b0904a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/PROV_S_ACTIVITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime -TurnstileIngestion-Baselines,TurnstileIngestion-Baselines,Ingestion of Turnstile Requirements Baselines using Scraping Tool Kit,2022-01-13 09:14:20,TurnstileIngestion-Baselines, -TurnstileIngestion-Baselines,TurnstileIngestion-Baselines,,,,2022-01-13 09:14:20 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-Baselines,TurnstileIngestion-Baselines,Ingestion of Turnstile Requirements Baselines using Scraping Tool Kit,2022-07-13 14:33:34,TurnstileIngestion-Baselines, +TurnstileIngestion-Baselines,TurnstileIngestion-Baselines,,,,2022-07-13 14:33:34 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/import.yaml index d6d518cf..a4007f66 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileBaselines/import.yaml @@ -1,9 +1,9 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/BASELINE#BASELINE", csv: "BASELINE1.csv"} +- {class: "http://arcos.rack/BASELINE#BASELINE", csv: "BASELINE_BASELINE1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/BASELINE#BASELINE", csv: "BASELINE2.csv"} +- {class: "http://arcos.rack/BASELINE#BASELINE", csv: "BASELINE_BASELINE2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DESCRIPTION1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_DESCRIPTION1.csv similarity index 92% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DESCRIPTION1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_DESCRIPTION1.csv index b74974e4..ed90fcaa 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DESCRIPTION1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_DESCRIPTION1.csv @@ -1,3 +1,3 @@ -identifier -Counter-SW-Des -SW-Ver-Des +identifier +Counter-SW-Des +SW-Ver-Des diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DESCRIPTION2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_DESCRIPTION2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DESCRIPTION2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_DESCRIPTION2.csv index eebcb7f0..1427ea26 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DESCRIPTION2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_DESCRIPTION2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,wasGeneratedBy_identifier -Counter-SW-Des,TurnstileIngestion-Dev Plan Data,SoftwareDevelopmentProcess -SW-Ver-Des,TurnstileIngestion-Dev Plan Data,SoftwareConfigurationManagementProcess +identifier,dataInsertedBy_identifier,wasGeneratedBy_identifier +Counter-SW-Des,TurnstileIngestion-Dev Plan Data,SoftwareDevelopmentProcess +SW-Ver-Des,TurnstileIngestion-Dev Plan Data,SoftwareConfigurationManagementProcess diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PLAN1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_PLAN1.csv similarity index 96% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PLAN1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_PLAN1.csv index dedd2896..26e7394e 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PLAN1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_PLAN1.csv @@ -1,13 +1,13 @@ -identifier -_01-PlanForSoftwareAspectsOfCertification -_02-SystemDevelopement -_03-SoftwareDevelopment -_04-SoftwareVerification -_05-SoftwareConfigurationManagment -_06-SoftwareQualityAssurance -SoftwareCodeReviewChecklist -SoftwareDesignReviewChecklist -SoftwareRequirementReviewChecklist -SoftwareTestGuidance -_07-SoftwareStandards -_DevelopmentPlan +identifier +_01-PlanForSoftwareAspectsOfCertification +_02-SystemDevelopement +_03-SoftwareDevelopment +_04-SoftwareVerification +_05-SoftwareConfigurationManagment +_06-SoftwareQualityAssurance +SoftwareCodeReviewChecklist +SoftwareDesignReviewChecklist +SoftwareRequirementReviewChecklist +SoftwareTestGuidance +_07-SoftwareStandards +_DevelopmentPlan diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PLAN2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_PLAN2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PLAN2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_PLAN2.csv index 71ba9b8a..349cb869 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PLAN2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_PLAN2.csv @@ -1,37 +1,37 @@ -identifier,dataInsertedBy_identifier,content_identifier,references_identifier -_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_01-SystemOverview, -_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_02-SoftwareOverview, -_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_03-CertificationConsiderations, -_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_04-SoftwareLifeCycle, -_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_05-SoftwareLifeCycleData, -_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_06-Schedule, -_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_07-AdditionalConsiderations, -_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_08-SupplierOversite, -_02-SystemDevelopement,TurnstileIngestion-Dev Plan Data,_01-SystemRequirements, -_02-SystemDevelopement,TurnstileIngestion-Dev Plan Data,_02-SystemDesign, -_02-SystemDevelopement,TurnstileIngestion-Dev Plan Data,_03-HazardAssesment, -_03-SoftwareDevelopment,TurnstileIngestion-Dev Plan Data,_01-Standards, -_03-SoftwareDevelopment,TurnstileIngestion-Dev Plan Data,_02-SoftwareDevelopmentLifeCycle, -_03-SoftwareDevelopment,TurnstileIngestion-Dev Plan Data,_03-SoftwareDevelopmentEnvironment, -_04-SoftwareVerification,TurnstileIngestion-Dev Plan Data,_01-SoftwareReviewProcess, -_04-SoftwareVerification,TurnstileIngestion-Dev Plan Data,_02-SoftwareTestGenerationProcess, -_04-SoftwareVerification,TurnstileIngestion-Dev Plan Data,_04-SoftwareAnalysis, -_04-SoftwareVerification,TurnstileIngestion-Dev Plan Data,_03-SoftwareTestExecutionProcess, -_05-SoftwareConfigurationManagment,TurnstileIngestion-Dev Plan Data,_01-ChangeManagement, -_05-SoftwareConfigurationManagment,TurnstileIngestion-Dev Plan Data,_02-SoftwareConfigurationManagementEnvironment, -_06-SoftwareQualityAssurance,TurnstileIngestion-Dev Plan Data,, -SoftwareCodeReviewChecklist,TurnstileIngestion-Dev Plan Data,,VER-STD -SoftwareDesignReviewChecklist,TurnstileIngestion-Dev Plan Data,,VER-STD -SoftwareRequirementReviewChecklist,TurnstileIngestion-Dev Plan Data,,VER-STD -SoftwareTestGuidance,TurnstileIngestion-Dev Plan Data,,VER-STD -_07-SoftwareStandards,TurnstileIngestion-Dev Plan Data,SoftwareCodeReviewChecklist, -_07-SoftwareStandards,TurnstileIngestion-Dev Plan Data,SoftwareDesignReviewChecklist, -_07-SoftwareStandards,TurnstileIngestion-Dev Plan Data,SoftwareRequirementReviewChecklist, -_07-SoftwareStandards,TurnstileIngestion-Dev Plan Data,SoftwareTestGuidance, -_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_01-PlanForSoftwareAspectsOfCertification, -_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_02-SystemDevelopement, -_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_03-SoftwareDevelopment, -_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_04-SoftwareVerification, -_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_05-SoftwareConfigurationManagment, -_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_06-SoftwareQualityAssurance, -_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_07-SoftwareStandards, +identifier,dataInsertedBy_identifier,content_identifier,references_identifier +_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_01-SystemOverview, +_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_02-SoftwareOverview, +_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_03-CertificationConsiderations, +_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_04-SoftwareLifeCycle, +_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_05-SoftwareLifeCycleData, +_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_06-Schedule, +_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_07-AdditionalConsiderations, +_01-PlanForSoftwareAspectsOfCertification,TurnstileIngestion-Dev Plan Data,_08-SupplierOversite, +_02-SystemDevelopement,TurnstileIngestion-Dev Plan Data,_01-SystemRequirements, +_02-SystemDevelopement,TurnstileIngestion-Dev Plan Data,_02-SystemDesign, +_02-SystemDevelopement,TurnstileIngestion-Dev Plan Data,_03-HazardAssesment, +_03-SoftwareDevelopment,TurnstileIngestion-Dev Plan Data,_01-Standards, +_03-SoftwareDevelopment,TurnstileIngestion-Dev Plan Data,_02-SoftwareDevelopmentLifeCycle, +_03-SoftwareDevelopment,TurnstileIngestion-Dev Plan Data,_03-SoftwareDevelopmentEnvironment, +_04-SoftwareVerification,TurnstileIngestion-Dev Plan Data,_01-SoftwareReviewProcess, +_04-SoftwareVerification,TurnstileIngestion-Dev Plan Data,_02-SoftwareTestGenerationProcess, +_04-SoftwareVerification,TurnstileIngestion-Dev Plan Data,_04-SoftwareAnalysis, +_04-SoftwareVerification,TurnstileIngestion-Dev Plan Data,_03-SoftwareTestExecutionProcess, +_05-SoftwareConfigurationManagment,TurnstileIngestion-Dev Plan Data,_01-ChangeManagement, +_05-SoftwareConfigurationManagment,TurnstileIngestion-Dev Plan Data,_02-SoftwareConfigurationManagementEnvironment, +_06-SoftwareQualityAssurance,TurnstileIngestion-Dev Plan Data,, +SoftwareCodeReviewChecklist,TurnstileIngestion-Dev Plan Data,,VER-STD +SoftwareDesignReviewChecklist,TurnstileIngestion-Dev Plan Data,,VER-STD +SoftwareRequirementReviewChecklist,TurnstileIngestion-Dev Plan Data,,VER-STD +SoftwareTestGuidance,TurnstileIngestion-Dev Plan Data,,VER-STD +_07-SoftwareStandards,TurnstileIngestion-Dev Plan Data,SoftwareCodeReviewChecklist, +_07-SoftwareStandards,TurnstileIngestion-Dev Plan Data,SoftwareDesignReviewChecklist, +_07-SoftwareStandards,TurnstileIngestion-Dev Plan Data,SoftwareRequirementReviewChecklist, +_07-SoftwareStandards,TurnstileIngestion-Dev Plan Data,SoftwareTestGuidance, +_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_01-PlanForSoftwareAspectsOfCertification, +_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_02-SystemDevelopement, +_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_03-SoftwareDevelopment, +_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_04-SoftwareVerification, +_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_05-SoftwareConfigurationManagment, +_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_06-SoftwareQualityAssurance, +_DevelopmentPlan,TurnstileIngestion-Dev Plan Data,_07-SoftwareStandards, diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/REPORT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_REPORT1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/REPORT1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_REPORT1.csv index e3548493..00d37e6a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/REPORT1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_REPORT1.csv @@ -1,3 +1,3 @@ -identifier -Sys-Ver-Rep -SECI +identifier +Sys-Ver-Rep +SECI diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/REPORT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_REPORT2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/REPORT2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_REPORT2.csv index 0fac21d6..6a4a0e59 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/REPORT2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_REPORT2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,wasGeneratedBy_identifier -Sys-Ver-Rep,TurnstileIngestion-Dev Plan Data,System_Development_Process -SECI,TurnstileIngestion-Dev Plan Data,SoftwareConfigurationManagementProcess +identifier,dataInsertedBy_identifier,wasGeneratedBy_identifier +Sys-Ver-Rep,TurnstileIngestion-Dev Plan Data,System_Development_Process +SECI,TurnstileIngestion-Dev Plan Data,SoftwareConfigurationManagementProcess diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SECTION1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SECTION1.csv similarity index 96% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SECTION1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SECTION1.csv index 2efc3b13..d6ab0f8e 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SECTION1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SECTION1.csv @@ -1,21 +1,21 @@ -identifier -_01-SystemOverview -_02-SoftwareOverview -_03-CertificationConsiderations -_04-SoftwareLifeCycle -_05-SoftwareLifeCycleData -_06-Schedule -_07-AdditionalConsiderations -_08-SupplierOversite -_01-SystemRequirements -_02-SystemDesign -_03-HazardAssesment -_01-Standards -_02-SoftwareDevelopmentLifeCycle -_03-SoftwareDevelopmentEnvironment -_01-SoftwareReviewProcess -_02-SoftwareTestGenerationProcess -_04-SoftwareAnalysis -_03-SoftwareTestExecutionProcess -_01-ChangeManagement -_02-SoftwareConfigurationManagementEnvironment +identifier +_01-SystemOverview +_02-SoftwareOverview +_03-CertificationConsiderations +_04-SoftwareLifeCycle +_05-SoftwareLifeCycleData +_06-Schedule +_07-AdditionalConsiderations +_08-SupplierOversite +_01-SystemRequirements +_02-SystemDesign +_03-HazardAssesment +_01-Standards +_02-SoftwareDevelopmentLifeCycle +_03-SoftwareDevelopmentEnvironment +_01-SoftwareReviewProcess +_02-SoftwareTestGenerationProcess +_04-SoftwareAnalysis +_03-SoftwareTestExecutionProcess +_01-ChangeManagement +_02-SoftwareConfigurationManagementEnvironment diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SECTION2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SECTION2.csv similarity index 67% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SECTION2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SECTION2.csv index 720d6aca..bc1d9826 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SECTION2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SECTION2.csv @@ -1,38 +1,38 @@ -identifier,dataInsertedBy_identifier,content_identifier -_01-SystemOverview,TurnstileIngestion-Dev Plan Data,CounterApplication -_01-SystemOverview,TurnstileIngestion-Dev Plan Data,Display -_01-SystemOverview,TurnstileIngestion-Dev Plan Data,InGate -_01-SystemOverview,TurnstileIngestion-Dev Plan Data,OutGate -_01-SystemOverview,TurnstileIngestion-Dev Plan Data,Turnstile -_02-SoftwareOverview,TurnstileIngestion-Dev Plan Data,CounterApplication -_02-SoftwareOverview,TurnstileIngestion-Dev Plan Data,ExecutiveThread -_02-SoftwareOverview,TurnstileIngestion-Dev Plan Data,InputThread -_02-SoftwareOverview,TurnstileIngestion-Dev Plan Data,OutputThread -_03-CertificationConsiderations,TurnstileIngestion-Dev Plan Data, -_04-SoftwareLifeCycle,TurnstileIngestion-Dev Plan Data, -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,Counter-Req-Spec -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,CounterApplicationSoftware -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,Counter-SW-Des -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,SW-Code -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,RQ-STD -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,SECI -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,SW-STD -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,SW-Ver-Des -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,Sys-Spec -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,Sys-Ver-Rep -05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,VER-STD -_06-Schedule,TurnstileIngestion-Dev Plan Data, -_07-AdditionalConsiderations,TurnstileIngestion-Dev Plan Data, -_08-SupplierOversite,TurnstileIngestion-Dev Plan Data, -_01-SystemRequirements,TurnstileIngestion-Dev Plan Data, -_02-SystemDesign,TurnstileIngestion-Dev Plan Data, -_03-HazardAssesment,TurnstileIngestion-Dev Plan Data, -_01-Standards,TurnstileIngestion-Dev Plan Data, -_02-SoftwareDevelopmentLifeCycle,TurnstileIngestion-Dev Plan Data, -_03-SoftwareDevelopmentEnvironment,TurnstileIngestion-Dev Plan Data, -_01-SoftwareReviewProcess,TurnstileIngestion-Dev Plan Data, -_02-SoftwareTestGenerationProcess,TurnstileIngestion-Dev Plan Data, -_04-SoftwareAnalysis,TurnstileIngestion-Dev Plan Data, -_03-SoftwareTestExecutionProcess,TurnstileIngestion-Dev Plan Data, -_01-ChangeManagement,TurnstileIngestion-Dev Plan Data, -_02-SoftwareConfigurationManagementEnvironment,TurnstileIngestion-Dev Plan Data, +identifier,dataInsertedBy_identifier,content_identifier +_01-SystemOverview,TurnstileIngestion-Dev Plan Data,CounterApplication +_01-SystemOverview,TurnstileIngestion-Dev Plan Data,Display +_01-SystemOverview,TurnstileIngestion-Dev Plan Data,InGate +_01-SystemOverview,TurnstileIngestion-Dev Plan Data,OutGate +_01-SystemOverview,TurnstileIngestion-Dev Plan Data,Turnstile +_02-SoftwareOverview,TurnstileIngestion-Dev Plan Data,CounterApplication +_02-SoftwareOverview,TurnstileIngestion-Dev Plan Data,ExecutiveThread +_02-SoftwareOverview,TurnstileIngestion-Dev Plan Data,InputThread +_02-SoftwareOverview,TurnstileIngestion-Dev Plan Data,OutputThread +_03-CertificationConsiderations,TurnstileIngestion-Dev Plan Data, +_04-SoftwareLifeCycle,TurnstileIngestion-Dev Plan Data, +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,Counter-Req-Spec +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,CounterApplicationSoftware +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,Counter-SW-Des +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,SW-Code +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,RQ-STD +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,SECI +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,SW-STD +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,SW-Ver-Des +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,Sys-Spec +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,Sys-Ver-Rep +_05-SoftwareLifeCycleData,TurnstileIngestion-Dev Plan Data,VER-STD +_06-Schedule,TurnstileIngestion-Dev Plan Data, +_07-AdditionalConsiderations,TurnstileIngestion-Dev Plan Data, +_08-SupplierOversite,TurnstileIngestion-Dev Plan Data, +_01-SystemRequirements,TurnstileIngestion-Dev Plan Data, +_02-SystemDesign,TurnstileIngestion-Dev Plan Data, +_03-HazardAssesment,TurnstileIngestion-Dev Plan Data, +_01-Standards,TurnstileIngestion-Dev Plan Data, +_02-SoftwareDevelopmentLifeCycle,TurnstileIngestion-Dev Plan Data, +_03-SoftwareDevelopmentEnvironment,TurnstileIngestion-Dev Plan Data, +_01-SoftwareReviewProcess,TurnstileIngestion-Dev Plan Data, +_02-SoftwareTestGenerationProcess,TurnstileIngestion-Dev Plan Data, +_04-SoftwareAnalysis,TurnstileIngestion-Dev Plan Data, +_03-SoftwareTestExecutionProcess,TurnstileIngestion-Dev Plan Data, +_01-ChangeManagement,TurnstileIngestion-Dev Plan Data, +_02-SoftwareConfigurationManagementEnvironment,TurnstileIngestion-Dev Plan Data, diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SPECIFICATION1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SPECIFICATION1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SPECIFICATION1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SPECIFICATION1.csv index 11efabbd..12de255d 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SPECIFICATION1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SPECIFICATION1.csv @@ -1,7 +1,7 @@ -identifier -RQ-STD -SW-STD -Sys-Spec -SW-Code -Counter-Req-Spec -VER-STD +identifier +RQ-STD +SW-STD +Sys-Spec +SW-Code +Counter-Req-Spec +VER-STD diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SPECIFICATION2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SPECIFICATION2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SPECIFICATION2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SPECIFICATION2.csv index 64c4f613..f9ab01b3 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SPECIFICATION2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/DOCUMENT_SPECIFICATION2.csv @@ -1,7 +1,7 @@ -identifier,dataInsertedBy_identifier,wasGeneratedBy_identifier -RQ-STD,TurnstileIngestion-Dev Plan Data,SoftwarePlanningProcess -SW-STD,TurnstileIngestion-Dev Plan Data,SoftwarePlanningProcess -Sys-Spec,TurnstileIngestion-Dev Plan Data,System_Development_Process -SW-Code,TurnstileIngestion-Dev Plan Data,SoftwareDevelopmentProcess -Counter-Req-Spec,TurnstileIngestion-Dev Plan Data,SoftwareDevelopmentProcess -VER-STD,TurnstileIngestion-Dev Plan Data,SoftwarePlanningProcess +identifier,dataInsertedBy_identifier,wasGeneratedBy_identifier +RQ-STD,TurnstileIngestion-Dev Plan Data,SoftwarePlanningProcess +SW-STD,TurnstileIngestion-Dev Plan Data,SoftwarePlanningProcess +Sys-Spec,TurnstileIngestion-Dev Plan Data,System_Development_Process +SW-Code,TurnstileIngestion-Dev Plan Data,SoftwareDevelopmentProcess +Counter-Req-Spec,TurnstileIngestion-Dev Plan Data,SoftwareDevelopmentProcess +VER-STD,TurnstileIngestion-Dev Plan Data,SoftwarePlanningProcess diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SoftwareThread1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SoftwareThread1.csv similarity index 92% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SoftwareThread1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SoftwareThread1.csv index e2ed6bce..12957700 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SoftwareThread1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SoftwareThread1.csv @@ -1,4 +1,4 @@ -identifier -ExecutiveThread -InputThread -OutputThread +identifier +ExecutiveThread +InputThread +OutputThread diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SoftwareThread2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SoftwareThread2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SoftwareThread2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SoftwareThread2.csv index 6290204f..6afcb09b 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SoftwareThread2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SoftwareThread2.csv @@ -1,4 +1,4 @@ -identifier,dataInsertedBy_identifier,partOf_identifier -ExecutiveThread,TurnstileIngestion-Dev Plan Data,CounterApplication -InputThread,TurnstileIngestion-Dev Plan Data,CounterApplication -OutputThread,TurnstileIngestion-Dev Plan Data,CounterApplication +identifier,dataInsertedBy_identifier,partOf_identifier +ExecutiveThread,TurnstileIngestion-Dev Plan Data,CounterApplication +InputThread,TurnstileIngestion-Dev Plan Data,CounterApplication +OutputThread,TurnstileIngestion-Dev Plan Data,CounterApplication diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SystemComponent1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SystemComponent1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SystemComponent1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SystemComponent1.csv index cda4c3d0..b868a406 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SystemComponent1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SystemComponent1.csv @@ -1,5 +1,5 @@ -identifier -CounterApplication -Display -InGate -OutGate +identifier +CounterApplication +Display +InGate +OutGate diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SystemComponent2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SystemComponent2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SystemComponent2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SystemComponent2.csv index 8844900d..c5807a18 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/turnstile_SystemComponent2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/GE_SystemComponent2.csv @@ -1,5 +1,5 @@ -identifier,dataInsertedBy_identifier,partOf_identifier -CounterApplication,TurnstileIngestion-Dev Plan Data,Turnstile -Display,TurnstileIngestion-Dev Plan Data,Turnstile -InGate,TurnstileIngestion-Dev Plan Data,Turnstile -OutGate,TurnstileIngestion-Dev Plan Data,Turnstile +identifier,dataInsertedBy_identifier,partOf_identifier +CounterApplication,TurnstileIngestion-Dev Plan Data,Turnstile +Display,TurnstileIngestion-Dev Plan Data,Turnstile +InGate,TurnstileIngestion-Dev Plan Data,Turnstile +OutGate,TurnstileIngestion-Dev Plan Data,Turnstile diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_ACTIVITY1.csv similarity index 96% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_ACTIVITY1.csv index bb44a773..6bf4a5e2 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_ACTIVITY1.csv @@ -1,9 +1,9 @@ -identifier -TurnstileIngestion-Dev Plan Data -SoftwareConfigurationManagementProcess -System_Development_Process -SoftwarePlanningProcess -SoftwareDevelopmentProcess -SoftwareQualityAssuranceProcess -SoftwareVerificationProcess -SoftwareVerficationProcess +identifier +TurnstileIngestion-Dev Plan Data +SoftwareConfigurationManagementProcess +System_Development_Process +SoftwarePlanningProcess +SoftwareDevelopmentProcess +SoftwareQualityAssuranceProcess +SoftwareVerificationProcess +SoftwareVerficationProcess diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_ACTIVITY2.csv similarity index 94% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_ACTIVITY2.csv index c515af40..a96b439c 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_ACTIVITY2.csv @@ -1,21 +1,21 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,wasInformedBy_identifier,used_identifier,endedAtTime -TurnstileIngestion-Dev Plan Data,TurnstileIngestion-Dev Plan Data,Manual ingestion of Turnstile System Development Plan Data,2022-01-13 09:14:15,TurnstileIngestion-Dev Plan Data,,, -SoftwareConfigurationManagementProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwareDevelopmentProcess,, -SoftwareConfigurationManagementProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwareVerificationProcess,, -System_Development_Process,TurnstileIngestion-Dev Plan Data,,,,SoftwareConfigurationManagementProcess,, -SoftwarePlanningProcess,TurnstileIngestion-Dev Plan Data,,,,,, -SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,System_Development_Process,, -SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwarePlanningProcess,, -SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,,RQ-STD, -SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,,SW-STD, -SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,,Sys-Spec, -SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,,Sys-Ver-Rep, -SoftwareQualityAssuranceProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwarePlanningProcess,, -SoftwareQualityAssuranceProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwareDevelopmentProcess,, -SoftwareQualityAssuranceProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwareVerficationProcess,, -SoftwareVerificationProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwareDevelopmentProcess,VER-STD, -SoftwareVerficationProcess,TurnstileIngestion-Dev Plan Data,,,,,CounterApplicationSoftware, -SoftwareVerficationProcess,TurnstileIngestion-Dev Plan Data,,,,,SW-Code, -SoftwareVerficationProcess,TurnstileIngestion-Dev Plan Data,,,,,Counter-SW-Des, -SoftwareVerficationProcess,TurnstileIngestion-Dev Plan Data,,,,,Counter-Req-Spec, -TurnstileIngestion-Dev Plan Data,TurnstileIngestion-Dev Plan Data,,,,,,2022-01-13 09:14:15 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,wasInformedBy_identifier,used_identifier,endedAtTime +TurnstileIngestion-Dev Plan Data,TurnstileIngestion-Dev Plan Data,Manual ingestion of Turnstile System Development Plan Data,2022-07-13 14:33:28,TurnstileIngestion-Dev Plan Data,,, +SoftwareConfigurationManagementProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwareDevelopmentProcess,, +SoftwareConfigurationManagementProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwareVerificationProcess,, +System_Development_Process,TurnstileIngestion-Dev Plan Data,,,,SoftwareConfigurationManagementProcess,, +SoftwarePlanningProcess,TurnstileIngestion-Dev Plan Data,,,,,, +SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,System_Development_Process,, +SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwarePlanningProcess,, +SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,,RQ-STD, +SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,,SW-STD, +SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,,Sys-Spec, +SoftwareDevelopmentProcess,TurnstileIngestion-Dev Plan Data,,,,,Sys-Ver-Rep, +SoftwareQualityAssuranceProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwarePlanningProcess,, +SoftwareQualityAssuranceProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwareDevelopmentProcess,, +SoftwareQualityAssuranceProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwareVerficationProcess,, +SoftwareVerificationProcess,TurnstileIngestion-Dev Plan Data,,,,SoftwareDevelopmentProcess,VER-STD, +SoftwareVerficationProcess,TurnstileIngestion-Dev Plan Data,,,,,CounterApplicationSoftware, +SoftwareVerficationProcess,TurnstileIngestion-Dev Plan Data,,,,,SW-Code, +SoftwareVerficationProcess,TurnstileIngestion-Dev Plan Data,,,,,Counter-SW-Des, +SoftwareVerficationProcess,TurnstileIngestion-Dev Plan Data,,,,,Counter-Req-Spec, +TurnstileIngestion-Dev Plan Data,TurnstileIngestion-Dev Plan Data,,,,,,2022-07-13 14:33:28 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/COLLECTION1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_COLLECTION1.csv similarity index 95% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/COLLECTION1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_COLLECTION1.csv index abd4ed38..d352fda5 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/COLLECTION1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_COLLECTION1.csv @@ -1,2 +1,2 @@ -identifier -CounterApplicationSoftware +identifier +CounterApplicationSoftware diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/COLLECTION2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_COLLECTION2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/COLLECTION2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_COLLECTION2.csv index 3cb7e0b5..9785900d 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/COLLECTION2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/PROV_S_COLLECTION2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier,wasGeneratedBy_identifier -CounterApplicationSoftware,TurnstileIngestion-Dev Plan Data,SoftwareDevelopmentProcess +identifier,dataInsertedBy_identifier,wasGeneratedBy_identifier +CounterApplicationSoftware,TurnstileIngestion-Dev Plan Data,SoftwareDevelopmentProcess diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM_SYSTEM1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM_SYSTEM1.csv index a7f35b57..6286ae83 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM_SYSTEM1.csv @@ -1,2 +1,2 @@ -identifier -Turnstile +identifier +Turnstile diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM_SYSTEM2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM_SYSTEM2.csv index 4ee9c85b..cb3ec836 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/SYSTEM_SYSTEM2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -Turnstile,TurnstileIngestion-Dev Plan Data +identifier,dataInsertedBy_identifier +Turnstile,TurnstileIngestion-Dev Plan Data diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/import.yaml index dcfc81e2..4f08dc28 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileDevelopmentPlanData/import.yaml @@ -1,25 +1,25 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/PROV-S#COLLECTION", csv: "COLLECTION1.csv"} -- {class: "http://arcos.rack/DOCUMENT#DESCRIPTION", csv: "DESCRIPTION1.csv"} -- {class: "http://arcos.rack/DOCUMENT#PLAN", csv: "PLAN1.csv"} -- {class: "http://arcos.rack/DOCUMENT#REPORT", csv: "REPORT1.csv"} -- {class: "http://arcos.rack/DOCUMENT#SECTION", csv: "SECTION1.csv"} -- {class: "http://arcos.rack/DOCUMENT#SPECIFICATION", csv: "SPECIFICATION1.csv"} -- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareThread", csv: "turnstile_SoftwareThread1.csv"} -- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "turnstile_SystemComponent1.csv"} +- {class: "http://arcos.rack/DOCUMENT#DESCRIPTION", csv: "DOCUMENT_DESCRIPTION1.csv"} +- {class: "http://arcos.rack/DOCUMENT#PLAN", csv: "DOCUMENT_PLAN1.csv"} +- {class: "http://arcos.rack/DOCUMENT#REPORT", csv: "DOCUMENT_REPORT1.csv"} +- {class: "http://arcos.rack/DOCUMENT#SECTION", csv: "DOCUMENT_SECTION1.csv"} +- {class: "http://arcos.rack/DOCUMENT#SPECIFICATION", csv: "DOCUMENT_SPECIFICATION1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareThread", csv: "GE_SoftwareThread1.csv"} +- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "GE_SystemComponent1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/PROV-S#COLLECTION", csv: "PROV_S_COLLECTION1.csv"} +- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM_SYSTEM1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/PROV-S#COLLECTION", csv: "COLLECTION2.csv"} -- {class: "http://arcos.rack/DOCUMENT#DESCRIPTION", csv: "DESCRIPTION2.csv"} -- {class: "http://arcos.rack/DOCUMENT#PLAN", csv: "PLAN2.csv"} -- {class: "http://arcos.rack/DOCUMENT#REPORT", csv: "REPORT2.csv"} -- {class: "http://arcos.rack/DOCUMENT#SECTION", csv: "SECTION2.csv"} -- {class: "http://arcos.rack/DOCUMENT#SPECIFICATION", csv: "SPECIFICATION2.csv"} -- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareThread", csv: "turnstile_SoftwareThread2.csv"} -- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "turnstile_SystemComponent2.csv"} +- {class: "http://arcos.rack/DOCUMENT#DESCRIPTION", csv: "DOCUMENT_DESCRIPTION2.csv"} +- {class: "http://arcos.rack/DOCUMENT#PLAN", csv: "DOCUMENT_PLAN2.csv"} +- {class: "http://arcos.rack/DOCUMENT#REPORT", csv: "DOCUMENT_REPORT2.csv"} +- {class: "http://arcos.rack/DOCUMENT#SECTION", csv: "DOCUMENT_SECTION2.csv"} +- {class: "http://arcos.rack/DOCUMENT#SPECIFICATION", csv: "DOCUMENT_SPECIFICATION2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareThread", csv: "GE_SoftwareThread2.csv"} +- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "GE_SystemComponent2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/PROV-S#COLLECTION", csv: "PROV_S_COLLECTION2.csv"} +- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM_SYSTEM2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ORGANIZATION1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/AGENTS_ORGANIZATION1.csv similarity index 93% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ORGANIZATION1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/AGENTS_ORGANIZATION1.csv index 4bba9ecb..38f95d4a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/ORGANIZATION1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/AGENTS_ORGANIZATION1.csv @@ -1,2 +1,2 @@ -identifier -General_Electric +identifier +General_Electric diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ORGANIZATION2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/AGENTS_ORGANIZATION2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ORGANIZATION2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/AGENTS_ORGANIZATION2.csv index 32a5c85a..c54e74c0 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ORGANIZATION2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/AGENTS_ORGANIZATION2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -General_Electric,TurnstileIngestion-High Level Requirements +identifier,dataInsertedBy_identifier +General_Electric,TurnstileIngestion-High Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT_DOCUMENT1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT_DOCUMENT1.csv index c685e486..94bdcaf0 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT_DOCUMENT1.csv @@ -1,2 +1,2 @@ -identifier -RQ-STD:v1 +identifier +RQ-STD:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT_DOCUMENT2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT_DOCUMENT2.csv index 9e352cdb..679d5ec9 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/DOCUMENT_DOCUMENT2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier -RQ-STD:v1,TurnstileIngestion-High Level Requirements -RQ-STD:v1,TurnstileIngestion-High Level Requirements +identifier,dataInsertedBy_identifier +RQ-STD:v1,TurnstileIngestion-High Level Requirements +RQ-STD:v1,TurnstileIngestion-High Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE2.csv deleted file mode 100644 index 0d012b61..00000000 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE2.csv +++ /dev/null @@ -1,3 +0,0 @@ -identifier,dataInsertedBy_identifier,entityURL -HLR Doc:v1,TurnstileIngestion-High Level Requirements,file://C:/Users/200001934/workspace-current/RACK/Turnstile-Example/Turnstile-IngestionPackage/RequirementsDocument/Version1.pdf -HLR Doc:v2,TurnstileIngestion-High Level Requirements,file://C:/Users/200001934/workspace-current/RACK/Turnstile-Example/Turnstile-IngestionPackage/RequirementsDocument/Version2.pdf diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE_FILE1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE_FILE1.csv index 96e2de01..9165a1b1 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE_FILE1.csv @@ -1,3 +1,3 @@ -identifier -HLR Doc:v1 -HLR Doc:v2 +identifier +HLR Doc:v1 +HLR Doc:v2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE_FILE2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE_FILE2.csv new file mode 100644 index 00000000..ed482962 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/FILE_FILE2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,entityURL +HLR Doc:v1,TurnstileIngestion-High Level Requirements,file:///Users/200005944/GitHub/RACK/Turnstile-Example/Turnstile-IngestionPackage/RequirementsDocument/Version1.pdf +HLR Doc:v2,TurnstileIngestion-High Level Requirements,file:///Users/200005944/GitHub/RACK/Turnstile-Example/Turnstile-IngestionPackage/RequirementsDocument/Version2.pdf diff --git a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_DataDictionary1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_DataDictionary1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_DataDictionary1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_DataDictionary1.csv index 11a3e1bb..237dd4f2 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationReviews/turnstile_DataDictionary1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_DataDictionary1.csv @@ -1,5 +1,5 @@ -identifier -inflowEvent -outflowEvent -counter -display +identifier +inflowEvent +outflowEvent +counter +display diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_DataDictionary2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_DataDictionary2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_DataDictionary2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_DataDictionary2.csv index aefe0f90..9015f99a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_DataDictionary2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_DataDictionary2.csv @@ -1,18 +1,18 @@ -identifier,dataInsertedBy_identifier,description,wasGeneratedBy_identifier,providedBy_identifier,consumedBy_identifier -inflowEvent,TurnstileIngestion-High Level Requirements,Signal indicating that a person has passed through the ingate,HlrDev1,, -inflowEvent,TurnstileIngestion-High Level Requirements,,,inflow, -inflowEvent,TurnstileIngestion-High Level Requirements,,,,HLR-1:v1 -outflowEvent,TurnstileIngestion-High Level Requirements,Signal indicating that a person has passed through the outgate,HlrDev1,, -outflowEvent,TurnstileIngestion-High Level Requirements,,,outflow, -outflowEvent,TurnstileIngestion-High Level Requirements,,,,HLR-2:v1 -counter,TurnstileIngestion-High Level Requirements,running total people in the park.,HlrDev1,, -counter,TurnstileIngestion-High Level Requirements,,,HLR-1:v1, -counter,TurnstileIngestion-High Level Requirements,,,HLR-2:v1, -counter,TurnstileIngestion-High Level Requirements,,,,HLR-3:v1 -display,TurnstileIngestion-High Level Requirements,,HlrDev1,, -display,TurnstileIngestion-High Level Requirements,,,HLR-3:v1, -display,TurnstileIngestion-High Level Requirements,,,,census -inflowEvent,TurnstileIngestion-High Level Requirements,,,,HLR-1:v2 -outflowEvent,TurnstileIngestion-High Level Requirements,,,,HLR-2:v2 -counter,TurnstileIngestion-High Level Requirements,,,HLR-1:v2, -counter,TurnstileIngestion-High Level Requirements,,,HLR-2:v2, +identifier,dataInsertedBy_identifier,description,wasGeneratedBy_identifier,providedBy_identifier,consumedBy_identifier +inflowEvent,TurnstileIngestion-High Level Requirements,Signal indicating that a person has passed through the ingate,HlrDev1,, +inflowEvent,TurnstileIngestion-High Level Requirements,,,inflow, +inflowEvent,TurnstileIngestion-High Level Requirements,,,,HLR-1:v1 +outflowEvent,TurnstileIngestion-High Level Requirements,Signal indicating that a person has passed through the outgate,HlrDev1,, +outflowEvent,TurnstileIngestion-High Level Requirements,,,outflow, +outflowEvent,TurnstileIngestion-High Level Requirements,,,,HLR-2:v1 +counter,TurnstileIngestion-High Level Requirements,running total people in the park.,HlrDev1,, +counter,TurnstileIngestion-High Level Requirements,,,HLR-1:v1, +counter,TurnstileIngestion-High Level Requirements,,,HLR-2:v1, +counter,TurnstileIngestion-High Level Requirements,,,,HLR-3:v1 +display,TurnstileIngestion-High Level Requirements,,HlrDev1,, +display,TurnstileIngestion-High Level Requirements,,,HLR-3:v1, +display,TurnstileIngestion-High Level Requirements,,,,census +inflowEvent,TurnstileIngestion-High Level Requirements,,,,HLR-1:v2 +outflowEvent,TurnstileIngestion-High Level Requirements,,,,HLR-2:v2 +counter,TurnstileIngestion-High Level Requirements,,,HLR-1:v2, +counter,TurnstileIngestion-High Level Requirements,,,HLR-2:v2, diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_Engineer1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_Engineer1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_Engineer1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_Engineer1.csv index 6c2e7c0c..5d630387 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_Engineer1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_Engineer1.csv @@ -1,2 +1,2 @@ -identifier -125569538 +identifier +125569538 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_Engineer2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_Engineer2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_Engineer2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_Engineer2.csv index 917bdebd..3d1ba9bd 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_Engineer2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_Engineer2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier,emailAddress,employedBy_identifier,title -125569538,TurnstileIngestion-High Level Requirements,john.doe@ge.com,General_Electric,"Doe, John" +identifier,dataInsertedBy_identifier,emailAddress,employedBy_identifier,title +125569538,TurnstileIngestion-High Level Requirements,john.doe@ge.com,General_Electric,"Doe, John" diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_HighLevelRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_HighLevelRequirement1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_HighLevelRequirement1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_HighLevelRequirement1.csv index 21fdb092..ddaae41b 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_HighLevelRequirement1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_HighLevelRequirement1.csv @@ -1,7 +1,7 @@ -identifier -HLR-1:v1 -HLR-2:v1 -HLR-3:v1 -HLR-1:v2 -HLR-2:v2 -HLR-3:v2 +identifier +HLR-1:v1 +HLR-2:v1 +HLR-3:v1 +HLR-1:v2 +HLR-2:v2 +HLR-3:v2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_HighLevelRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_HighLevelRequirement2.csv similarity index 55% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_HighLevelRequirement2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_HighLevelRequirement2.csv index e4b4f80c..9b8c545b 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_HighLevelRequirement2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_HighLevelRequirement2.csv @@ -1,7 +1,7 @@ -identifier,dataInsertedBy_identifier,definedIn_identifier,description,governs_identifier,mitigates_identifier,satisfies_identifier,wasGeneratedBy_identifier,wasRevisionOf_identifier -HLR-1:v1,TurnstileIngestion-High Level Requirements,HLR Doc:v1,The Computer shall increment the counter when a inflow event is received and the counter is less than 1000.,CounterApplication,H-1.2,Sys-1,, -HLR-2:v1,TurnstileIngestion-High Level Requirements,HLR Doc:v1,The Computer shall decrement the counter when a outflow event is received and the counter is greater than 0.,CounterApplication,H-1.1,Sys-2,, -HLR-3:v1,TurnstileIngestion-High Level Requirements,HLR Doc:v1,The Computer shall publish the counter at a 1 htz rate.,CounterApplication,,Sys-3,, -HLR-1:v2,TurnstileIngestion-High Level Requirements,HLR Doc:v2,"The Computer shall increment the counter when aninflow event is received,and the counter is less than max int.",CounterApplication,H-1.2,Sys-1,,HLR-1:v1 -HLR-2:v2,TurnstileIngestion-High Level Requirements,HLR Doc:v2,"The Computer shall decrement the counter when anoutflow event is received,and the counter is greater than0.",CounterApplication,H-1.1,Sys-2,,HLR-2:v1 -HLR-3:v2,TurnstileIngestion-High Level Requirements,HLR Doc:v2,The Computer shall publish the counter at a 1 htz rate.,CounterApplication,,Sys-3,,HLR-3:v1 +identifier,dataInsertedBy_identifier,definedIn_identifier,description,governs_identifier,mitigates_identifier,satisfies_identifier,wasGeneratedBy_identifier,wasRevisionOf_identifier +HLR-1:v1,TurnstileIngestion-High Level Requirements,HLR Doc:v1,The Computer shall increment the counter when a inflow event is received and the counter is less than 1000.,CounterApplication,H-1.2,Sys-1,, +HLR-2:v1,TurnstileIngestion-High Level Requirements,HLR Doc:v1,The Computer shall decrement the counter when a outflow event is received and the counter is greater than 0.,CounterApplication,H-1.1,Sys-2,, +HLR-3:v1,TurnstileIngestion-High Level Requirements,HLR Doc:v1,The Computer shall publish the counter at a 1 htz rate.,CounterApplication,,Sys-3,, +HLR-1:v2,TurnstileIngestion-High Level Requirements,HLR Doc:v2,"The Computer shall increment the counter when a ninflow event is received,and the counter is less than max int.",CounterApplication,H-1.2,Sys-1,,HLR-1:v1 +HLR-2:v2,TurnstileIngestion-High Level Requirements,HLR Doc:v2,"The Computer shall decrement the counter when a noutflow event is received,and the counter is greater than 0.",CounterApplication,H-1.1,Sys-2,,HLR-2:v1 +HLR-3:v2,TurnstileIngestion-High Level Requirements,HLR Doc:v2,The Computer shall publish the counter at a 1 htz rate.,CounterApplication,,Sys-3,,HLR-3:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SoftwareRequirementsDefinition1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SoftwareRequirementsDefinition1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SoftwareRequirementsDefinition1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SoftwareRequirementsDefinition1.csv index 1840b073..5c3cee10 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SoftwareRequirementsDefinition1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SoftwareRequirementsDefinition1.csv @@ -1,3 +1,3 @@ -identifier -HlrDev1 -HlrDev2 +identifier +HlrDev1 +HlrDev2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SoftwareRequirementsDefinition2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SoftwareRequirementsDefinition2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SoftwareRequirementsDefinition2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SoftwareRequirementsDefinition2.csv index 6ef1dd3f..04f03449 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SoftwareRequirementsDefinition2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SoftwareRequirementsDefinition2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,endedAtTime,referenced_identifier,wasAssociatedWith_identifier -HlrDev1,TurnstileIngestion-High Level Requirements,2020-07-15 10:56:38,RQ-STD:v1,125569538 -HlrDev2,TurnstileIngestion-High Level Requirements,2020-07-25 10:53:38,RQ-STD:v1,125569538 +identifier,dataInsertedBy_identifier,endedAtTime,referenced_identifier,wasAssociatedWith_identifier +HlrDev1,TurnstileIngestion-High Level Requirements,2020-07-15 10:56:38,RQ-STD:v1,125569538 +HlrDev2,TurnstileIngestion-High Level Requirements,2020-07-25 10:53:38,RQ-STD:v1,125569538 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemComponent1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemComponent1.csv similarity index 93% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemComponent1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemComponent1.csv index f161e7e1..b9584dd2 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemComponent1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemComponent1.csv @@ -1,2 +1,2 @@ -identifier -CounterApplication +identifier +CounterApplication diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemComponent2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemComponent2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemComponent2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemComponent2.csv index 678a433a..2eacc26f 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemComponent2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemComponent2.csv @@ -1,7 +1,7 @@ -identifier,dataInsertedBy_identifier -CounterApplication,TurnstileIngestion-High Level Requirements -CounterApplication,TurnstileIngestion-High Level Requirements -CounterApplication,TurnstileIngestion-High Level Requirements -CounterApplication,TurnstileIngestion-High Level Requirements -CounterApplication,TurnstileIngestion-High Level Requirements -CounterApplication,TurnstileIngestion-High Level Requirements +identifier,dataInsertedBy_identifier +CounterApplication,TurnstileIngestion-High Level Requirements +CounterApplication,TurnstileIngestion-High Level Requirements +CounterApplication,TurnstileIngestion-High Level Requirements +CounterApplication,TurnstileIngestion-High Level Requirements +CounterApplication,TurnstileIngestion-High Level Requirements +CounterApplication,TurnstileIngestion-High Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemInterfaceDefinition1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemInterfaceDefinition1.csv similarity index 89% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemInterfaceDefinition1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemInterfaceDefinition1.csv index 457b29cd..8553d0c8 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemInterfaceDefinition1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemInterfaceDefinition1.csv @@ -1,4 +1,4 @@ -identifier -inflow -outflow -census +identifier +inflow +outflow +census diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemInterfaceDefinition2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemInterfaceDefinition2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemInterfaceDefinition2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemInterfaceDefinition2.csv index dc3a3910..a20641af 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemInterfaceDefinition2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemInterfaceDefinition2.csv @@ -1,4 +1,4 @@ -identifier,dataInsertedBy_identifier -inflow,TurnstileIngestion-High Level Requirements -outflow,TurnstileIngestion-High Level Requirements -census,TurnstileIngestion-High Level Requirements +identifier,dataInsertedBy_identifier +inflow,TurnstileIngestion-High Level Requirements +outflow,TurnstileIngestion-High Level Requirements +census,TurnstileIngestion-High Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemRequirement1.csv similarity index 87% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemRequirement1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemRequirement1.csv index c27f0685..622e52ba 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemRequirement1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemRequirement1.csv @@ -1,4 +1,4 @@ -identifier -Sys-1 -Sys-2 -Sys-3 +identifier +Sys-1 +Sys-2 +Sys-3 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemRequirement2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemRequirement2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemRequirement2.csv index 6cd61d94..c8dda55a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/turnstile_SystemRequirement2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/GE_SystemRequirement2.csv @@ -1,7 +1,7 @@ -identifier,dataInsertedBy_identifier -Sys-1,TurnstileIngestion-High Level Requirements -Sys-2,TurnstileIngestion-High Level Requirements -Sys-3,TurnstileIngestion-High Level Requirements -Sys-1,TurnstileIngestion-High Level Requirements -Sys-2,TurnstileIngestion-High Level Requirements -Sys-3,TurnstileIngestion-High Level Requirements +identifier,dataInsertedBy_identifier +Sys-1,TurnstileIngestion-High Level Requirements +Sys-2,TurnstileIngestion-High Level Requirements +Sys-3,TurnstileIngestion-High Level Requirements +Sys-1,TurnstileIngestion-High Level Requirements +Sys-2,TurnstileIngestion-High Level Requirements +Sys-3,TurnstileIngestion-High Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD_HAZARD1.csv similarity index 88% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD_HAZARD1.csv index d100b515..c9cec161 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD_HAZARD1.csv @@ -1,4 +1,3 @@ -identifier -H-1.2 -H-1.1 -"" +identifier +H-1.2 +H-1.1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD_HAZARD2.csv similarity index 72% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD_HAZARD2.csv index e60b196d..de23bf87 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/HAZARD_HAZARD2.csv @@ -1,7 +1,5 @@ -identifier,dataInsertedBy_identifier -H-1.2,TurnstileIngestion-High Level Requirements -H-1.1,TurnstileIngestion-High Level Requirements -,TurnstileIngestion-High Level Requirements -H-1.2,TurnstileIngestion-High Level Requirements -H-1.1,TurnstileIngestion-High Level Requirements -,TurnstileIngestion-High Level Requirements +identifier,dataInsertedBy_identifier +H-1.2,TurnstileIngestion-High Level Requirements +H-1.1,TurnstileIngestion-High Level Requirements +H-1.2,TurnstileIngestion-High Level Requirements +H-1.1,TurnstileIngestion-High Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/PROV_S_ACTIVITY1.csv similarity index 96% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/PROV_S_ACTIVITY1.csv index 72c3a290..6c6df8d8 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/PROV_S_ACTIVITY1.csv @@ -1,2 +1,2 @@ -identifier -TurnstileIngestion-High Level Requirements +identifier +TurnstileIngestion-High Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/PROV_S_ACTIVITY2.csv similarity index 71% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/PROV_S_ACTIVITY2.csv index 037bf874..9f4a4af8 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/PROV_S_ACTIVITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime -TurnstileIngestion-High Level Requirements,TurnstileIngestion-High Level Requirements,Manual ingestion of Turnstile High Level Requirements,2022-01-13 09:14:20,TurnstileIngestion-High Level Requirements, -TurnstileIngestion-High Level Requirements,TurnstileIngestion-High Level Requirements,,,,2022-01-13 09:14:20 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-High Level Requirements,TurnstileIngestion-High Level Requirements,Manual ingestion of Turnstile High Level Requirements,2022-07-13 14:33:33,TurnstileIngestion-High Level Requirements, +TurnstileIngestion-High Level Requirements,TurnstileIngestion-High Level Requirements,,,,2022-07-13 14:33:33 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/import.yaml index 652bab83..509158f3 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileHighLevelRequirements/import.yaml @@ -1,29 +1,29 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT1.csv"} -- {class: "http://arcos.rack/FILE#FILE", csv: "FILE1.csv"} -- {class: "http://arcos.rack/HAZARD#HAZARD", csv: "HAZARD1.csv"} -- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "ORGANIZATION1.csv"} -- {class: "http://arcos.turnstile/GE#DataDictionary", csv: "turnstile_DataDictionary1.csv"} -- {class: "http://arcos.turnstile/GE#Engineer", csv: "turnstile_Engineer1.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareRequirementsDefinition", csv: "turnstile_SoftwareRequirementsDefinition1.csv"} -- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "turnstile_SystemComponent1.csv"} -- {class: "http://arcos.turnstile/GE#SystemInterfaceDefinition", csv: "turnstile_SystemInterfaceDefinition1.csv"} -- {class: "http://arcos.turnstile/GE#SystemRequirement", csv: "turnstile_SystemRequirement1.csv"} +- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "AGENTS_ORGANIZATION1.csv"} +- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT_DOCUMENT1.csv"} +- {class: "http://arcos.rack/FILE#FILE", csv: "FILE_FILE1.csv"} +- {class: "http://arcos.turnstile/GE#DataDictionary", csv: "GE_DataDictionary1.csv"} +- {class: "http://arcos.turnstile/GE#Engineer", csv: "GE_Engineer1.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareRequirementsDefinition", csv: "GE_SoftwareRequirementsDefinition1.csv"} +- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "GE_SystemComponent1.csv"} +- {class: "http://arcos.turnstile/GE#SystemInterfaceDefinition", csv: "GE_SystemInterfaceDefinition1.csv"} +- {class: "http://arcos.turnstile/GE#SystemRequirement", csv: "GE_SystemRequirement1.csv"} +- {class: "http://arcos.rack/HAZARD#HAZARD", csv: "HAZARD_HAZARD1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT2.csv"} -- {class: "http://arcos.rack/FILE#FILE", csv: "FILE2.csv"} -- {class: "http://arcos.rack/HAZARD#HAZARD", csv: "HAZARD2.csv"} -- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "ORGANIZATION2.csv"} -- {class: "http://arcos.turnstile/GE#DataDictionary", csv: "turnstile_DataDictionary2.csv"} -- {class: "http://arcos.turnstile/GE#Engineer", csv: "turnstile_Engineer2.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareRequirementsDefinition", csv: "turnstile_SoftwareRequirementsDefinition2.csv"} -- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "turnstile_SystemComponent2.csv"} -- {class: "http://arcos.turnstile/GE#SystemInterfaceDefinition", csv: "turnstile_SystemInterfaceDefinition2.csv"} -- {class: "http://arcos.turnstile/GE#SystemRequirement", csv: "turnstile_SystemRequirement2.csv"} +- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "AGENTS_ORGANIZATION2.csv"} +- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT_DOCUMENT2.csv"} +- {class: "http://arcos.rack/FILE#FILE", csv: "FILE_FILE2.csv"} +- {class: "http://arcos.turnstile/GE#DataDictionary", csv: "GE_DataDictionary2.csv"} +- {class: "http://arcos.turnstile/GE#Engineer", csv: "GE_Engineer2.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareRequirementsDefinition", csv: "GE_SoftwareRequirementsDefinition2.csv"} +- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "GE_SystemComponent2.csv"} +- {class: "http://arcos.turnstile/GE#SystemInterfaceDefinition", csv: "GE_SystemInterfaceDefinition2.csv"} +- {class: "http://arcos.turnstile/GE#SystemRequirement", csv: "GE_SystemRequirement2.csv"} +- {class: "http://arcos.rack/HAZARD#HAZARD", csv: "HAZARD_HAZARD2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ORGANIZATION1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/AGENTS_ORGANIZATION1.csv similarity index 93% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ORGANIZATION1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/AGENTS_ORGANIZATION1.csv index 4bba9ecb..38f95d4a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ORGANIZATION1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/AGENTS_ORGANIZATION1.csv @@ -1,2 +1,2 @@ -identifier -General_Electric +identifier +General_Electric diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ORGANIZATION2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/AGENTS_ORGANIZATION2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ORGANIZATION2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/AGENTS_ORGANIZATION2.csv index c6b99645..0e123f6b 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ORGANIZATION2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/AGENTS_ORGANIZATION2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -General_Electric,TurnstileIngestion-Low Level Requirements +identifier,dataInsertedBy_identifier +General_Electric,TurnstileIngestion-Low Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT_DOCUMENT1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT_DOCUMENT1.csv index ed89fc7d..58078433 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT_DOCUMENT1.csv @@ -1,2 +1,2 @@ -identifier -SW-STD:v1 +identifier +SW-STD:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT_DOCUMENT2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT_DOCUMENT2.csv index c00d14e3..810460fe 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/DOCUMENT_DOCUMENT2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier -SW-STD:v1,TurnstileIngestion-Low Level Requirements -SW-STD:v1,TurnstileIngestion-Low Level Requirements +identifier,dataInsertedBy_identifier +SW-STD:v1,TurnstileIngestion-Low Level Requirements +SW-STD:v1,TurnstileIngestion-Low Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_DataAndControlCouple1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_DataAndControlCouple1.csv similarity index 87% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_DataAndControlCouple1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_DataAndControlCouple1.csv index c052ce11..77ecb64f 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_DataAndControlCouple1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_DataAndControlCouple1.csv @@ -1,7 +1,7 @@ -identifier -DCC-1 -DCC-2 -DCC-3 -DCC-4 -DCC-5 -DCC-6 +identifier +DCC-1 +DCC-2 +DCC-3 +DCC-4 +DCC-5 +DCC-6 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_DataAndControlCouple2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_DataAndControlCouple2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_DataAndControlCouple2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_DataAndControlCouple2.csv index d8f41425..9ab30e58 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_DataAndControlCouple2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_DataAndControlCouple2.csv @@ -1,36 +1,36 @@ -identifier,dataInsertedBy_identifier,description,wasGeneratedBy_identifier,consumedBy_identifier,providedBy_identifier -DCC-1,TurnstileIngestion-Low Level Requirements,PowerUp,LlrDev1,, -DCC-1,TurnstileIngestion-Low Level Requirements,,,EXE-LLR-1, -DCC-1,TurnstileIngestion-Low Level Requirements,,,EXE-LLR-2, -DCC-1,TurnstileIngestion-Low Level Requirements,,,IN-LLR-1, -DCC-1,TurnstileIngestion-Low Level Requirements,,,OUT-LLR-1, -DCC-2,TurnstileIngestion-Low Level Requirements,incoming UDP message,LlrDev1,, -DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-2:v1, -DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-2:v2, -DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-3:v1, -DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-3:v2, -DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-5, -DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-6, -DCC-3,TurnstileIngestion-Low Level Requirements,input_park_count,LlrDev1,, -DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-2:v1, -DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-2:v2, -DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-3:v1, -DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-3:v2, -DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-4, -DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-5, -DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-6, -DCC-3,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-1 -DCC-3,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-4 -DCC-4,TurnstileIngestion-Low Level Requirements,output_park_count,LlrDev1,, -DCC-3,TurnstileIngestion-Low Level Requirements,,,OUT-LLR-2:v1, -DCC-3,TurnstileIngestion-Low Level Requirements,,,OUT-LLR-2:v2, -DCC-3,TurnstileIngestion-Low Level Requirements,,,,OUT-LLR-1 -DCC-3,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-3:v1 -DCC-3,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-3:v2 -DCC-5,TurnstileIngestion-Low Level Requirements,outgoing UDP message,LlrDev1,, -DCC-5,TurnstileIngestion-Low Level Requirements,,,,OUT-LLR-2:v1 -DCC-5,TurnstileIngestion-Low Level Requirements,,,,OUT-LLR-2:v2 -DCC-6,TurnstileIngestion-Low Level Requirements,console,LlrDev1,, -DCC-6,TurnstileIngestion-Low Level Requirements,,,,EXE-LLR-3 -DCC-6,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-5 -DCC-6,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-6 +identifier,dataInsertedBy_identifier,description,wasGeneratedBy_identifier,consumedBy_identifier,providedBy_identifier +DCC-1,TurnstileIngestion-Low Level Requirements,PowerUp,LlrDev1,, +DCC-1,TurnstileIngestion-Low Level Requirements,,,EXE-LLR-1, +DCC-1,TurnstileIngestion-Low Level Requirements,,,EXE-LLR-2, +DCC-1,TurnstileIngestion-Low Level Requirements,,,IN-LLR-1, +DCC-1,TurnstileIngestion-Low Level Requirements,,,OUT-LLR-1, +DCC-2,TurnstileIngestion-Low Level Requirements,incoming UDP message,LlrDev1,, +DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-2:v1, +DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-2:v2, +DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-3:v1, +DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-3:v2, +DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-5, +DCC-2,TurnstileIngestion-Low Level Requirements,,,IN-LLR-6, +DCC-3,TurnstileIngestion-Low Level Requirements,input_park_count,LlrDev1,, +DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-2:v1, +DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-2:v2, +DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-3:v1, +DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-3:v2, +DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-4, +DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-5, +DCC-3,TurnstileIngestion-Low Level Requirements,,,IN-LLR-6, +DCC-3,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-1 +DCC-3,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-4 +DCC-4,TurnstileIngestion-Low Level Requirements,output_park_count,LlrDev1,, +DCC-3,TurnstileIngestion-Low Level Requirements,,,OUT-LLR-2:v1, +DCC-3,TurnstileIngestion-Low Level Requirements,,,OUT-LLR-2:v2, +DCC-3,TurnstileIngestion-Low Level Requirements,,,,OUT-LLR-1 +DCC-3,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-3:v1 +DCC-3,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-3:v2 +DCC-5,TurnstileIngestion-Low Level Requirements,outgoing UDP message,LlrDev1,, +DCC-5,TurnstileIngestion-Low Level Requirements,,,,OUT-LLR-2:v1 +DCC-5,TurnstileIngestion-Low Level Requirements,,,,OUT-LLR-2:v2 +DCC-6,TurnstileIngestion-Low Level Requirements,console,LlrDev1,, +DCC-6,TurnstileIngestion-Low Level Requirements,,,,EXE-LLR-3 +DCC-6,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-5 +DCC-6,TurnstileIngestion-Low Level Requirements,,,,IN-LLR-6 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_Engineer1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_Engineer1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_Engineer1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_Engineer1.csv index cdb68235..462fd1e6 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_Engineer1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_Engineer1.csv @@ -1,2 +1,2 @@ -identifier -2125895152 +identifier +2125895152 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_Engineer2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_Engineer2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_Engineer2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_Engineer2.csv index 57ed088a..2a9b1ab3 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_Engineer2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_Engineer2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier,emailAddress,employedBy_identifier,title -2125895152,TurnstileIngestion-Low Level Requirements,jane.doe@ge.com,General_Electric,"Doe, Jane" +identifier,dataInsertedBy_identifier,emailAddress,employedBy_identifier,title +2125895152,TurnstileIngestion-Low Level Requirements,jane.doe@ge.com,General_Electric,"Doe, Jane" diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_HighLevelRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_HighLevelRequirement1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_HighLevelRequirement1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_HighLevelRequirement1.csv index 207529b4..ddaae41b 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_HighLevelRequirement1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_HighLevelRequirement1.csv @@ -1,8 +1,7 @@ -identifier -"" -HLR-1:v1 -HLR-2:v1 -HLR-3:v1 -HLR-1:v2 -HLR-2:v2 -HLR-3:v2 +identifier +HLR-1:v1 +HLR-2:v1 +HLR-3:v1 +HLR-1:v2 +HLR-2:v2 +HLR-3:v2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_HighLevelRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_HighLevelRequirement2.csv similarity index 61% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_HighLevelRequirement2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_HighLevelRequirement2.csv index e92b5977..d25a0dea 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_HighLevelRequirement2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_HighLevelRequirement2.csv @@ -1,19 +1,11 @@ -identifier,dataInsertedBy_identifier -,TurnstileIngestion-Low Level Requirements -,TurnstileIngestion-Low Level Requirements -,TurnstileIngestion-Low Level Requirements -,TurnstileIngestion-Low Level Requirements -HLR-1:v1,TurnstileIngestion-Low Level Requirements -HLR-2:v1,TurnstileIngestion-Low Level Requirements -HLR-1:v1,TurnstileIngestion-Low Level Requirements -HLR-2:v1,TurnstileIngestion-Low Level Requirements -,TurnstileIngestion-Low Level Requirements -,TurnstileIngestion-Low Level Requirements -,TurnstileIngestion-Low Level Requirements -,TurnstileIngestion-Low Level Requirements -HLR-3:v1,TurnstileIngestion-Low Level Requirements -HLR-1:v2,TurnstileIngestion-Low Level Requirements -HLR-2:v2,TurnstileIngestion-Low Level Requirements -HLR-1:v2,TurnstileIngestion-Low Level Requirements -HLR-2:v2,TurnstileIngestion-Low Level Requirements -HLR-3:v2,TurnstileIngestion-Low Level Requirements +identifier,dataInsertedBy_identifier +HLR-1:v1,TurnstileIngestion-Low Level Requirements +HLR-2:v1,TurnstileIngestion-Low Level Requirements +HLR-1:v1,TurnstileIngestion-Low Level Requirements +HLR-2:v1,TurnstileIngestion-Low Level Requirements +HLR-3:v1,TurnstileIngestion-Low Level Requirements +HLR-1:v2,TurnstileIngestion-Low Level Requirements +HLR-2:v2,TurnstileIngestion-Low Level Requirements +HLR-1:v2,TurnstileIngestion-Low Level Requirements +HLR-2:v2,TurnstileIngestion-Low Level Requirements +HLR-3:v2,TurnstileIngestion-Low Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_LowLevelRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_LowLevelRequirement1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_LowLevelRequirement1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_LowLevelRequirement1.csv index 1746fcfd..01e96f80 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_LowLevelRequirement1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_LowLevelRequirement1.csv @@ -1,15 +1,15 @@ -identifier -EXE-LLR-1 -EXE-LLR-2 -EXE-LLR-3 -IN-LLR-1 -IN-LLR-2:v1 -IN-LLR-3:v1 -IN-LLR-4 -IN-LLR-5 -IN-LLR-6 -OUT-LLR-1 -OUT-LLR-2:v1 -IN-LLR-2:v2 -IN-LLR-3:v2 -OUT-LLR-2:v2 +identifier +EXE-LLR-1 +EXE-LLR-2 +EXE-LLR-3 +IN-LLR-1 +IN-LLR-2:v1 +IN-LLR-3:v1 +IN-LLR-4 +IN-LLR-5 +IN-LLR-6 +OUT-LLR-1 +OUT-LLR-2:v1 +IN-LLR-2:v2 +IN-LLR-3:v2 +OUT-LLR-2:v2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_LowLevelRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_LowLevelRequirement2.csv similarity index 77% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_LowLevelRequirement2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_LowLevelRequirement2.csv index 205aadfe..04e1fb10 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_LowLevelRequirement2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_LowLevelRequirement2.csv @@ -1,19 +1,19 @@ -identifier,dataInsertedBy_identifier,description,governs_identifier,satisfies_identifier,wasGeneratedBy_identifier -EXE-LLR-1,TurnstileIngestion-Low Level Requirements,Executive shall spawn Input Thread on powerup.,ExecutiveThread,, -EXE-LLR-2,TurnstileIngestion-Low Level Requirements,Executive shall spawn Output Thread on powerup.,ExecutiveThread,, -EXE-LLR-3,TurnstileIngestion-Low Level Requirements,Executive shall print asingle '.' character to the console every second when running.,ExecutiveThread,, -IN-LLR-1,TurnstileIngestion-Low Level Requirements,Input Thread shall initialize the parkcount to 0 on powerup.,InputThread,, -IN-LLR-2:v1,TurnstileIngestion-Low Level Requirements,Input Thread shall check for a incoming UDP message on port 62000.,InputThread,HLR-1:v1, -IN-LLR-2:v1,TurnstileIngestion-Low Level Requirements,Input Thread shall check for a incoming UDP message on port 62000.,InputThread,HLR-2:v1, -IN-LLR-3:v1,TurnstileIngestion-Low Level Requirements,"Input Thread shall add the delta value received by the UDP to the parkcount and send the updated parkcount to the Output Thread when a valid UDP message is received,and the parkcount range is not exceed.",InputThread,HLR-1:v1, -IN-LLR-3:v1,TurnstileIngestion-Low Level Requirements,"Input Thread shall add the delta value received by the UDP to the parkcount and send the updated parkcount to the Output Thread when a valid UDP message is received,and the parkcount range is not exceed.",InputThread,HLR-2:v1, -IN-LLR-4,TurnstileIngestion-Low Level Requirements,Input Thread shall limit parkcount to between 0 and 1500.,InputThread,, -IN-LLR-5,TurnstileIngestion-Low Level Requirements,Input Thread shall print 'Invalid Message' to the console when a invalid UDP message is received.,InputThread,, -IN-LLR-6,TurnstileIngestion-Low Level Requirements,"Input Thread shall print 'Limit Exceeded'' to the console when a valid UDP message is received,and the parkcount range is exceed.",InputThread,, -OUT-LLR-1,TurnstileIngestion-Low Level Requirements,Output Thread shall initialize the parkcount to 0 on powerup.,OutputThread,, -OUT-LLR-2:v1,TurnstileIngestion-Low Level Requirements,Output Thread shall broadcast a UDP message on port 62001 with the parkcount every second.,InputThread,HLR-3:v1, -IN-LLR-2:v2,TurnstileIngestion-Low Level Requirements,Input Thread shall check for anincoming UDP message on port 62000.,InputThread,HLR-1:v2, -IN-LLR-2:v2,TurnstileIngestion-Low Level Requirements,Input Thread shall check for anincoming UDP message on port 62000.,InputThread,HLR-2:v2, -IN-LLR-3:v2,TurnstileIngestion-Low Level Requirements,"Input Thread shall add the delta value received by the UDP to the parkcount and send the updated parkcount to the Output Thread when a valid UDP message is received,and the parkcount range is not exceed.",InputThread,HLR-1:v2, -IN-LLR-3:v2,TurnstileIngestion-Low Level Requirements,"Input Thread shall add the delta value received by the UDP to the parkcount and send the updated parkcount to the Output Thread when a valid UDP message is received,and the parkcount range is not exceed.",InputThread,HLR-2:v2, -OUT-LLR-2:v2,TurnstileIngestion-Low Level Requirements,Output Thread shall broadcast a UDP message on port 62001 with the parkcount every second.,OutputThread,HLR-3:v2, +identifier,dataInsertedBy_identifier,description,governs_identifier,satisfies_identifier,wasGeneratedBy_identifier +EXE-LLR-1,TurnstileIngestion-Low Level Requirements,Executive shall spawn Input Thread on powerup.,ExecutiveThread,, +EXE-LLR-2,TurnstileIngestion-Low Level Requirements,Executive shall spawn Output Thread on powerup.,ExecutiveThread,, +EXE-LLR-3,TurnstileIngestion-Low Level Requirements,Executive shall print asingle '.' character to the console every second when running.,ExecutiveThread,, +IN-LLR-1,TurnstileIngestion-Low Level Requirements,Input Thread shall initialize the park count to 0 on powerup.,InputThread,, +IN-LLR-2:v1,TurnstileIngestion-Low Level Requirements,Input Thread shall check for a incoming UDP message on port 62000.,InputThread,HLR-1:v1, +IN-LLR-2:v1,TurnstileIngestion-Low Level Requirements,Input Thread shall check for a incoming UDP message on port 62000.,InputThread,HLR-2:v1, +IN-LLR-3:v1,TurnstileIngestion-Low Level Requirements,"Input Thread shall add the delta value received by the UDP to the parkcount and send the updated park count to the Output Thread when a valid UDP message is received,and the parkcount range is not exceed.",InputThread,HLR-1:v1, +IN-LLR-3:v1,TurnstileIngestion-Low Level Requirements,"Input Thread shall add the delta value received by the UDP to the parkcount and send the updated park count to the Output Thread when a valid UDP message is received,and the parkcount range is not exceed.",InputThread,HLR-2:v1, +IN-LLR-4,TurnstileIngestion-Low Level Requirements,Input Thread shall limit parkcount to between 0 and 1500.,InputThread,, +IN-LLR-5,TurnstileIngestion-Low Level Requirements,Input Thread shall print 'Invalid Message' to the console when a invalid UDP message is received.,InputThread,, +IN-LLR-6,TurnstileIngestion-Low Level Requirements,"Input Thread shall print 'Limit Exceeded'' to the console whe n a valid UDP message is received,and the parkcount range is exceed.",InputThread,, +OUT-LLR-1,TurnstileIngestion-Low Level Requirements,Output Thread shall initialize the park count to 0 on powerup.,OutputThread,, +OUT-LLR-2:v1,TurnstileIngestion-Low Level Requirements,Output Thread shall broadcast a UDP message on port 62001 with the parkcount every second.,InputThread,HLR-3:v1, +IN-LLR-2:v2,TurnstileIngestion-Low Level Requirements,Input Thread shall check for a nincoming UDP message on port 62000.,InputThread,HLR-1:v2, +IN-LLR-2:v2,TurnstileIngestion-Low Level Requirements,Input Thread shall check for a nincoming UDP message on port 62000.,InputThread,HLR-2:v2, +IN-LLR-3:v2,TurnstileIngestion-Low Level Requirements,"Input Thread shall add the delta value received by the UDP to the parkcount and send the updated parkcount to the Output Thread when a valid UDP message is received,and the parkcount range is not exceed.",InputThread,HLR-1:v2, +IN-LLR-3:v2,TurnstileIngestion-Low Level Requirements,"Input Thread shall add the delta value received by the UDP to the parkcount and send the updated parkcount to the Output Thread when a valid UDP message is received,and the parkcount range is not exceed.",InputThread,HLR-2:v2, +OUT-LLR-2:v2,TurnstileIngestion-Low Level Requirements,Output Thread shall broadcast a UDP message on port 62001 with the parkcount every second.,OutputThread,HLR-3:v2, diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareDesign1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareDesign1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareDesign1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareDesign1.csv index 65b2c167..2afc4a58 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareDesign1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareDesign1.csv @@ -1,3 +1,3 @@ -identifier -LlrDev1 -SwDesign +identifier +LlrDev1 +SwDesign diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareDesign2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareDesign2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareDesign2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareDesign2.csv index 7922e9aa..1e7d1774 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareDesign2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareDesign2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,endedAtTime,referenced_identifier,wasAssociatedWith_identifier -LlrDev1,TurnstileIngestion-Low Level Requirements,2020-07-19 11:48:38,SW-STD:v1,2125895152 -SwDesign,TurnstileIngestion-Low Level Requirements,2020-07-23 09:52:38,SW-STD:v1,2125895152 +identifier,dataInsertedBy_identifier,endedAtTime,referenced_identifier,wasAssociatedWith_identifier +LlrDev1,TurnstileIngestion-Low Level Requirements,2020-07-19 11:48:38,SW-STD:v1,2125895152 +SwDesign,TurnstileIngestion-Low Level Requirements,2020-07-23 09:52:38,SW-STD:v1,2125895152 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareThread1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareThread1.csv similarity index 92% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareThread1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareThread1.csv index 9ce2dcec..9f9b3d3e 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareThread1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareThread1.csv @@ -1,4 +1,4 @@ -identifier -InputThread -OutputThread -ExecutiveThread +identifier +InputThread +OutputThread +ExecutiveThread diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareThread2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareThread2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareThread2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareThread2.csv index c8534d0d..b97aba56 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/turnstile_SoftwareThread2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/GE_SoftwareThread2.csv @@ -1,4 +1,4 @@ -identifier,dataInsertedBy_identifier,partOf_identifier,wasGeneratedBy_identifier -InputThread,TurnstileIngestion-Low Level Requirements,CounterApplication,SysThreadDesign -OutputThread,TurnstileIngestion-Low Level Requirements,CounterApplication,SysThreadDesign -ExecutiveThread,TurnstileIngestion-Low Level Requirements,CounterApplication,SysThreadDesign +identifier,dataInsertedBy_identifier,partOf_identifier,wasGeneratedBy_identifier +InputThread,TurnstileIngestion-Low Level Requirements,CounterApplication,SysThreadDesign +OutputThread,TurnstileIngestion-Low Level Requirements,CounterApplication,SysThreadDesign +ExecutiveThread,TurnstileIngestion-Low Level Requirements,CounterApplication,SysThreadDesign diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/PROV_S_ACTIVITY1.csv similarity index 96% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/PROV_S_ACTIVITY1.csv index c9c327d6..53d6c8de 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/PROV_S_ACTIVITY1.csv @@ -1,2 +1,2 @@ -identifier -TurnstileIngestion-Low Level Requirements +identifier +TurnstileIngestion-Low Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/PROV_S_ACTIVITY2.csv similarity index 71% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/PROV_S_ACTIVITY2.csv index ca0a9937..ad2e2254 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/PROV_S_ACTIVITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime -TurnstileIngestion-Low Level Requirements,TurnstileIngestion-Low Level Requirements,Manual ingestion of Turnstile Low Level Requirements,2022-01-13 09:14:20,TurnstileIngestion-Low Level Requirements, -TurnstileIngestion-Low Level Requirements,TurnstileIngestion-Low Level Requirements,,,,2022-01-13 09:14:20 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-Low Level Requirements,TurnstileIngestion-Low Level Requirements,Manual ingestion of Turnstile Low Level Requirements,2022-07-13 14:33:34,TurnstileIngestion-Low Level Requirements, +TurnstileIngestion-Low Level Requirements,TurnstileIngestion-Low Level Requirements,,,,2022-07-13 14:33:34 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_DEVELOPMENT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_SYSTEM_DEVELOPMENT1.csv similarity index 93% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_DEVELOPMENT1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_SYSTEM_DEVELOPMENT1.csv index c5b3505f..dc562d1b 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_DEVELOPMENT1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_SYSTEM_DEVELOPMENT1.csv @@ -1,2 +1,2 @@ -identifier -SysThreadDesign +identifier +SysThreadDesign diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_DEVELOPMENT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_SYSTEM_DEVELOPMENT2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_DEVELOPMENT2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_SYSTEM_DEVELOPMENT2.csv index 1900c69a..b48c8806 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_DEVELOPMENT2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/SYSTEM_SYSTEM_DEVELOPMENT2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -SysThreadDesign,TurnstileIngestion-Low Level Requirements +identifier,dataInsertedBy_identifier +SysThreadDesign,TurnstileIngestion-Low Level Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/import.yaml index 68ae0dc8..1e8a23da 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileLowLevelRequirements/import.yaml @@ -1,25 +1,25 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT1.csv"} -- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "ORGANIZATION1.csv"} -- {class: "http://arcos.rack/SYSTEM#SYSTEM_DEVELOPMENT", csv: "SYSTEM_DEVELOPMENT1.csv"} -- {class: "http://arcos.turnstile/GE#DataAndControlCouple", csv: "turnstile_DataAndControlCouple1.csv"} -- {class: "http://arcos.turnstile/GE#Engineer", csv: "turnstile_Engineer1.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement1.csv"} -- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "turnstile_LowLevelRequirement1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareDesign", csv: "turnstile_SoftwareDesign1.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareThread", csv: "turnstile_SoftwareThread1.csv"} +- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "AGENTS_ORGANIZATION1.csv"} +- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT_DOCUMENT1.csv"} +- {class: "http://arcos.turnstile/GE#DataAndControlCouple", csv: "GE_DataAndControlCouple1.csv"} +- {class: "http://arcos.turnstile/GE#Engineer", csv: "GE_Engineer1.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement1.csv"} +- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "GE_LowLevelRequirement1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareDesign", csv: "GE_SoftwareDesign1.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareThread", csv: "GE_SoftwareThread1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/SYSTEM#SYSTEM_DEVELOPMENT", csv: "SYSTEM_SYSTEM_DEVELOPMENT1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT2.csv"} -- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "ORGANIZATION2.csv"} -- {class: "http://arcos.rack/SYSTEM#SYSTEM_DEVELOPMENT", csv: "SYSTEM_DEVELOPMENT2.csv"} -- {class: "http://arcos.turnstile/GE#DataAndControlCouple", csv: "turnstile_DataAndControlCouple2.csv"} -- {class: "http://arcos.turnstile/GE#Engineer", csv: "turnstile_Engineer2.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement2.csv"} -- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "turnstile_LowLevelRequirement2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareDesign", csv: "turnstile_SoftwareDesign2.csv"} -- {class: "http://arcos.turnstile/GE#SoftwareThread", csv: "turnstile_SoftwareThread2.csv"} +- {class: "http://arcos.rack/AGENTS#ORGANIZATION", csv: "AGENTS_ORGANIZATION2.csv"} +- {class: "http://arcos.rack/DOCUMENT#DOCUMENT", csv: "DOCUMENT_DOCUMENT2.csv"} +- {class: "http://arcos.turnstile/GE#DataAndControlCouple", csv: "GE_DataAndControlCouple2.csv"} +- {class: "http://arcos.turnstile/GE#Engineer", csv: "GE_Engineer2.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement2.csv"} +- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "GE_LowLevelRequirement2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareDesign", csv: "GE_SoftwareDesign2.csv"} +- {class: "http://arcos.turnstile/GE#SoftwareThread", csv: "GE_SoftwareThread2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/SYSTEM#SYSTEM_DEVELOPMENT", csv: "SYSTEM_SYSTEM_DEVELOPMENT2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS1.csv similarity index 92% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS1.csv index aa8d51f3..0ec7a19a 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS1.csv @@ -1,2 +1,2 @@ -identifier -HLR Analysis +identifier +HLR Analysis diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS2.csv index 4ae64f22..ce74125b 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS2.csv @@ -1,5 +1,5 @@ -identifier,dataInsertedBy_identifier,description,used_identifier -HLR Analysis,TurnstileIngestion-RequirementModel,HLR Analysis performs automated analysis of a modeled requirement in relation to completeness and conflicts., -HLR Analysis,TurnstileIngestion-RequirementModel,,HLR-1-Model -HLR Analysis,TurnstileIngestion-RequirementModel,,HLR-2-Model -HLR Analysis,TurnstileIngestion-RequirementModel,,HLR-3-Model +identifier,dataInsertedBy_identifier,description,used_identifier +HLR Analysis,TurnstileIngestion-RequirementModel,HLR Analysis performs automated analysis of a modeled requirement in relation to completeness and conflicts., +HLR Analysis,TurnstileIngestion-RequirementModel,,HLR-1-Model +HLR Analysis,TurnstileIngestion-RequirementModel,,HLR-2-Model +HLR Analysis,TurnstileIngestion-RequirementModel,,HLR-3-Model diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_OUTPUT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS_OUTPUT1.csv similarity index 95% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_OUTPUT1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS_OUTPUT1.csv index 2c7f1e92..de316fbf 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_OUTPUT1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS_OUTPUT1.csv @@ -1,3 +1,3 @@ -identifier -HLR Analysis-Completeness -HLR Analysis-Conflict +identifier +HLR Analysis-Completeness +HLR Analysis-Conflict diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_OUTPUT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS_OUTPUT2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_OUTPUT2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS_OUTPUT2.csv index 38dc5b68..4898f558 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_OUTPUT2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ANALYSIS_ANALYSIS_OUTPUT2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,wasGeneratedBy_identifier -HLR Analysis-Completeness,TurnstileIngestion-RequirementModel,HLR Analysis -HLR Analysis-Conflict,TurnstileIngestion-RequirementModel,HLR Analysis +identifier,dataInsertedBy_identifier,wasGeneratedBy_identifier +HLR Analysis-Completeness,TurnstileIngestion-RequirementModel,HLR Analysis +HLR Analysis-Conflict,TurnstileIngestion-RequirementModel,HLR Analysis diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/turnstile_HighLevelRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/GE_HighLevelRequirement1.csv similarity index 90% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/turnstile_HighLevelRequirement1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/GE_HighLevelRequirement1.csv index b2022897..fc6f5ac4 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/turnstile_HighLevelRequirement1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/GE_HighLevelRequirement1.csv @@ -1,4 +1,4 @@ -identifier -HLR-1:v1 -HLR-2:v1 -HLR-3:v1 +identifier +HLR-1:v1 +HLR-2:v1 +HLR-3:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/turnstile_HighLevelRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/GE_HighLevelRequirement2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/turnstile_HighLevelRequirement2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/GE_HighLevelRequirement2.csv index 758d2e53..dfe9c815 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/turnstile_HighLevelRequirement2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/GE_HighLevelRequirement2.csv @@ -1,4 +1,4 @@ -identifier,dataInsertedBy_identifier -HLR-1:v1,TurnstileIngestion-RequirementModel -HLR-2:v1,TurnstileIngestion-RequirementModel -HLR-3:v1,TurnstileIngestion-RequirementModel +identifier,dataInsertedBy_identifier +HLR-1:v1,TurnstileIngestion-RequirementModel +HLR-2:v1,TurnstileIngestion-RequirementModel +HLR-3:v1,TurnstileIngestion-RequirementModel diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL_MODEL1.csv similarity index 92% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL_MODEL1.csv index 39b5a4b1..880053cf 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL_MODEL1.csv @@ -1,4 +1,4 @@ -identifier -HLR-1-Model -HLR-2-Model -HLR-3-Model +identifier +HLR-1-Model +HLR-2-Model +HLR-3-Model diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL_MODEL2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL_MODEL2.csv index 190db26d..116571c4 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/MODEL_MODEL2.csv @@ -1,4 +1,4 @@ -identifier,dataInsertedBy_identifier,models_identifier -HLR-1-Model,TurnstileIngestion-RequirementModel,HLR-1:v1 -HLR-2-Model,TurnstileIngestion-RequirementModel,HLR-2:v1 -HLR-3-Model,TurnstileIngestion-RequirementModel,HLR-3:v1 +identifier,dataInsertedBy_identifier,models_identifier +HLR-1-Model,TurnstileIngestion-RequirementModel,HLR-1:v1 +HLR-2-Model,TurnstileIngestion-RequirementModel,HLR-2:v1 +HLR-3-Model,TurnstileIngestion-RequirementModel,HLR-3:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/PROV_S_ACTIVITY1.csv similarity index 95% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/PROV_S_ACTIVITY1.csv index 94ad2cfc..fe766893 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/PROV_S_ACTIVITY1.csv @@ -1,2 +1,2 @@ -identifier -TurnstileIngestion-RequirementModel +identifier +TurnstileIngestion-RequirementModel diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/PROV_S_ACTIVITY2.csv similarity index 58% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/PROV_S_ACTIVITY2.csv index 1e8f1d46..4f97a2a3 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/PROV_S_ACTIVITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime -TurnstileIngestion-RequirementModel,TurnstileIngestion-RequirementModel,Manual ingestion of Turnstile Requirement Model,2022-01-13 09:14:15,TurnstileIngestion-RequirementModel, -TurnstileIngestion-RequirementModel,TurnstileIngestion-RequirementModel,,,,2022-01-13 09:14:15 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-RequirementModel,TurnstileIngestion-RequirementModel,Manual ingestion of Turnstile Requirement Model,2022-07-13 14:33:29,TurnstileIngestion-RequirementModel, +TurnstileIngestion-RequirementModel,TurnstileIngestion-RequirementModel,,,,2022-07-13 14:33:29 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/import.yaml index 73617081..6d3c93f6 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileRequirementModel/import.yaml @@ -1,15 +1,15 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/ANALYSIS#ANALYSIS", csv: "ANALYSIS1.csv"} -- {class: "http://arcos.rack/ANALYSIS#ANALYSIS_OUTPUT", csv: "ANALYSIS_OUTPUT1.csv"} -- {class: "http://arcos.rack/MODEL#MODEL", csv: "MODEL1.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement1.csv"} +- {class: "http://arcos.rack/ANALYSIS#ANALYSIS", csv: "ANALYSIS_ANALYSIS1.csv"} +- {class: "http://arcos.rack/ANALYSIS#ANALYSIS_OUTPUT", csv: "ANALYSIS_ANALYSIS_OUTPUT1.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement1.csv"} +- {class: "http://arcos.rack/MODEL#MODEL", csv: "MODEL_MODEL1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/ANALYSIS#ANALYSIS", csv: "ANALYSIS2.csv"} -- {class: "http://arcos.rack/ANALYSIS#ANALYSIS_OUTPUT", csv: "ANALYSIS_OUTPUT2.csv"} -- {class: "http://arcos.rack/MODEL#MODEL", csv: "MODEL2.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement2.csv"} +- {class: "http://arcos.rack/ANALYSIS#ANALYSIS", csv: "ANALYSIS_ANALYSIS2.csv"} +- {class: "http://arcos.rack/ANALYSIS#ANALYSIS_OUTPUT", csv: "ANALYSIS_ANALYSIS_OUTPUT2.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement2.csv"} +- {class: "http://arcos.rack/MODEL#MODEL", csv: "MODEL_MODEL2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Connection1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Connection1.csv new file mode 100644 index 00000000..efa17f77 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Connection1.csv @@ -0,0 +1,2 @@ +identifier +inflowConn diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Connection2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Connection2.csv new file mode 100644 index 00000000..c0518848 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Connection2.csv @@ -0,0 +1,2 @@ +identifier,dataInsertedBy_identifier,connectionType_identifier,destination_identifier,source_identifier,wasDerivedFrom_identifier +inflowConn,TurnstileIngestion-Security,Untrusted,CounterApplicationCps,InGateCps,inflow diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ConnectionType1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ConnectionType1.csv new file mode 100644 index 00000000..6f1db36b --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ConnectionType1.csv @@ -0,0 +1,2 @@ +identifier +Untrusted diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ConnectionType2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ConnectionType2.csv new file mode 100644 index 00000000..0c868120 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ConnectionType2.csv @@ -0,0 +1,2 @@ +identifier,dataInsertedBy_identifier +Untrusted,TurnstileIngestion-Security diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Cps1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Cps1.csv new file mode 100644 index 00000000..3f2a6772 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Cps1.csv @@ -0,0 +1,6 @@ +identifier +TurnstileCps +InGateCps +OutGateCps +CounterApplicationCps +DisplayCps diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Cps2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Cps2.csv new file mode 100644 index 00000000..4f42b012 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_Cps2.csv @@ -0,0 +1,6 @@ +identifier,dataInsertedBy_identifier,insideTrustedBoundary,wasDerivedFrom_identifier,partOf_identifier +TurnstileCps,TurnstileIngestion-Security,true,Turnstile, +InGateCps,TurnstileIngestion-Security,true,InGate,TurnstileCps +OutGateCps,TurnstileIngestion-Security,true,OutGate,TurnstileCps +CounterApplicationCps,TurnstileIngestion-Security,true,CounterApplication,TurnstileCps +DisplayCps,TurnstileIngestion-Security,true,Display,TurnstileCps diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ImplControl1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ImplControl1.csv new file mode 100644 index 00000000..137950d4 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ImplControl1.csv @@ -0,0 +1,3 @@ +identifier +ic1 +ic2 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ImplControl2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ImplControl2.csv new file mode 100644 index 00000000..86c70982 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/CPS_ImplControl2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,control_identifier,dal +ic1,TurnstileIngestion-Security,IA-3,7 +ic2,TurnstileIngestion-Security,IA-3-1,6 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_HighLevelRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_HighLevelRequirement1.csv new file mode 100644 index 00000000..9554c6f9 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_HighLevelRequirement1.csv @@ -0,0 +1,2 @@ +identifier +HLR-4:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_HighLevelRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_HighLevelRequirement2.csv new file mode 100644 index 00000000..7c4ae12e --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_HighLevelRequirement2.csv @@ -0,0 +1,4 @@ +identifier,dataInsertedBy_identifier,description,governs_identifier,satisfies_identifier +HLR-4:v1,TurnstileIngestion-Security,CounterApplication shall verify that the data received on inflow is from InGate and is uncorrupted.,CounterApplication, +HLR-4:v1,TurnstileIngestion-Security,,,IA-3 +HLR-4:v1,TurnstileIngestion-Security,,,IA-3-1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_LowLevelRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_LowLevelRequirement1.csv new file mode 100644 index 00000000..a6966634 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_LowLevelRequirement1.csv @@ -0,0 +1,3 @@ +identifier +IN-LLR-7 +EXE-LLR-8 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_LowLevelRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_LowLevelRequirement2.csv new file mode 100644 index 00000000..40aff920 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/GE_LowLevelRequirement2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,description,satisfies_identifier +IN-LLR-7,TurnstileIngestion-Security,Input Thread shall validate udp messages via the use of a 256-bit crytographic key,HLR-4:v1 +EXE-LLR-8,TurnstileIngestion-Security,On initialization Executive shall exchange cryptographic keys with the Ingate and outgate via tcp via port 63432.,HLR-4:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/PROV_S_ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/PROV_S_ACTIVITY1.csv new file mode 100644 index 00000000..9b557be0 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/PROV_S_ACTIVITY1.csv @@ -0,0 +1,2 @@ +identifier +TurnstileIngestion-Security diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/PROV_S_ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/PROV_S_ACTIVITY2.csv new file mode 100644 index 00000000..ebbc11c8 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/PROV_S_ACTIVITY2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-Security,TurnstileIngestion-Security,Manual ingestion of Turnstile Security Design,2022-07-13 14:33:34,TurnstileIngestion-Security, +TurnstileIngestion-Security,TurnstileIngestion-Security,,,,2022-07-13 14:33:34 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROL1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROL1.csv new file mode 100644 index 00000000..079356df --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROL1.csv @@ -0,0 +1,3 @@ +identifier +IA-3 +IA-3-1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROL2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROL2.csv new file mode 100644 index 00000000..e03aa39b --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROL2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,description +IA-3,TurnstileIngestion-Security,Device Identification And Authentication - The information system uniquely identifies and authenticates [Assignment: organization-defined specific and/or types of devices] before establishing a [Selection (one or more): local; remote; network] connection.. +IA-3-1,TurnstileIngestion-Security,Cryptographic Bidirectional Authentication - The information system authenticates [Assignment: organization-defined specific devices and/or types of devices] before establishing [Selection (one or more): local; remote; network] connection using bidirectional authentication that is crypto-graphically based.. diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROLSET1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROLSET1.csv new file mode 100644 index 00000000..a12d70c1 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROLSET1.csv @@ -0,0 +1,2 @@ +identifier +DeviceAuthentication diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROLSET2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROLSET2.csv new file mode 100644 index 00000000..06fc3e8d --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_CONTROLSET2.csv @@ -0,0 +1,3 @@ +identifier,dataInsertedBy_identifier,content_identifier,mitigates_identifier +DeviceAuthentication,TurnstileIngestion-Security,IA-3,CAPEC-148 +DeviceAuthentication,TurnstileIngestion-Security,IA-3-1, diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_THREAT1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_THREAT1.csv new file mode 100644 index 00000000..0affedb7 --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_THREAT1.csv @@ -0,0 +1,2 @@ +identifier +CAPEC-148 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_THREAT2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_THREAT2.csv new file mode 100644 index 00000000..bfeca3fc --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/SECURITY_THREAT2.csv @@ -0,0 +1,2 @@ +identifier,dataInsertedBy_identifier,description +CAPEC-148,TurnstileIngestion-Security,Content Spoofing - An adversary modifies content... diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/import.yaml index 6a648621..36ec53be 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSecurity/import.yaml @@ -1,25 +1,25 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/SECURITY#CONTROL", csv: "CONTROL1.csv"} -- {class: "http://arcos.rack/SECURITY#CONTROLSET", csv: "CONTROLSET1.csv"} -- {class: "http://arcos.turnstile/CPS#Connection", csv: "Connection1.csv"} -- {class: "http://arcos.turnstile/CPS#ConnectionType", csv: "ConnectionType1.csv"} -- {class: "http://arcos.turnstile/CPS#Cps", csv: "Cps1.csv"} -- {class: "http://arcos.turnstile/CPS#ImplControl", csv: "ImplControl1.csv"} -- {class: "http://arcos.rack/SECURITY#THREAT", csv: "THREAT1.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement1.csv"} -- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "turnstile_LowLevelRequirement1.csv"} +- {class: "http://arcos.turnstile/CPS#Connection", csv: "CPS_Connection1.csv"} +- {class: "http://arcos.turnstile/CPS#ConnectionType", csv: "CPS_ConnectionType1.csv"} +- {class: "http://arcos.turnstile/CPS#Cps", csv: "CPS_Cps1.csv"} +- {class: "http://arcos.turnstile/CPS#ImplControl", csv: "CPS_ImplControl1.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement1.csv"} +- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "GE_LowLevelRequirement1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/SECURITY#CONTROL", csv: "SECURITY_CONTROL1.csv"} +- {class: "http://arcos.rack/SECURITY#CONTROLSET", csv: "SECURITY_CONTROLSET1.csv"} +- {class: "http://arcos.rack/SECURITY#THREAT", csv: "SECURITY_THREAT1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/SECURITY#CONTROL", csv: "CONTROL2.csv"} -- {class: "http://arcos.rack/SECURITY#CONTROLSET", csv: "CONTROLSET2.csv"} -- {class: "http://arcos.turnstile/CPS#Connection", csv: "Connection2.csv"} -- {class: "http://arcos.turnstile/CPS#ConnectionType", csv: "ConnectionType2.csv"} -- {class: "http://arcos.turnstile/CPS#Cps", csv: "Cps2.csv"} -- {class: "http://arcos.turnstile/CPS#ImplControl", csv: "ImplControl2.csv"} -- {class: "http://arcos.rack/SECURITY#THREAT", csv: "THREAT2.csv"} -- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "turnstile_HighLevelRequirement2.csv"} -- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "turnstile_LowLevelRequirement2.csv"} +- {class: "http://arcos.turnstile/CPS#Connection", csv: "CPS_Connection2.csv"} +- {class: "http://arcos.turnstile/CPS#ConnectionType", csv: "CPS_ConnectionType2.csv"} +- {class: "http://arcos.turnstile/CPS#Cps", csv: "CPS_Cps2.csv"} +- {class: "http://arcos.turnstile/CPS#ImplControl", csv: "CPS_ImplControl2.csv"} +- {class: "http://arcos.turnstile/GE#HighLevelRequirement", csv: "GE_HighLevelRequirement2.csv"} +- {class: "http://arcos.turnstile/GE#LowLevelRequirement", csv: "GE_LowLevelRequirement2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/SECURITY#CONTROL", csv: "SECURITY_CONTROL2.csv"} +- {class: "http://arcos.rack/SECURITY#CONTROLSET", csv: "SECURITY_CONTROLSET2.csv"} +- {class: "http://arcos.rack/SECURITY#THREAT", csv: "SECURITY_THREAT2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemComponent1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemComponent1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemComponent1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemComponent1.csv index 83de1d56..9c9fec02 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemComponent1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemComponent1.csv @@ -1,5 +1,5 @@ -identifier -InGate -OutGate -CounterApplication -Display +identifier +InGate +OutGate +CounterApplication +Display diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemComponent2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemComponent2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemComponent2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemComponent2.csv index 339e22e4..a4d8686d 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemComponent2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemComponent2.csv @@ -1,5 +1,5 @@ -identifier,dataInsertedBy_identifier,partOf_identifier -InGate,TurnstileIngestion-SystemDesign,Turnstile -OutGate,TurnstileIngestion-SystemDesign,Turnstile -CounterApplication,TurnstileIngestion-SystemDesign,Turnstile -Display,TurnstileIngestion-SystemDesign,Turnstile +identifier,dataInsertedBy_identifier,partOf_identifier +InGate,TurnstileIngestion-SystemDesign,Turnstile +OutGate,TurnstileIngestion-SystemDesign,Turnstile +CounterApplication,TurnstileIngestion-SystemDesign,Turnstile +Display,TurnstileIngestion-SystemDesign,Turnstile diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemInterfaceDefinition1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemInterfaceDefinition1.csv similarity index 89% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemInterfaceDefinition1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemInterfaceDefinition1.csv index 457b29cd..8553d0c8 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemInterfaceDefinition1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemInterfaceDefinition1.csv @@ -1,4 +1,4 @@ -identifier -inflow -outflow -census +identifier +inflow +outflow +census diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemInterfaceDefinition2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemInterfaceDefinition2.csv similarity index 98% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemInterfaceDefinition2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemInterfaceDefinition2.csv index c89ad5fa..c68d6fa6 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/turnstile_SystemInterfaceDefinition2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/GE_SystemInterfaceDefinition2.csv @@ -1,5 +1,5 @@ -identifier,dataInsertedBy_identifier,destination_identifier,source_identifier -inflow,TurnstileIngestion-SystemDesign,CounterApplication,InGate -outflow,TurnstileIngestion-SystemDesign,CounterApplication,OutGate -census,TurnstileIngestion-SystemDesign,Display,CounterApplication -census,TurnstileIngestion-SystemDesign,InGate, +identifier,dataInsertedBy_identifier,destination_identifier,source_identifier +inflow,TurnstileIngestion-SystemDesign,CounterApplication,InGate +outflow,TurnstileIngestion-SystemDesign,CounterApplication,OutGate +census,TurnstileIngestion-SystemDesign,Display,CounterApplication +census,TurnstileIngestion-SystemDesign,InGate, diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/PROV_S_ACTIVITY1.csv similarity index 95% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/PROV_S_ACTIVITY1.csv index 8d833f1a..6005e67d 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/PROV_S_ACTIVITY1.csv @@ -1,2 +1,2 @@ -identifier -TurnstileIngestion-SystemDesign +identifier +TurnstileIngestion-SystemDesign diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/PROV_S_ACTIVITY2.csv similarity index 72% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/PROV_S_ACTIVITY2.csv index 02f7f685..e5474d5d 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/PROV_S_ACTIVITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime -TurnstileIngestion-SystemDesign,TurnstileIngestion-SystemDesign,Manual ingestion of Turnstile System Design,2022-01-13 09:14:20,TurnstileIngestion-SystemDesign, -TurnstileIngestion-SystemDesign,TurnstileIngestion-SystemDesign,,,,2022-01-13 09:14:20 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-SystemDesign,TurnstileIngestion-SystemDesign,Manual ingestion of Turnstile System Design,2022-07-13 14:33:35,TurnstileIngestion-SystemDesign, +TurnstileIngestion-SystemDesign,TurnstileIngestion-SystemDesign,,,,2022-07-13 14:33:35 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM_SYSTEM1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM_SYSTEM1.csv index a7f35b57..6286ae83 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM_SYSTEM1.csv @@ -1,2 +1,2 @@ -identifier -Turnstile +identifier +Turnstile diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM_SYSTEM2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM_SYSTEM2.csv index 4489b8fe..05bf9c96 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/SYSTEM_SYSTEM2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier -Turnstile,TurnstileIngestion-SystemDesign +identifier,dataInsertedBy_identifier +Turnstile,TurnstileIngestion-SystemDesign diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/import.yaml index 106ced3e..c21197b3 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemDesign/import.yaml @@ -1,13 +1,13 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM1.csv"} -- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "turnstile_SystemComponent1.csv"} -- {class: "http://arcos.turnstile/GE#SystemInterfaceDefinition", csv: "turnstile_SystemInterfaceDefinition1.csv"} +- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "GE_SystemComponent1.csv"} +- {class: "http://arcos.turnstile/GE#SystemInterfaceDefinition", csv: "GE_SystemInterfaceDefinition1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM_SYSTEM1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM2.csv"} -- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "turnstile_SystemComponent2.csv"} -- {class: "http://arcos.turnstile/GE#SystemInterfaceDefinition", csv: "turnstile_SystemInterfaceDefinition2.csv"} +- {class: "http://arcos.turnstile/GE#SystemComponent", csv: "GE_SystemComponent2.csv"} +- {class: "http://arcos.turnstile/GE#SystemInterfaceDefinition", csv: "GE_SystemInterfaceDefinition2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM_SYSTEM2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/.DS_Store b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/.DS_Store differ diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE_FILE1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE_FILE1.csv index 8ead16e3..e85c9656 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE_FILE1.csv @@ -1,2 +1,2 @@ -identifier -SYS Doc:v1 +identifier +SYS Doc:v1 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE_FILE2.csv similarity index 99% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE_FILE2.csv index 16e4d03c..de53c2cf 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/FILE_FILE2.csv @@ -1,2 +1,2 @@ -identifier,dataInsertedBy_identifier,entityURL -SYS Doc:v1,TurnstileIngestion-System Requirements,https://github.com/ge-high-assurance/RACK/blob/master/Turnstile-Example/RequirementsDocument/Sys_Req.txt +identifier,dataInsertedBy_identifier,entityURL +SYS Doc:v1,TurnstileIngestion-System Requirements,https://github.com/ge-high-assurance/RACK/blob/master/Turnstile-Example/RequirementsDocument/Sys_Req.txt diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/turnstile_SystemRequirement1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/GE_SystemRequirement1.csv similarity index 87% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/turnstile_SystemRequirement1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/GE_SystemRequirement1.csv index c27f0685..622e52ba 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/turnstile_SystemRequirement1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/GE_SystemRequirement1.csv @@ -1,4 +1,4 @@ -identifier -Sys-1 -Sys-2 -Sys-3 +identifier +Sys-1 +Sys-2 +Sys-3 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/turnstile_SystemRequirement2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/GE_SystemRequirement2.csv similarity index 67% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/turnstile_SystemRequirement2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/GE_SystemRequirement2.csv index 83e59ffd..b0e27b03 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/turnstile_SystemRequirement2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/GE_SystemRequirement2.csv @@ -1,4 +1,4 @@ -identifier,dataInsertedBy_identifier,definedIn_identifier,description,governs_identifier -Sys-1,TurnstileIngestion-System Requirements,SYS Doc:v1,Turnstile system shall trackthe number of people that travel through the in gate.,Turnstile -Sys-2,TurnstileIngestion-System Requirements,SYS Doc:v1,Turnstile system shall track the number of people that travel through the out gate.,Turnstile -Sys-3,TurnstileIngestion-System Requirements,SYS Doc:v1,Turnstile system shall track the number of people that arecurrently in the park.,Turnstile +identifier,dataInsertedBy_identifier,definedIn_identifier,description,governs_identifier +Sys-1,TurnstileIngestion-System Requirements,SYS Doc:v1,Turnstile system shall track the number of people that travel through the in gate.,Turnstile +Sys-2,TurnstileIngestion-System Requirements,SYS Doc:v1,Turnstile system shall track the number of people that travel through the out gate.,Turnstile +Sys-3,TurnstileIngestion-System Requirements,SYS Doc:v1,Turnstile system shall track the number of people that arecurrently in the park.,Turnstile diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/ACTIVITY1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/PROV_S_ACTIVITY1.csv similarity index 96% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/ACTIVITY1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/PROV_S_ACTIVITY1.csv index 6e5969ee..378519f3 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/ACTIVITY1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/PROV_S_ACTIVITY1.csv @@ -1,2 +1,2 @@ -identifier -TurnstileIngestion-System Requirements +identifier +TurnstileIngestion-System Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/ACTIVITY2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/PROV_S_ACTIVITY2.csv similarity index 73% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/ACTIVITY2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/PROV_S_ACTIVITY2.csv index 9e12db20..1d793687 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/ACTIVITY2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/PROV_S_ACTIVITY2.csv @@ -1,3 +1,3 @@ -identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime -TurnstileIngestion-System Requirements,TurnstileIngestion-System Requirements,Ingestion of Turnstile System Requirements using Scraping Tool Kit,2022-01-13 09:14:20,TurnstileIngestion-System Requirements, -TurnstileIngestion-System Requirements,TurnstileIngestion-System Requirements,,,,2022-01-13 09:14:20 +identifier,dataInsertedBy_identifier,description,startedAtTime,title,endedAtTime +TurnstileIngestion-System Requirements,TurnstileIngestion-System Requirements,Ingestion of Turnstile System Requirements using Scraping Tool Kit,2022-07-13 14:33:33,TurnstileIngestion-System Requirements, +TurnstileIngestion-System Requirements,TurnstileIngestion-System Requirements,,,,2022-07-13 14:33:33 diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM1.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM_SYSTEM1.csv similarity index 91% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM1.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM_SYSTEM1.csv index a7f35b57..6286ae83 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM1.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM_SYSTEM1.csv @@ -1,2 +1,2 @@ -identifier -Turnstile +identifier +Turnstile diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM2.csv b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM_SYSTEM2.csv similarity index 97% rename from Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM2.csv rename to Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM_SYSTEM2.csv index b4537e40..13db8230 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM2.csv +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/SYSTEM_SYSTEM2.csv @@ -1,4 +1,4 @@ -identifier,dataInsertedBy_identifier -Turnstile,TurnstileIngestion-System Requirements -Turnstile,TurnstileIngestion-System Requirements -Turnstile,TurnstileIngestion-System Requirements +identifier,dataInsertedBy_identifier +Turnstile,TurnstileIngestion-System Requirements +Turnstile,TurnstileIngestion-System Requirements +Turnstile,TurnstileIngestion-System Requirements diff --git a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/import.yaml b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/import.yaml index 015bbb35..62e4bbd7 100644 --- a/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/import.yaml +++ b/Turnstile-Example/Turnstile-IngestionPackage/TurnstileSystemRequirements/import.yaml @@ -1,13 +1,13 @@ data-graph: "http://rack001/turnstiledata" ingestion-steps: #Phase1: Identifiers Only -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY1.csv"} -- {class: "http://arcos.rack/FILE#FILE", csv: "FILE1.csv"} -- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM1.csv"} -- {class: "http://arcos.turnstile/GE#SystemRequirement", csv: "turnstile_SystemRequirement1.csv"} +- {class: "http://arcos.rack/FILE#FILE", csv: "FILE_FILE1.csv"} +- {class: "http://arcos.turnstile/GE#SystemRequirement", csv: "GE_SystemRequirement1.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY1.csv"} +- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM_SYSTEM1.csv"} #Phase2: All Evidence -- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "ACTIVITY2.csv"} -- {class: "http://arcos.rack/FILE#FILE", csv: "FILE2.csv"} -- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM2.csv"} -- {class: "http://arcos.turnstile/GE#SystemRequirement", csv: "turnstile_SystemRequirement2.csv"} +- {class: "http://arcos.rack/FILE#FILE", csv: "FILE_FILE2.csv"} +- {class: "http://arcos.turnstile/GE#SystemRequirement", csv: "GE_SystemRequirement2.csv"} +- {class: "http://arcos.rack/PROV-S#ACTIVITY", csv: "PROV_S_ACTIVITY2.csv"} +- {class: "http://arcos.rack/SYSTEM#SYSTEM", csv: "SYSTEM_SYSTEM2.csv"} diff --git a/Turnstile-Example/Turnstile-IngestionPackage/manifest.yaml b/Turnstile-Example/Turnstile-IngestionPackage/manifest.yaml new file mode 100644 index 00000000..f4a08b3c --- /dev/null +++ b/Turnstile-Example/Turnstile-IngestionPackage/manifest.yaml @@ -0,0 +1,28 @@ +name: "Turnstile" + +footprint: + model-graphs: + - http://rack001/model + data-graphs: + - http://rack001/turnstiledata + - http://rack001/do-178c + +steps: + - manifest: ../../manifests/turnstile.yaml + - data: CounterApplicationUnitTesting/OwlModels/import.yaml + - data: TurnstileDevelopmentPlanData/import.yaml + - data: PlanningDocuments/import.yaml + - data: HazardAssessment/import.yaml + - data: TurnstileSystemDesign/import.yaml + - data: TurnstileSystemRequirements/import.yaml + - data: TurnstileHighLevelRequirements/import.yaml + - data: TurnstileLowLevelRequirements/import.yaml + - data: TurnstileRequirementModel/import.yaml + - data: CounterApplicationReviews/import.yaml + - data: CounterApplicationTesting/import.yaml + - data: TurnstileSystemSpec/import.yaml + - data: CounterApplicationRequirementSpec/import.yaml + - data: CounterApplicationSoftwareDes/import.yaml + - data: SystemVerificationReport/import.yaml + - data: Objectives/import.yaml + - data: TurnstileBaselines/import.yaml diff --git a/Turnstile-Example/TurnstileDataCreation_CounterApplicationReviews.py b/Turnstile-Example/TurnstileDataCreation_CounterApplicationReviews.py index 69384169..92240f0f 100755 --- a/Turnstile-Example/TurnstileDataCreation_CounterApplicationReviews.py +++ b/Turnstile-Example/TurnstileDataCreation_CounterApplicationReviews.py @@ -11,10 +11,9 @@ # material are those of the author(s) and do not necessarily reflect the views # of the Defense Advanced Research Projects Agency (DARPA). -import XML -import XML.SysML as SysML -from Evidence import createEvidenceFile, createCDR -import Evidence.Add as Add +from Logging import * +from Evidence import * +import Evidence.Add as Add import shutil import os.path @@ -30,224 +29,224 @@ def CreateCdrs(): # HLR Review 1 ####################################################################### #-------------------------- - Add.turnstile_Engineer(identifier="259863025", + Add.GE.Engineer(identifier="259863025", title = "Public, John", emailAddress = "john.public@ge.com", employedBy_identifier = "General_Electric") - Add.ORGANIZATION(identifier = "General_Electric") + Add.AGENTS.ORGANIZATION(identifier = "General_Electric") #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview", author_identifier = "125569538", reviewer_identifier = "259863025", governedBy_identifier = "RQ-STD:v1") - Add.DOCUMENT(identifier = "RQ-STD:v1") + Add.DOCUMENT.DOCUMENT(identifier = "RQ-STD:v1") #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview", reviewed_identifier = "HLR-1:v1") - Add.turnstile_HighLevelRequirement(identifier = "HLR-1:v1") + Add.GE.HighLevelRequirement(identifier = "HLR-1:v1") #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview", reviewed_identifier = "HLR-2:v1") - Add.turnstile_HighLevelRequirement(identifier = "HLR-2:v1") + Add.GE.HighLevelRequirement(identifier = "HLR-2:v1") #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview", reviewed_identifier = "HLR-3:v1") - Add.turnstile_HighLevelRequirement(identifier = "HLR-3:v1") + Add.GE.HighLevelRequirement(identifier = "HLR-3:v1") #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview", reviewed_identifier = "inflowEvent") - Add.turnstile_DataDictionary(identifier = "inflowEvent") + Add.GE.DataDictionary(identifier = "inflowEvent") #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview", reviewed_identifier = "outflowEvent") - Add.turnstile_DataDictionary(identifier = "outflowEvent") + Add.GE.DataDictionary(identifier = "outflowEvent") #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview", reviewed_identifier = "counter") - Add.turnstile_DataDictionary(identifier = "counter") + Add.GE.DataDictionary(identifier = "counter") #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview", reviewed_identifier = "display") - Add.turnstile_DataDictionary(identifier = "display") + Add.GE.DataDictionary(identifier = "display") #-------------------------- - Add.turnstile_SoftwareRequirementReviewArtifacts(identifier="HlrReviewLog-1", + Add.GE.SoftwareRequirementReviewArtifacts(identifier="HlrReviewLog-1", reviews_identifier = "HLR-1:v1", reviewResult_identifier = "Revise With Review", wasGeneratedBy_identifier = "HlrReview") - Add.turnstile_HighLevelRequirement(identifier = "HLR-1:v1") + Add.GE.HighLevelRequirement(identifier = "HLR-1:v1") #-------------------------- - Add.turnstile_SoftwareRequirementReviewArtifacts(identifier="HlrReviewLog-2", + Add.GE.SoftwareRequirementReviewArtifacts(identifier="HlrReviewLog-2", reviews_identifier = "HLR-2:v1", reviewResult_identifier = "Revise With Review", wasGeneratedBy_identifier = "HlrReview") - Add.turnstile_HighLevelRequirement(identifier = "HLR-2:v1") + Add.GE.HighLevelRequirement(identifier = "HLR-2:v1") #-------------------------- - Add.turnstile_SoftwareRequirementReviewArtifacts(identifier="HlrReviewLog-3", + Add.GE.SoftwareRequirementReviewArtifacts(identifier="HlrReviewLog-3", reviews_identifier = "HLR-3:v1", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "HlrReview") - Add.turnstile_HighLevelRequirement(identifier = "HLR-3:v1") + Add.GE.HighLevelRequirement(identifier = "HLR-3:v1") ####################################################################### # HLR Review 2 ####################################################################### #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview-2", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview-2", author_identifier = "125569538", reviewer_identifier = "259863025", governedBy_identifier = "RQ-STD:v1") - Add.DOCUMENT(identifier = "RQ-STD:v1") + Add.DOCUMENT.DOCUMENT(identifier = "RQ-STD:v1") #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview-2", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview-2", reviewed_identifier = "HLR-1:v2") - Add.turnstile_HighLevelRequirement(identifier = "HLR-1:v2") + Add.GE.HighLevelRequirement(identifier = "HLR-1:v2") #-------------------------- - Add.turnstile_SoftwareRequirementReviewArtifacts(identifier="HlrReviewLog-4", + Add.GE.SoftwareRequirementReviewArtifacts(identifier="HlrReviewLog-4", reviews_identifier = "HLR-1:v2", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "HlrReview-2") - Add.turnstile_HighLevelRequirement(identifier = "HLR-1:v2") + Add.GE.HighLevelRequirement(identifier = "HLR-1:v2") #-------------------------- - Add.turnstile_SoftwareRequirementsReview(identifier="HlrReview-2", + Add.GE.SoftwareRequirementsReview(identifier="HlrReview-2", reviewed_identifier = "HLR-2:v2") - Add.turnstile_HighLevelRequirement(identifier = "HLR-2:v2") + Add.GE.HighLevelRequirement(identifier = "HLR-2:v2") #-------------------------- - Add.turnstile_SoftwareRequirementReviewArtifacts(identifier="HlrReviewLog-5", + Add.GE.SoftwareRequirementReviewArtifacts(identifier="HlrReviewLog-5", reviews_identifier = "HLR-2:v2", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "HlrReview-2") - Add.turnstile_HighLevelRequirement(identifier = "HLR-1:v2") + Add.GE.HighLevelRequirement(identifier = "HLR-1:v2") ####################################################################### # LLR Review 1 ####################################################################### #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview1", + Add.GE.SoftwareDesignReview(identifier="LlrReview1", reviewed_identifier = "IN-LLR-1") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-1") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-1") #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview1", + Add.GE.SoftwareDesignReview(identifier="LlrReview1", reviewed_identifier = "IN-LLR-2:v2") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-2:v2") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-2:v2") #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview1", + Add.GE.SoftwareDesignReview(identifier="LlrReview1", reviewed_identifier = "IN-LLR-3:v2") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-3:v2") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-3:v2") #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview1", + Add.GE.SoftwareDesignReview(identifier="LlrReview1", reviewed_identifier = "IN-LLR-4") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-4") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-4") #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview1", + Add.GE.SoftwareDesignReview(identifier="LlrReview1", reviewed_identifier = "IN-LLR-5") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-5") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-5") #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview1", + Add.GE.SoftwareDesignReview(identifier="LlrReview1", reviewed_identifier = "IN-LLR-6") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-6") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-6") #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview1", + Add.GE.SoftwareDesignReview(identifier="LlrReview1", author_identifier = "2125895152", reviewer_identifier = "259863025", governedBy_identifier = "SW-STD:v1") - Add.DOCUMENT(identifier = "SW-STD:v1") + Add.DOCUMENT.DOCUMENT(identifier = "SW-STD:v1") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-1", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-1", reviews_identifier = "IN-LLR-1", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview1") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-1") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-1") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-2", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-2", reviews_identifier = "IN-LLR-2:v2", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview1") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-2:v2") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-2:v2") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-3", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-3", reviews_identifier = "IN-LLR-3:v2", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview1") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-3:v2") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-3:v2") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-4", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-4", reviews_identifier = "IN-LLR-4", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview1") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-4") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-4") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-5", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-5", reviews_identifier = "IN-LLR-5", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview1") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-5") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-5") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-6", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview1Log-6", reviews_identifier = "IN-LLR-6", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview1") - Add.turnstile_LowLevelRequirement(identifier = "IN-LLR-6") + Add.GE.LowLevelRequirement(identifier = "IN-LLR-6") #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview2", + Add.GE.SoftwareDesignReview(identifier="LlrReview2", reviewed_identifier = "OUT-LLR-1") - Add.turnstile_LowLevelRequirement(identifier = "OUT-LLR-1") + Add.GE.LowLevelRequirement(identifier = "OUT-LLR-1") #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview2", + Add.GE.SoftwareDesignReview(identifier="LlrReview2", reviewed_identifier = "OUT-LLR-2:v2") - Add.turnstile_LowLevelRequirement(identifier = "OUT-LLR-2:v2") + Add.GE.LowLevelRequirement(identifier = "OUT-LLR-2:v2") #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview2", + Add.GE.SoftwareDesignReview(identifier="LlrReview2", author_identifier = "2125895152", reviewer_identifier = "259863025", governedBy_identifier = "SW-STD:v1") - Add.DOCUMENT(identifier = "SW-STD:v1") + Add.DOCUMENT.DOCUMENT(identifier = "SW-STD:v1") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview2Log-1", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview2Log-1", reviews_identifier = "OUT-LLR-1", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview2") - Add.turnstile_LowLevelRequirement(identifier = "OUT-LLR-1") + Add.GE.LowLevelRequirement(identifier = "OUT-LLR-1") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview2Log-2", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview2Log-2", reviews_identifier = "OUT-LLR-2:v2", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview2") - Add.turnstile_LowLevelRequirement(identifier = "OUT-LLR-2:v2") + Add.GE.LowLevelRequirement(identifier = "OUT-LLR-2:v2") #-------------------------- - Add.turnstile_SoftwareDesignReview(identifier="LlrReview3", + Add.GE.SoftwareDesignReview(identifier="LlrReview3", reviewed_identifier = "EXE-LLR-1") - Add.turnstile_LowLevelRequirement(identifier = "EXE-LLR-1") - Add.turnstile_SoftwareDesignReview(identifier="LlrReview3", + Add.GE.LowLevelRequirement(identifier = "EXE-LLR-1") + Add.GE.SoftwareDesignReview(identifier="LlrReview3", reviewed_identifier = "EXE-LLR-2") - Add.turnstile_LowLevelRequirement(identifier = "EXE-LLR-2") - Add.turnstile_SoftwareDesignReview(identifier="LlrReview3", + Add.GE.LowLevelRequirement(identifier = "EXE-LLR-2") + Add.GE.SoftwareDesignReview(identifier="LlrReview3", reviewed_identifier = "EXE-LLR-3") - Add.turnstile_LowLevelRequirement(identifier = "EXE-LLR-3") - Add.turnstile_SoftwareDesignReview(identifier="LlrReview3", + Add.GE.LowLevelRequirement(identifier = "EXE-LLR-3") + Add.GE.SoftwareDesignReview(identifier="LlrReview3", author_identifier = "2125895152", reviewer_identifier = "259863025", governedBy_identifier = "SW-STD:v1") - Add.DOCUMENT(identifier = "SW-STD:v1") + Add.DOCUMENT.DOCUMENT(identifier = "SW-STD:v1") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview3Log-1", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview3Log-1", reviews_identifier = "EXE-LLR-1", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview3") - Add.turnstile_LowLevelRequirement(identifier = "EXE-LLR-1") + Add.GE.LowLevelRequirement(identifier = "EXE-LLR-1") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview3Log-2", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview3Log-2", reviews_identifier = "EXE-LLR-2", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview3") - Add.turnstile_LowLevelRequirement(identifier = "EXE-LLR-2") + Add.GE.LowLevelRequirement(identifier = "EXE-LLR-2") #-------------------------- - Add.turnstile_SoftwareDesignReviewArtifacts(identifier="LlrReview3Log-3", + Add.GE.SoftwareDesignReviewArtifacts(identifier="LlrReview3Log-3", reviews_identifier = "EXE-LLR-3", reviewResult_identifier = "Passed", wasGeneratedBy_identifier = "LlrReview3") - Add.turnstile_LowLevelRequirement(identifier = "EXE-LLR-3") + Add.GE.LowLevelRequirement(identifier = "EXE-LLR-3") createCDR("http://rack001/turnstiledata") diff --git a/Turnstile-Example/TurnstileDataCreation_CounterApplicationTesting.py b/Turnstile-Example/TurnstileDataCreation_CounterApplicationTesting.py index c2567ad9..efc7c389 100755 --- a/Turnstile-Example/TurnstileDataCreation_CounterApplicationTesting.py +++ b/Turnstile-Example/TurnstileDataCreation_CounterApplicationTesting.py @@ -24,105 +24,105 @@ def CreateCdrs(): createEvidenceFile(ingestionTitle="TurnstileIngestion-Testing", ingestionDescription="Manual ingestion of Counter Application Testing") - Add.TOOL(identifier="ASSERT", toolVersion = "V4.2.3", actedOnBehalfOf_identifier="General_Electric") - Add.ORGANIZATION(identifier="General_Electric") + Add.AGENTS.TOOL(identifier="ASSERT", toolVersion = "V4.2.3", actedOnBehalfOf_identifier="General_Electric") + Add.AGENTS.ORGANIZATION(identifier="General_Electric") #------------ CompTestDevelopment ------------ - Add.turnstile_DevelopComponentTests(identifier="CompTestDevelopment", + Add.GE.DevelopComponentTests(identifier="CompTestDevelopment", endedAtTime = "2020-07-26 10:53:38", wasAssociatedWith_identifier = "ASSERT", used_identifier = "VER-STD:v1") - Add.turnstile_DevelopComponentTests(identifier="CompTestDevelopment", + Add.GE.DevelopComponentTests(identifier="CompTestDevelopment", used_identifier = "ATCG-Config-File") - Add.turnstile_DevelopComponentTests(identifier="CompTestDevelopment", + Add.GE.DevelopComponentTests(identifier="CompTestDevelopment", used_identifier = "HLR-1-Model") - Add.DOCUMENT(identifier = "VER-STD:v1") - Add.FILE(identifier = "ATCG-Config-File", fileFormat_identifier = "XML") - Add.FORMAT(identifier ="XML") - Add.ENTITY(identifier = "IncludeBVA", definedIn_identifier = "ATCG-Config-File", description="Flag Indicating to include Boundary Value Analysis in testcase generation.") - Add.ENTITY(identifier = "IncludeLCA", definedIn_identifier = "ATCG-Config-File", description="Flag Indicating to include Logic Condition Analysis in testcase generation.") + Add.DOCUMENT.DOCUMENT(identifier = "VER-STD:v1") + Add.FILE.FILE(identifier = "ATCG-Config-File", fileFormat_identifier = "XML") + Add.FILE.FORMAT(identifier ="XML") + Add.PROV_S.ENTITY(identifier = "IncludeBVA", definedIn_identifier = "ATCG-Config-File", description="Flag Indicating to include Boundary Value Analysis in testcase generation.") + Add.PROV_S.ENTITY(identifier = "IncludeLCA", definedIn_identifier = "ATCG-Config-File", description="Flag Indicating to include Logic Condition Analysis in testcase generation.") #------------ TC-1-1 ------------ - Add.turnstile_SoftwareComponentTest(identifier="TC-1-1", + Add.GE.SoftwareComponentTest(identifier="TC-1-1", verifies_identifier = "HLR-1:v1", wasGeneratedBy_identifier = "CompTestDevelopment") - Add.turnstile_HighLevelRequirement(identifier="HLR-1:v1") + Add.GE.HighLevelRequirement(identifier="HLR-1:v1") #------------ TC-1-2 ------------ - Add.turnstile_SoftwareComponentTest(identifier="TC-1-2", + Add.GE.SoftwareComponentTest(identifier="TC-1-2", verifies_identifier = "HLR-1:v1", wasGeneratedBy_identifier = "CompTestDevelopment") - Add.turnstile_HighLevelRequirement(identifier="HLR-1:v1") + Add.GE.HighLevelRequirement(identifier="HLR-1:v1") #------------ TC-1-3 ------------ - Add.turnstile_SoftwareComponentTest(identifier="TC-1-3", + Add.GE.SoftwareComponentTest(identifier="TC-1-3", verifies_identifier = "HLR-1:v1", wasGeneratedBy_identifier = "CompTestDevelopment") - Add.turnstile_HighLevelRequirement(identifier="HLR-1:v1") + Add.GE.HighLevelRequirement(identifier="HLR-1:v1") #------------ TC-1-4 ------------ - Add.turnstile_SoftwareComponentTest(identifier="TC-1-4", + Add.GE.SoftwareComponentTest(identifier="TC-1-4", verifies_identifier = "HLR-1:v1", wasGeneratedBy_identifier = "CompTestDevelopment") - Add.turnstile_HighLevelRequirement(identifier="HLR-1:v1") + Add.GE.HighLevelRequirement(identifier="HLR-1:v1") #------------ TR-1-1-1 ------------ - Add.turnstile_SoftwareComponentTestResult(identifier="TR-1-1-1", + Add.GE.SoftwareComponentTestResult(identifier="TR-1-1-1", confirms_identifier = "TC-1-1", result_identifier = "Passed", wasGeneratedBy_identifier = "TestRun1") #------------ TR-1-2-1 ------------ - Add.turnstile_SoftwareComponentTestResult(identifier="TR-1-2-1", + Add.GE.SoftwareComponentTestResult(identifier="TR-1-2-1", confirms_identifier = "TC-1-2", result_identifier = "Passed", wasGeneratedBy_identifier = "TestRun1") #------------ TR-1-3-1 ------------ - Add.turnstile_SoftwareComponentTestResult(identifier="TR-1-3-1", + Add.GE.SoftwareComponentTestResult(identifier="TR-1-3-1", confirms_identifier = "TC-1-3", result_identifier = "Passed", wasGeneratedBy_identifier = "TestRun1") #------------ TR-1-4-1 ------------ - Add.turnstile_SoftwareComponentTestResult(identifier="TR-1-4-1", + Add.GE.SoftwareComponentTestResult(identifier="TR-1-4-1", confirms_identifier = "TC-1-4", result_identifier = "Failed", wasGeneratedBy_identifier = "TestRun1") #------------ TargetHardware ------------ - Add.AGENT(identifier="TargetHardware") + Add.PROV_S.AGENT(identifier="TargetHardware") #------------ TestRun1 ------------ - Add.turnstile_SoftwareComponentTestExecution(identifier="TestRun1", + Add.GE.SoftwareComponentTestExecution(identifier="TestRun1", endedAtTime = "2020-07-28 11:53:38", wasAssociatedWith_identifier = "TargetHardware") #------------ TR-1-1-2 ------------ - Add.turnstile_SoftwareComponentTestResult(identifier="TR-1-1-2", + Add.GE.SoftwareComponentTestResult(identifier="TR-1-1-2", confirms_identifier = "TC-1-1", result_identifier = "Passed", wasGeneratedBy_identifier = "TestRun2") #------------ TR-1-2-2 ------------ - Add.turnstile_SoftwareComponentTestResult(identifier="TR-1-2-2", + Add.GE.SoftwareComponentTestResult(identifier="TR-1-2-2", confirms_identifier = "TC-1-2", result_identifier = "Passed", wasGeneratedBy_identifier = "TestRun2") #------------ TR-1-3-2 ------------ - Add.turnstile_SoftwareComponentTestResult(identifier="TR-1-3-2", + Add.GE.SoftwareComponentTestResult(identifier="TR-1-3-2", confirms_identifier = "TC-1-3", result_identifier = "Passed", wasGeneratedBy_identifier = "TestRun2") #------------ TR-1-4-2 ------------ - Add.turnstile_SoftwareComponentTestResult(identifier="TR-1-4-2", + Add.GE.SoftwareComponentTestResult(identifier="TR-1-4-2", confirms_identifier = "TC-1-4", result_identifier = "Failed", wasGeneratedBy_identifier = "TestRun2") #------------ TestRun2 ------------ - Add.turnstile_SoftwareComponentTestExecution(identifier="TestRun2", + Add.GE.SoftwareComponentTestExecution(identifier="TestRun2", endedAtTime = "2020-07-30 11:02:38", wasAssociatedWith_identifier = "TargetHardware") diff --git a/Turnstile-Example/TurnstileDataCreation_DevelopmentPlanData.py b/Turnstile-Example/TurnstileDataCreation_DevelopmentPlanData.py index ea3d2ac1..a02b2971 100755 --- a/Turnstile-Example/TurnstileDataCreation_DevelopmentPlanData.py +++ b/Turnstile-Example/TurnstileDataCreation_DevelopmentPlanData.py @@ -27,30 +27,30 @@ def CreateCdrs(): ################################################ # Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.01-SystemOverview.Turnstile ################################################ - Add.SYSTEM(identifier="Turnstile") + Add.SYSTEM.SYSTEM(identifier="Turnstile") ################################################ # Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.01-SystemOverview.CounterApplication ################################################ - Add.turnstile_SystemComponent(identifier="CounterApplication", + Add.GE.SystemComponent(identifier="CounterApplication", partOf_identifier="Turnstile") ################################################ # Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.01-SystemOverview.Display ################################################ - Add.turnstile_SystemComponent(identifier="Display", + Add.GE.SystemComponent(identifier="Display", partOf_identifier="Turnstile") ################################################ # Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.01-SystemOverview.InGate ################################################ - Add.turnstile_SystemComponent(identifier="InGate", + Add.GE.SystemComponent(identifier="InGate", partOf_identifier="Turnstile") ################################################ # Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.01-SystemOverview.OutGate ################################################ - Add.turnstile_SystemComponent(identifier="OutGate", + Add.GE.SystemComponent(identifier="OutGate", partOf_identifier="Turnstile") @@ -58,36 +58,36 @@ def CreateCdrs(): # Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.01-SystemOverview ################################################ - Add.SECTION(identifier="_01-SystemOverview", + Add.DOCUMENT.SECTION(identifier="_01-SystemOverview", content_identifier = "CounterApplication") - Add.SECTION(identifier="_01-SystemOverview", + Add.DOCUMENT.SECTION(identifier="_01-SystemOverview", content_identifier = "Display") - Add.SECTION(identifier="_01-SystemOverview", + Add.DOCUMENT.SECTION(identifier="_01-SystemOverview", content_identifier = "InGate") - Add.SECTION(identifier="_01-SystemOverview", + Add.DOCUMENT.SECTION(identifier="_01-SystemOverview", content_identifier = "OutGate") - Add.SECTION(identifier="_01-SystemOverview", + Add.DOCUMENT.SECTION(identifier="_01-SystemOverview", content_identifier = "Turnstile") ################################################ # Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.02-SoftwareOverview.ExecutiveThread ################################################ - Add.turnstile_SoftwareThread(identifier="ExecutiveThread", + Add.GE.SoftwareThread(identifier="ExecutiveThread", partOf_identifier="CounterApplication") ################################################ # Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.02-SoftwareOverview.InputThread ################################################ - Add.turnstile_SoftwareThread(identifier="InputThread", + Add.GE.SoftwareThread(identifier="InputThread", partOf_identifier="CounterApplication") ################################################ # Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.02-SoftwareOverview.OutputThread ################################################ - Add.turnstile_SoftwareThread(identifier="OutputThread", + Add.GE.SoftwareThread(identifier="OutputThread", partOf_identifier="CounterApplication") @@ -95,13 +95,13 @@ def CreateCdrs(): # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.02-SoftwareOverview ################################################ - Add.SECTION(identifier="_02-SoftwareOverview", + Add.DOCUMENT.SECTION(identifier="_02-SoftwareOverview", content_identifier = "CounterApplication") - Add.SECTION(identifier="_02-SoftwareOverview", + Add.DOCUMENT.SECTION(identifier="_02-SoftwareOverview", content_identifier = "ExecutiveThread") - Add.SECTION(identifier="_02-SoftwareOverview", + Add.DOCUMENT.SECTION(identifier="_02-SoftwareOverview", content_identifier = "InputThread") - Add.SECTION(identifier="_02-SoftwareOverview", + Add.DOCUMENT.SECTION(identifier="_02-SoftwareOverview", content_identifier = "OutputThread") @@ -109,79 +109,79 @@ def CreateCdrs(): # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.03-CertificationConsiderations ################################################ - Add.SECTION(identifier="_03-CertificationConsiderations") + Add.DOCUMENT.SECTION(identifier="_03-CertificationConsiderations") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.04-SoftwareLifeCycle ################################################ - Add.SECTION(identifier="_04-SoftwareLifeCycle") + Add.DOCUMENT.SECTION(identifier="_04-SoftwareLifeCycle") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.04-SoftwareLifeCycle.SoftwareConfigurationManagementProcess ################################################ - Add.ACTIVITY(identifier="SoftwareConfigurationManagementProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareConfigurationManagementProcess", wasInformedBy_identifier="SoftwareDevelopmentProcess") - Add.ACTIVITY(identifier="SoftwareConfigurationManagementProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareConfigurationManagementProcess", wasInformedBy_identifier="SoftwareVerificationProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.04-SoftwareLifeCycle.System Development Process ################################################ - Add.ACTIVITY(identifier="System_Development_Process", + Add.PROV_S.ACTIVITY(identifier="System_Development_Process", wasInformedBy_identifier="SoftwareConfigurationManagementProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.04-SoftwareLifeCycle.SoftwarePlanningProcess ################################################ - Add.ACTIVITY(identifier="SoftwarePlanningProcess") + Add.PROV_S.ACTIVITY(identifier="SoftwarePlanningProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.RequirementStandard ################################################ - Add.SPECIFICATION(identifier="RQ-STD", + Add.DOCUMENT.SPECIFICATION(identifier="RQ-STD", wasGeneratedBy_identifier="SoftwarePlanningProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.SoftwareStandard ################################################ - Add.SPECIFICATION(identifier="SW-STD", + Add.DOCUMENT.SPECIFICATION(identifier="SW-STD", wasGeneratedBy_identifier="SoftwarePlanningProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.SystemSpec ################################################ - Add.SPECIFICATION(identifier="Sys-Spec", + Add.DOCUMENT.SPECIFICATION(identifier="Sys-Spec", wasGeneratedBy_identifier="System_Development_Process") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.SystemVerificationReport ################################################ - Add.REPORT(identifier="Sys-Ver-Rep", + Add.DOCUMENT.REPORT(identifier="Sys-Ver-Rep", wasGeneratedBy_identifier="System_Development_Process") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.04-SoftwareLifeCycle.SoftwareDevelopmentProcess ################################################ - Add.ACTIVITY(identifier="SoftwareDevelopmentProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareDevelopmentProcess", wasInformedBy_identifier="System_Development_Process") - Add.ACTIVITY(identifier="SoftwareDevelopmentProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareDevelopmentProcess", wasInformedBy_identifier="SoftwarePlanningProcess") - Add.ACTIVITY(identifier="SoftwareDevelopmentProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareDevelopmentProcess", used_identifier="RQ-STD") - Add.ACTIVITY(identifier="SoftwareDevelopmentProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareDevelopmentProcess", used_identifier="SW-STD") - Add.ACTIVITY(identifier="SoftwareDevelopmentProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareDevelopmentProcess", used_identifier="Sys-Spec") - Add.ACTIVITY(identifier="SoftwareDevelopmentProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareDevelopmentProcess", used_identifier="Sys-Ver-Rep") @@ -189,39 +189,39 @@ def CreateCdrs(): # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.04-SoftwareLifeCycle.SoftwareQualityAssuranceProcess ################################################ - Add.ACTIVITY(identifier="SoftwareQualityAssuranceProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareQualityAssuranceProcess", wasInformedBy_identifier="SoftwarePlanningProcess") - Add.ACTIVITY(identifier="SoftwareQualityAssuranceProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareQualityAssuranceProcess", wasInformedBy_identifier="SoftwareDevelopmentProcess") - Add.ACTIVITY(identifier="SoftwareQualityAssuranceProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareQualityAssuranceProcess", wasInformedBy_identifier="SoftwareVerficationProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.CounterApplicationSoftware ################################################ - Add.COLLECTION(identifier="CounterApplicationSoftware", + Add.PROV_S.COLLECTION(identifier="CounterApplicationSoftware", wasGeneratedBy_identifier="SoftwareDevelopmentProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.CounterApplicationSourceCode ################################################ - Add.SPECIFICATION(identifier="SW-Code", + Add.DOCUMENT.SPECIFICATION(identifier="SW-Code", wasGeneratedBy_identifier="SoftwareDevelopmentProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.CounterApplicationSoftwareDesign ################################################ - Add.DESCRIPTION(identifier="Counter-SW-Des", + Add.DOCUMENT.DESCRIPTION(identifier="Counter-SW-Des", wasGeneratedBy_identifier="SoftwareDevelopmentProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.CounterApplicationRequirementSpec ################################################ - Add.SPECIFICATION(identifier="Counter-Req-Spec", + Add.DOCUMENT.SPECIFICATION(identifier="Counter-Req-Spec", wasGeneratedBy_identifier="SoftwareDevelopmentProcess") @@ -229,280 +229,280 @@ def CreateCdrs(): # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.04-SoftwareLifeCycle.SoftwareVerficationProcess ################################################ - Add.ACTIVITY(identifier="SoftwareVerificationProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareVerificationProcess", wasInformedBy_identifier="SoftwareDevelopmentProcess", used_identifier="VER-STD") - Add.ACTIVITY(identifier="SoftwareVerficationProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareVerficationProcess", used_identifier="CounterApplicationSoftware") - Add.ACTIVITY(identifier="SoftwareVerficationProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareVerficationProcess", used_identifier="SW-Code") - Add.ACTIVITY(identifier="SoftwareVerficationProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareVerficationProcess", used_identifier="Counter-SW-Des") - Add.ACTIVITY(identifier="SoftwareVerficationProcess", + Add.PROV_S.ACTIVITY(identifier="SoftwareVerficationProcess", used_identifier="Counter-Req-Spec") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.SoftwareEnvironmentConfigurationIndex ################################################ - Add.REPORT(identifier="SECI", + Add.DOCUMENT.REPORT(identifier="SECI", wasGeneratedBy_identifier="SoftwareConfigurationManagementProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.SoftwareVersionDescription ################################################ - Add.DESCRIPTION(identifier="SW-Ver-Des", + Add.DOCUMENT.DESCRIPTION(identifier="SW-Ver-Des", wasGeneratedBy_identifier="SoftwareConfigurationManagementProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData.VerificationStandard ################################################ - Add.SPECIFICATION(identifier="VER-STD", + Add.DOCUMENT.SPECIFICATION(identifier="VER-STD", wasGeneratedBy_identifier="SoftwarePlanningProcess") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.05-SoftwareLifeCycleData ################################################ - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="Counter-Req-Spec") - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="CounterApplicationSoftware") - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="Counter-SW-Des") - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="SW-Code") - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="RQ-STD") - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="SECI") - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="SW-STD") - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="SW-Ver-Des") - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="Sys-Spec") - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="Sys-Ver-Rep") - Add.SECTION(identifier="_05-SoftwareLifeCycleData", + Add.DOCUMENT.SECTION(identifier="_05-SoftwareLifeCycleData", content_identifier="VER-STD") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.06-Schedule ################################################ - Add.SECTION(identifier="_06-Schedule") + Add.DOCUMENT.SECTION(identifier="_06-Schedule") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.07-AdditionalConsiderations ################################################ - Add.SECTION(identifier="_07-AdditionalConsiderations") + Add.DOCUMENT.SECTION(identifier="_07-AdditionalConsiderations") ################################################ # Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification.08-SupplierOversite ################################################ - Add.SECTION(identifier="_08-SupplierOversite") + Add.DOCUMENT.SECTION(identifier="_08-SupplierOversite") ################################################ # //Model Location: DevelopmentPlan.01-PlanForSoftwareAspectsOfCertification ################################################ - Add.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", + Add.DOCUMENT.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", content_identifier = "_01-SystemOverview") - Add.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", + Add.DOCUMENT.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", content_identifier = "_02-SoftwareOverview") - Add.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", + Add.DOCUMENT.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", content_identifier = "_03-CertificationConsiderations") - Add.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", + Add.DOCUMENT.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", content_identifier = "_04-SoftwareLifeCycle") - Add.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", + Add.DOCUMENT.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", content_identifier = "_05-SoftwareLifeCycleData") - Add.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", + Add.DOCUMENT.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", content_identifier = "_06-Schedule") - Add.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", + Add.DOCUMENT.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", content_identifier = "_07-AdditionalConsiderations") - Add.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", + Add.DOCUMENT.PLAN(identifier="_01-PlanForSoftwareAspectsOfCertification", content_identifier = "_08-SupplierOversite") ################################################ # Model Location: DevelopmentPlan.02-SystemDevelopement.01-SystemRequirements ################################################ - Add.SECTION(identifier="_01-SystemRequirements") + Add.DOCUMENT.SECTION(identifier="_01-SystemRequirements") ################################################ # Model Location: DevelopmentPlan.02-SystemDevelopement.02-SystemDesign ################################################ - Add.SECTION(identifier="_02-SystemDesign") + Add.DOCUMENT.SECTION(identifier="_02-SystemDesign") ################################################ # Model Location: DevelopmentPlan.02-SystemDevelopement.03-HazardAssesment ################################################ - Add.SECTION(identifier="_03-HazardAssesment") + Add.DOCUMENT.SECTION(identifier="_03-HazardAssesment") ################################################ # Model Location: DevelopmentPlan.02-SystemDevelopement ################################################ - Add.PLAN(identifier="_02-SystemDevelopement", + Add.DOCUMENT.PLAN(identifier="_02-SystemDevelopement", content_identifier="_01-SystemRequirements") - Add.PLAN(identifier="_02-SystemDevelopement", + Add.DOCUMENT.PLAN(identifier="_02-SystemDevelopement", content_identifier="_02-SystemDesign") - Add.PLAN(identifier="_02-SystemDevelopement", + Add.DOCUMENT.PLAN(identifier="_02-SystemDevelopement", content_identifier="_03-HazardAssesment") ################################################ # Model Location: DevelopmentPlan.03-SoftwareDevelopment.01-Standards ################################################ - Add.SECTION(identifier="_01-Standards") + Add.DOCUMENT.SECTION(identifier="_01-Standards") ################################################ # Model Location: DevelopmentPlan.03-SoftwareDevelopment.02-SoftwareDevelopmentLifeCycle ################################################ - Add.SECTION(identifier="_02-SoftwareDevelopmentLifeCycle") + Add.DOCUMENT.SECTION(identifier="_02-SoftwareDevelopmentLifeCycle") ################################################ # Model Location: DevelopmentPlan.03-SoftwareDevelopment.03-SoftwareDevelopmentEnvironment ################################################ - Add.SECTION(identifier="_03-SoftwareDevelopmentEnvironment") + Add.DOCUMENT.SECTION(identifier="_03-SoftwareDevelopmentEnvironment") ################################################ # Model Location: DevelopmentPlan.03-SoftwareDevelopment ################################################ - Add.PLAN(identifier="_03-SoftwareDevelopment", + Add.DOCUMENT.PLAN(identifier="_03-SoftwareDevelopment", content_identifier="_01-Standards") - Add.PLAN(identifier="_03-SoftwareDevelopment", + Add.DOCUMENT.PLAN(identifier="_03-SoftwareDevelopment", content_identifier="_02-SoftwareDevelopmentLifeCycle") - Add.PLAN(identifier="_03-SoftwareDevelopment", + Add.DOCUMENT.PLAN(identifier="_03-SoftwareDevelopment", content_identifier="_03-SoftwareDevelopmentEnvironment") ################################################ # Model Location: DevelopmentPlan.04-SoftwareVerification.01-SoftwareReviewProcess ################################################ - Add.SECTION(identifier="_01-SoftwareReviewProcess") + Add.DOCUMENT.SECTION(identifier="_01-SoftwareReviewProcess") ################################################ # Model Location: DevelopmentPlan.04-SoftwareVerification.02-SoftwareTestGenerationProcess ################################################ - Add.SECTION(identifier="_02-SoftwareTestGenerationProcess") + Add.DOCUMENT.SECTION(identifier="_02-SoftwareTestGenerationProcess") ################################################ # Model Location: DevelopmentPlan.04-SoftwareVerification.04-SoftwareAnalysis ################################################ - Add.SECTION(identifier="_04-SoftwareAnalysis") + Add.DOCUMENT.SECTION(identifier="_04-SoftwareAnalysis") ################################################ # Model Location: DevelopmentPlan.04-SoftwareVerification.03-SoftwareTestExecutionProcess ################################################ - Add.SECTION(identifier="_03-SoftwareTestExecutionProcess") + Add.DOCUMENT.SECTION(identifier="_03-SoftwareTestExecutionProcess") ################################################ # Model Location: DevelopmentPlan.04-SoftwareVerification ################################################ - Add.PLAN(identifier="_04-SoftwareVerification", + Add.DOCUMENT.PLAN(identifier="_04-SoftwareVerification", content_identifier="_01-SoftwareReviewProcess") - Add.PLAN(identifier="_04-SoftwareVerification", + Add.DOCUMENT.PLAN(identifier="_04-SoftwareVerification", content_identifier="_02-SoftwareTestGenerationProcess") - Add.PLAN(identifier="_04-SoftwareVerification", + Add.DOCUMENT.PLAN(identifier="_04-SoftwareVerification", content_identifier="_04-SoftwareAnalysis") - Add.PLAN(identifier="_04-SoftwareVerification", + Add.DOCUMENT.PLAN(identifier="_04-SoftwareVerification", content_identifier="_03-SoftwareTestExecutionProcess") ################################################ # Model Location: DevelopmentPlan.05-SoftwareConfigurationManagment.01-ChangeManagement ################################################ - Add.SECTION(identifier="_01-ChangeManagement") + Add.DOCUMENT.SECTION(identifier="_01-ChangeManagement") ################################################ # Model Location: DevelopmentPlan.05-SoftwareConfigurationManagment.02-SoftwareConfigurationManagementEnvironment ################################################ - Add.SECTION(identifier="_02-SoftwareConfigurationManagementEnvironment") + Add.DOCUMENT.SECTION(identifier="_02-SoftwareConfigurationManagementEnvironment") ################################################ # Model Location: DevelopmentPlan.05-SoftwareConfigurationManagment ################################################ - Add.PLAN(identifier="_05-SoftwareConfigurationManagment", + Add.DOCUMENT.PLAN(identifier="_05-SoftwareConfigurationManagment", content_identifier="_01-ChangeManagement") - Add.PLAN(identifier="_05-SoftwareConfigurationManagment", + Add.DOCUMENT.PLAN(identifier="_05-SoftwareConfigurationManagment", content_identifier="_02-SoftwareConfigurationManagementEnvironment") ################################################ # Model Location: DevelopmentPlan.06-SoftwareQualityAssurance ################################################ - Add.PLAN(identifier="_06-SoftwareQualityAssurance") + Add.DOCUMENT.PLAN(identifier="_06-SoftwareQualityAssurance") ################################################ # Model Location: DevelopmentPlan.07-SoftwareStandards.SoftwareCodeReviewChecklist ################################################ - Add.PLAN(identifier="SoftwareCodeReviewChecklist", + Add.DOCUMENT.PLAN(identifier="SoftwareCodeReviewChecklist", references_identifier="VER-STD") ################################################ # Model Location: DevelopmentPlan.07-SoftwareStandards.SoftwareDesignReviewChecklist ################################################ - Add.PLAN(identifier="SoftwareDesignReviewChecklist", + Add.DOCUMENT.PLAN(identifier="SoftwareDesignReviewChecklist", references_identifier="VER-STD") ################################################ # Model Location: DevelopmentPlan.07-SoftwareStandards.SoftwareRequirementReviewChecklist ################################################ - Add.PLAN(identifier="SoftwareRequirementReviewChecklist", + Add.DOCUMENT.PLAN(identifier="SoftwareRequirementReviewChecklist", references_identifier="VER-STD") ################################################ # Model Location: DevelopmentPlan.07-SoftwareStandards.SoftwareTestGuidance ################################################ - Add.PLAN(identifier="SoftwareTestGuidance", + Add.DOCUMENT.PLAN(identifier="SoftwareTestGuidance", references_identifier="VER-STD") ################################################ # Model Location: DevelopmentPlan.07-SoftwareStandards ################################################ - Add.PLAN(identifier="_07-SoftwareStandards", + Add.DOCUMENT.PLAN(identifier="_07-SoftwareStandards", content_identifier="SoftwareCodeReviewChecklist") - Add.PLAN(identifier="_07-SoftwareStandards", + Add.DOCUMENT.PLAN(identifier="_07-SoftwareStandards", content_identifier="SoftwareDesignReviewChecklist") - Add.PLAN(identifier="_07-SoftwareStandards", + Add.DOCUMENT.PLAN(identifier="_07-SoftwareStandards", content_identifier="SoftwareRequirementReviewChecklist") - Add.PLAN(identifier="_07-SoftwareStandards", + Add.DOCUMENT.PLAN(identifier="_07-SoftwareStandards", content_identifier="SoftwareTestGuidance") ################################################ # //Model Location: DevelopmentPlan ################################################ - Add.PLAN(identifier="_DevelopmentPlan", + Add.DOCUMENT.PLAN(identifier="_DevelopmentPlan", content_identifier = "_01-PlanForSoftwareAspectsOfCertification") - Add.PLAN(identifier="_DevelopmentPlan", + Add.DOCUMENT.PLAN(identifier="_DevelopmentPlan", content_identifier = "_02-SystemDevelopement") - Add.PLAN(identifier="_DevelopmentPlan", + Add.DOCUMENT.PLAN(identifier="_DevelopmentPlan", content_identifier = "_03-SoftwareDevelopment") - Add.PLAN(identifier="_DevelopmentPlan", + Add.DOCUMENT.PLAN(identifier="_DevelopmentPlan", content_identifier = "_04-SoftwareVerification") - Add.PLAN(identifier="_DevelopmentPlan", + Add.DOCUMENT.PLAN(identifier="_DevelopmentPlan", content_identifier = "_05-SoftwareConfigurationManagment") - Add.PLAN(identifier="_DevelopmentPlan", + Add.DOCUMENT.PLAN(identifier="_DevelopmentPlan", content_identifier = "_06-SoftwareQualityAssurance") - Add.PLAN(identifier="_DevelopmentPlan", + Add.DOCUMENT.PLAN(identifier="_DevelopmentPlan", content_identifier = "_07-SoftwareStandards") diff --git a/Turnstile-Example/TurnstileDataCreation_HazardAssessment.py b/Turnstile-Example/TurnstileDataCreation_HazardAssessment.py index eaec1a7c..76c8840b 100755 --- a/Turnstile-Example/TurnstileDataCreation_HazardAssessment.py +++ b/Turnstile-Example/TurnstileDataCreation_HazardAssessment.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (c) 2021, General Electric Company, Inc. +# Copyright (c) 2022, General Electric Company, Inc. # # All Rights Reserved # @@ -11,10 +11,9 @@ # material are those of the author(s) and do not necessarily reflect the views # of the Defense Advanced Research Projects Agency (DARPA). -import XML -import XML.SysML as SysML -from Evidence import createEvidenceFile, createCDR -import Evidence.Add as Add +from Logging import * +from Evidence import * +import Evidence.Add as Add import shutil import os.path @@ -26,22 +25,22 @@ def CreateCdrs(): createEvidenceFile(ingestionTitle="TurnstileIngestion-HazardAssessment", ingestionDescription="Manual ingestion of Hazard Assessment") - Add.SYSTEM(identifier="Turnstile") + Add.SYSTEM.SYSTEM(identifier="Turnstile") - Add.HAZARD(identifier="H-1", + Add.HAZARD.HAZARD(identifier="H-1", description="System Crash", source_identifier = "Turnstile") - Add.HAZARD(identifier="H-1.1", + Add.HAZARD.HAZARD(identifier="H-1.1", description="Integer Under Flow", wasDerivedFrom_identifier = "H-1") - Add.HAZARD(identifier="H-1.2", + Add.HAZARD.HAZARD(identifier="H-1.2", description="Integer Over Flow", wasDerivedFrom_identifier = "H-1") - Add.HAZARD(identifier="H-2", + Add.HAZARD.HAZARD(identifier="H-2", description="Park Exceeds Capacity", source_identifier = "Turnstile") diff --git a/Turnstile-Example/TurnstileDataCreation_PlanningDocuments.py b/Turnstile-Example/TurnstileDataCreation_PlanningDocuments.py index 9dbc6b2f..613385a6 100755 --- a/Turnstile-Example/TurnstileDataCreation_PlanningDocuments.py +++ b/Turnstile-Example/TurnstileDataCreation_PlanningDocuments.py @@ -11,10 +11,9 @@ # material are those of the author(s) and do not necessarily reflect the views # of the Defense Advanced Research Projects Agency (DARPA). -import XML -import XML.SysML as SysML -from Evidence import createEvidenceFile, createCDR -import Evidence.Add as Add +from Logging import * +from Evidence import * +import Evidence.Add as Add import shutil import os.path @@ -30,13 +29,13 @@ def CreateCdrs(): # Planning Documents ####################################################################### #-------------------------- - Add.DOCUMENT(identifier="SW-STD:v1", + Add.DOCUMENT.DOCUMENT(identifier="SW-STD:v1", title = "Turnstile Software Development Standards") #-------------------------- - Add.DOCUMENT(identifier="SQ-STD:v1", + Add.DOCUMENT.DOCUMENT(identifier="SQ-STD:v1", title = "Turnstile Requirement Standards") #-------------------------- - Add.DOCUMENT(identifier="VER-STD:v1", + Add.DOCUMENT.DOCUMENT(identifier="VER-STD:v1", title = "Turnstile Verification Standards") createCDR("http://rack001/turnstiledata") diff --git a/Turnstile-Example/TurnstileDataCreation_RequirementModels.py b/Turnstile-Example/TurnstileDataCreation_RequirementModels.py index 96f54917..cfd65225 100755 --- a/Turnstile-Example/TurnstileDataCreation_RequirementModels.py +++ b/Turnstile-Example/TurnstileDataCreation_RequirementModels.py @@ -11,10 +11,9 @@ # material are those of the author(s) and do not necessarily reflect the views # of the Defense Advanced Research Projects Agency (DARPA). -import XML -import XML.SysML as SysML -from Evidence import createEvidenceFile, createCDR -import Evidence.Add as Add +from Logging import * +from Evidence import * +import Evidence.Add as Add import shutil import os.path @@ -30,28 +29,28 @@ def CreateCdrs(): #------------ HLR-1-Model ------------ - Add.MODEL(identifier="HLR-1-Model", models_identifier="HLR-1:v1") - Add.turnstile_HighLevelRequirement(identifier="HLR-1:v1") + Add.MODEL.MODEL(identifier="HLR-1-Model", models_identifier="HLR-1:v1") + Add.GE.HighLevelRequirement(identifier="HLR-1:v1") #------------ HLR-2-Model ------------ - Add.MODEL(identifier="HLR-2-Model", models_identifier="HLR-2:v1") - Add.turnstile_HighLevelRequirement(identifier="HLR-2:v1") + Add.MODEL.MODEL(identifier="HLR-2-Model", models_identifier="HLR-2:v1") + Add.GE.HighLevelRequirement(identifier="HLR-2:v1") #------------ HLR-3-Model ------------ - Add.MODEL(identifier="HLR-3-Model", models_identifier="HLR-3:v1") - Add.turnstile_HighLevelRequirement(identifier="HLR-3:v1") + Add.MODEL.MODEL(identifier="HLR-3-Model", models_identifier="HLR-3:v1") + Add.GE.HighLevelRequirement(identifier="HLR-3:v1") #------------ HLR Analysis ------------ - Add.ANALYSIS(identifier="HLR Analysis", description="HLR Analysis performs automated analysis of a modeled requirement in relation to completeness and conflicts.") - Add.ANALYSIS(identifier="HLR Analysis", used_identifier="HLR-1-Model") - Add.ANALYSIS(identifier="HLR Analysis", used_identifier="HLR-2-Model") - Add.ANALYSIS(identifier="HLR Analysis", used_identifier="HLR-3-Model") + Add.ANALYSIS.ANALYSIS(identifier="HLR Analysis", description="HLR Analysis performs automated analysis of a modeled requirement in relation to completeness and conflicts.") + Add.ANALYSIS.ANALYSIS(identifier="HLR Analysis", used_identifier="HLR-1-Model") + Add.ANALYSIS.ANALYSIS(identifier="HLR Analysis", used_identifier="HLR-2-Model") + Add.ANALYSIS.ANALYSIS(identifier="HLR Analysis", used_identifier="HLR-3-Model") #------------ HLR Analysis-Completeness ------------ - Add.ANALYSIS_OUTPUT(identifier="HLR Analysis-Completeness", wasGeneratedBy_identifier="HLR Analysis") + Add.ANALYSIS.ANALYSIS_OUTPUT(identifier="HLR Analysis-Completeness", wasGeneratedBy_identifier="HLR Analysis") #------------ HLR Analysis-Conflict ------------ - Add.ANALYSIS_OUTPUT(identifier="HLR Analysis-Conflict", wasGeneratedBy_identifier="HLR Analysis") + Add.ANALYSIS.ANALYSIS_OUTPUT(identifier="HLR Analysis-Conflict", wasGeneratedBy_identifier="HLR Analysis") createCDR("http://rack001/turnstiledata") diff --git a/Turnstile-Example/TurnstileDataCreation_Requirements.py b/Turnstile-Example/TurnstileDataCreation_Requirements.py index c97034b8..cdce11aa 100755 --- a/Turnstile-Example/TurnstileDataCreation_Requirements.py +++ b/Turnstile-Example/TurnstileDataCreation_Requirements.py @@ -13,8 +13,7 @@ ############################### Read PDF file ##################################### # exec(open('TurnstileIngestion_Requirements.py').read()) import PyPDF2 -import PyPDF2.pdf -from PyPDF2.pdf import PdfFileReader +from PyPDF2 import PdfFileReader #from PIL import Image import operator, functools from itertools import product @@ -339,11 +338,11 @@ def sysReqToIngestAux (req,version,fileSource): l1="Requirementidentification" l2="Description" l3="Governs" - return [Add.turnstile_SystemRequirement(identifier = req[l1]+version, + return [Add.GE.SystemRequirement(identifier = req[l1]+version, governs_identifier = checkKeyExist(req,l3), description = req[l2], definedIn_identifier=fileSource), - Add.SYSTEM(identifier = checkKeyExist(req,l3))] + Add.SYSTEM.SYSTEM(identifier = checkKeyExist(req,l3))] #sys has an update using the version 2 list(map(lambda x: sysReqToIngestAux(x,"","SYS Doc:v1"),sys)) #list(map(lambda x: sysReqToIngestAux(x),reqsDict(sys_Req(mainList1)))) @@ -353,7 +352,7 @@ def sysReqToIngestAux (req,version,fileSource): ##New Req version 2 list(map(lambda x: sysReqToIngestAux(x,"","SYS Doc:v1"), newSysReq)) #------------ Document Files ------------ - Add.FILE(identifier="SYS Doc:v1",entityURL="https://github.com/ge-high-assurance/RACK/blob/master/Turnstile-Example/RequirementsDocument/Sys_Req.txt") + Add.FILE.FILE(identifier="SYS Doc:v1",entityURL="https://github.com/ge-high-assurance/RACK/blob/master/Turnstile-Example/RequirementsDocument/Sys_Req.txt") createCDR("http://rack001/turnstiledata") os.rename(os.path.join(".","RACK-DATA"), os.path.join(".","Turnstile-IngestionPackage/TurnstileSystemRequirements")) @@ -369,7 +368,7 @@ def hlReqToIngestAux (req,reqVersion,revision,version,fileSource): l4="Satisfies" l5="Mitigates" l6="wasGeneratedBy" - return [Add.turnstile_HighLevelRequirement(identifier = req[l1]+reqVersion, + return [Add.GE.HighLevelRequirement(identifier = req[l1]+reqVersion, governs_identifier = checkKeyExist(req,l3), description = req[l2], satisfies_identifier = checkKeyExist(req,l4), @@ -377,9 +376,9 @@ def hlReqToIngestAux (req,reqVersion,revision,version,fileSource): wasGeneratedBy_identifier= checkKeyExist(req,l6), wasRevisionOf_identifier=revision+version, definedIn_identifier=fileSource), - Add.turnstile_SystemRequirement(identifier=checkKeyExist(req,l4)), - Add.HAZARD(identifier=checkKeyExist(req,l5)), - Add.turnstile_SystemComponent(identifier=checkKeyExist(req,l3))] + Add.GE.SystemRequirement(identifier=checkKeyExist(req,l4)), + Add.HAZARD.HAZARD(identifier=checkKeyExist(req,l5)), + Add.GE.SystemComponent(identifier=checkKeyExist(req,l3))] list(map(lambda x: hlReqToIngestAux(x,"","","","HLR Doc:v1"),hl)) @@ -389,80 +388,80 @@ def hlReqToIngestAux (req,reqVersion,revision,version,fileSource): ##New Req version 2 list(map(lambda x: hlReqToIngestAux(x,"","","","HLR Doc:v2"), newHLReq)) #------------ Document Files ------------ - Add.FILE(identifier="HLR Doc:v1",entityURL="file://{{BASEDIR}}/RequirementsDocument/Version1.pdf") - Add.FILE(identifier="HLR Doc:v2",entityURL="file://{{BASEDIR}}/RequirementsDocument/Version2.pdf") + Add.FILE.FILE(identifier="HLR Doc:v1",entityURL="file://{{BASEDIR}}/RequirementsDocument/Version1.pdf") + Add.FILE.FILE(identifier="HLR Doc:v2",entityURL="file://{{BASEDIR}}/RequirementsDocument/Version2.pdf") #------------ 125569538 ------------ - Add.turnstile_Engineer(identifier = "125569538", + Add.GE.Engineer(identifier = "125569538", title = "Doe, John", emailAddress = "john.doe@ge.com", employedBy_identifier = "General_Electric") - Add.ORGANIZATION(identifier = "General_Electric") + Add.AGENTS.ORGANIZATION(identifier = "General_Electric") #------------ HlrDev1 ------------ - Add.turnstile_SoftwareRequirementsDefinition(identifier = "HlrDev1", + Add.GE.SoftwareRequirementsDefinition(identifier = "HlrDev1", endedAtTime = "2020-07-15 10:56:38", wasAssociatedWith_identifier = "125569538", referenced_identifier = "RQ-STD:v1") - Add.DOCUMENT(identifier = "RQ-STD:v1") + Add.DOCUMENT.DOCUMENT(identifier = "RQ-STD:v1") #------------ inflowEvent ------------ - Add.turnstile_DataDictionary(identifier = "inflowEvent", + Add.GE.DataDictionary(identifier = "inflowEvent", description = "Signal indicating that a person has passed through the ingate", wasGeneratedBy_identifier = "HlrDev1") - Add.turnstile_DataDictionary(identifier = "inflowEvent", + Add.GE.DataDictionary(identifier = "inflowEvent", providedBy_identifier = "inflow") - Add.turnstile_SystemInterfaceDefinition (identifier="inflow") - Add.turnstile_DataDictionary(identifier = "inflowEvent", + Add.GE.SystemInterfaceDefinition (identifier="inflow") + Add.GE.DataDictionary(identifier = "inflowEvent", consumedBy_identifier = "HLR-1:v1") #------------ outflowEvent ------------ - Add.turnstile_DataDictionary(identifier = "outflowEvent", + Add.GE.DataDictionary(identifier = "outflowEvent", description = "Signal indicating that a person has passed through the outgate", wasGeneratedBy_identifier = "HlrDev1") - Add.turnstile_DataDictionary(identifier = "outflowEvent", + Add.GE.DataDictionary(identifier = "outflowEvent", providedBy_identifier = "outflow") - Add.turnstile_SystemInterfaceDefinition (identifier="outflow") - Add.turnstile_DataDictionary(identifier = "outflowEvent", + Add.GE.SystemInterfaceDefinition (identifier="outflow") + Add.GE.DataDictionary(identifier = "outflowEvent", consumedBy_identifier = "HLR-2:v1") #------------ counter ------------ - Add.turnstile_DataDictionary(identifier = "counter", + Add.GE.DataDictionary(identifier = "counter", description = "running total people in the park.", wasGeneratedBy_identifier = "HlrDev1") - Add.turnstile_DataDictionary(identifier = "counter", + Add.GE.DataDictionary(identifier = "counter", providedBy_identifier = "HLR-1:v1") - Add.turnstile_DataDictionary(identifier = "counter", + Add.GE.DataDictionary(identifier = "counter", providedBy_identifier = "HLR-2:v1") - Add.turnstile_DataDictionary(identifier = "counter", + Add.GE.DataDictionary(identifier = "counter", consumedBy_identifier = "HLR-3:v1") #------------ display ------------ - Add.turnstile_DataDictionary(identifier = "display", + Add.GE.DataDictionary(identifier = "display", wasGeneratedBy_identifier = "HlrDev1") - Add.turnstile_DataDictionary(identifier = "display", + Add.GE.DataDictionary(identifier = "display", providedBy_identifier = "HLR-3:v1") - Add.turnstile_DataDictionary(identifier = "display", + Add.GE.DataDictionary(identifier = "display", consumedBy_identifier = "census") - Add.turnstile_SystemInterfaceDefinition (identifier="census") + Add.GE.SystemInterfaceDefinition (identifier="census") #########version2 #------------ HlrDev2 ------------ - Add.turnstile_SoftwareRequirementsDefinition(identifier = "HlrDev2", + Add.GE.SoftwareRequirementsDefinition(identifier = "HlrDev2", endedAtTime = "2020-07-25 10:53:38", wasAssociatedWith_identifier = "125569538", referenced_identifier = "RQ-STD:v1") - Add.DOCUMENT(identifier = "RQ-STD:v1") + Add.DOCUMENT.DOCUMENT(identifier = "RQ-STD:v1") #------------ inflowEvent ------------ - Add.turnstile_DataDictionary(identifier = "inflowEvent", + Add.GE.DataDictionary(identifier = "inflowEvent", consumedBy_identifier = "HLR-1:v2") #------------ outflowEvent ------------ - Add.turnstile_DataDictionary(identifier = "outflowEvent", + Add.GE.DataDictionary(identifier = "outflowEvent", consumedBy_identifier = "HLR-2:v2") #------------ counter ------------ - Add.turnstile_DataDictionary(identifier = "counter", + Add.GE.DataDictionary(identifier = "counter", providedBy_identifier = "HLR-1:v2") - Add.turnstile_DataDictionary(identifier = "counter", + Add.GE.DataDictionary(identifier = "counter", providedBy_identifier = "HLR-2:v2") createCDR("http://rack001/turnstiledata") @@ -479,20 +478,20 @@ def llReqToIngestAux (req,version): l3="Governs" l4= "wasGeneratedBy" l5="Satisfies" - return [Add.turnstile_LowLevelRequirement(#identifier = req[keybiggerThan10(l1_1,l1,req)], + return [Add.GE.LowLevelRequirement(#identifier = req[keybiggerThan10(l1_1,l1,req)], identifier = req[l1]+version, governs_identifier = checkKeyExist(req,l3), wasGeneratedBy_identifier= checkKeyExist(req,l4), description = req[l2], satisfies_identifier =checkKeyExist(req,l5) ), - Add.turnstile_HighLevelRequirement(identifier=checkKeyExist(req,l5)) ] + Add.GE.HighLevelRequirement(identifier=checkKeyExist(req,l5)) ] # def llReqToIngestAux1 (req): # l1="Requirementidentification" # l1_1=")Requirementidentification" # l5="Satisfies" - # return Add.turnstile_LowLevelRequirement( identifier = req[keybiggerThan10(l1_1,l1,req)], + # return Add.GE.LowLevelRequirement( identifier = req[keybiggerThan10(l1_1,l1,req)], # satisfies_identifier =checkKeyExist(req,l5)) @@ -505,127 +504,127 @@ def llReqToIngestAux (req,version): ### #------------ 2125895152 ------------ - Add.turnstile_Engineer(identifier = "2125895152", + Add.GE.Engineer(identifier = "2125895152", title = "Doe, Jane", emailAddress = "jane.doe@ge.com", employedBy_identifier = "General_Electric") - Add.ORGANIZATION(identifier = "General_Electric") + Add.AGENTS.ORGANIZATION(identifier = "General_Electric") #------------ LlrDev1 ------------ - Add.turnstile_SoftwareDesign(identifier = "LlrDev1", + Add.GE.SoftwareDesign(identifier = "LlrDev1", endedAtTime = "2020-07-19 11:48:38", wasAssociatedWith_identifier = "2125895152", referenced_identifier = "SW-STD:v1") - Add.DOCUMENT(identifier = "SW-STD:v1") + Add.DOCUMENT.DOCUMENT(identifier = "SW-STD:v1") #------------ SwDesign ------------ - Add.turnstile_SoftwareDesign(identifier = "SwDesign", + Add.GE.SoftwareDesign(identifier = "SwDesign", endedAtTime = "2020-07-23 09:52:38", wasAssociatedWith_identifier = "2125895152", referenced_identifier = "SW-STD:v1") - Add.DOCUMENT(identifier = "SW-STD:v1") + Add.DOCUMENT.DOCUMENT(identifier = "SW-STD:v1") #------------ InputThread ------------ - Add.SYSTEM_DEVELOPMENT(identifier="SysThreadDesign") + Add.SYSTEM.SYSTEM_DEVELOPMENT(identifier="SysThreadDesign") - Add.turnstile_SoftwareThread(identifier = "InputThread", + Add.GE.SoftwareThread(identifier = "InputThread", partOf_identifier = "CounterApplication", wasGeneratedBy_identifier = "SysThreadDesign") #------------ OutputThread ------------ - Add.turnstile_SoftwareThread(identifier = "OutputThread", + Add.GE.SoftwareThread(identifier = "OutputThread", partOf_identifier = "CounterApplication", wasGeneratedBy_identifier = "SysThreadDesign") #------------ ExecutiveThread ------------ - Add.turnstile_SoftwareThread(identifier = "ExecutiveThread", + Add.GE.SoftwareThread(identifier = "ExecutiveThread", partOf_identifier = "CounterApplication", wasGeneratedBy_identifier = "SysThreadDesign") #------------ DCC-1 ------------ - Add.turnstile_DataAndControlCouple(identifier = "DCC-1", + Add.GE.DataAndControlCouple(identifier = "DCC-1", description = "PowerUp", wasGeneratedBy_identifier = "LlrDev1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-1", + Add.GE.DataAndControlCouple(identifier = "DCC-1", consumedBy_identifier = "EXE-LLR-1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-1", + Add.GE.DataAndControlCouple(identifier = "DCC-1", consumedBy_identifier = "EXE-LLR-2") - Add.turnstile_DataAndControlCouple(identifier = "DCC-1", + Add.GE.DataAndControlCouple(identifier = "DCC-1", consumedBy_identifier = "IN-LLR-1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-1", + Add.GE.DataAndControlCouple(identifier = "DCC-1", consumedBy_identifier = "OUT-LLR-1") #------------ DCC-2 ------------ - Add.turnstile_DataAndControlCouple(identifier = "DCC-2", + Add.GE.DataAndControlCouple(identifier = "DCC-2", description = "incoming UDP message", wasGeneratedBy_identifier = "LlrDev1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-2", + Add.GE.DataAndControlCouple(identifier = "DCC-2", consumedBy_identifier = "IN-LLR-2:v1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-2", + Add.GE.DataAndControlCouple(identifier = "DCC-2", consumedBy_identifier = "IN-LLR-2:v2") - Add.turnstile_DataAndControlCouple(identifier = "DCC-2", + Add.GE.DataAndControlCouple(identifier = "DCC-2", consumedBy_identifier = "IN-LLR-3:v1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-2", + Add.GE.DataAndControlCouple(identifier = "DCC-2", consumedBy_identifier = "IN-LLR-3:v2") - Add.turnstile_DataAndControlCouple(identifier = "DCC-2", + Add.GE.DataAndControlCouple(identifier = "DCC-2", consumedBy_identifier = "IN-LLR-5") - Add.turnstile_DataAndControlCouple(identifier = "DCC-2", + Add.GE.DataAndControlCouple(identifier = "DCC-2", consumedBy_identifier = "IN-LLR-6") #------------ DCC-3 ------------ - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", description = "input_park_count", wasGeneratedBy_identifier = "LlrDev1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", consumedBy_identifier = "IN-LLR-2:v1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", consumedBy_identifier = "IN-LLR-2:v2") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", consumedBy_identifier = "IN-LLR-3:v1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", consumedBy_identifier = "IN-LLR-3:v2") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", consumedBy_identifier = "IN-LLR-4") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", consumedBy_identifier = "IN-LLR-5") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", consumedBy_identifier = "IN-LLR-6") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", providedBy_identifier = "IN-LLR-1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", providedBy_identifier = "IN-LLR-4") #------------ DCC-4 ------------ - Add.turnstile_DataAndControlCouple(identifier = "DCC-4", + Add.GE.DataAndControlCouple(identifier = "DCC-4", description = "output_park_count", wasGeneratedBy_identifier = "LlrDev1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", consumedBy_identifier = "OUT-LLR-2:v1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", consumedBy_identifier = "OUT-LLR-2:v2") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", providedBy_identifier = "OUT-LLR-1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", providedBy_identifier = "IN-LLR-3:v1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-3", + Add.GE.DataAndControlCouple(identifier = "DCC-3", providedBy_identifier = "IN-LLR-3:v2") #------------ DCC-5 ------------ - Add.turnstile_DataAndControlCouple(identifier = "DCC-5", + Add.GE.DataAndControlCouple(identifier = "DCC-5", description = "outgoing UDP message", wasGeneratedBy_identifier = "LlrDev1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-5", + Add.GE.DataAndControlCouple(identifier = "DCC-5", providedBy_identifier = "OUT-LLR-2:v1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-5", + Add.GE.DataAndControlCouple(identifier = "DCC-5", providedBy_identifier = "OUT-LLR-2:v2") #------------ DCC-6 ------------ - Add.turnstile_DataAndControlCouple(identifier = "DCC-6", + Add.GE.DataAndControlCouple(identifier = "DCC-6", description = "console", wasGeneratedBy_identifier = "LlrDev1") - Add.turnstile_DataAndControlCouple(identifier = "DCC-6", + Add.GE.DataAndControlCouple(identifier = "DCC-6", providedBy_identifier = "EXE-LLR-3") - Add.turnstile_DataAndControlCouple(identifier = "DCC-6", + Add.GE.DataAndControlCouple(identifier = "DCC-6", providedBy_identifier = "IN-LLR-5") - Add.turnstile_DataAndControlCouple(identifier = "DCC-6", + Add.GE.DataAndControlCouple(identifier = "DCC-6", providedBy_identifier = "IN-LLR-6") createCDR("http://rack001/turnstiledata") os.rename(os.path.join(".","RACK-DATA"), os.path.join(".","Turnstile-IngestionPackage/TurnstileLowLevelRequirements")) @@ -644,35 +643,35 @@ def llReqToIngestAux (req,version): # Requirements packages for req in hlReqsModified_Ids: - Add.BASELINE(identifier=reqBase1, content_identifier=req+":v1") - Add.BASELINE(identifier=reqBase2, content_identifier=req+":v2") + Add.BASELINE.BASELINE(identifier=reqBase1, content_identifier=req+":v1") + Add.BASELINE.BASELINE(identifier=reqBase2, content_identifier=req+":v2") for req in llReqsModified_Ids: - Add.BASELINE(identifier=reqBase1, content_identifier=req+":v1") - Add.BASELINE(identifier=reqBase2, content_identifier=req+":v2") + Add.BASELINE.BASELINE(identifier=reqBase1, content_identifier=req+":v1") + Add.BASELINE.BASELINE(identifier=reqBase2, content_identifier=req+":v2") for req in sys: - Add.BASELINE(identifier=reqBase1, content_identifier=req[l]) - Add.BASELINE(identifier=reqBase2, content_identifier=req[l]) - Add.BASELINE(identifier=reqBase2, wasRevisionOf_identifier=reqBase1) + Add.BASELINE.BASELINE(identifier=reqBase1, content_identifier=req[l]) + Add.BASELINE.BASELINE(identifier=reqBase2, content_identifier=req[l]) + Add.BASELINE.BASELINE(identifier=reqBase2, wasRevisionOf_identifier=reqBase1) # Software baseline - Add.BASELINE(identifier=swBase1, content_identifier="OutputThread") - Add.BASELINE(identifier=swBase1, content_identifier="InputThread") - Add.BASELINE(identifier=swBase1, content_identifier="ExecutiveThread") + Add.BASELINE.BASELINE(identifier=swBase1, content_identifier="OutputThread") + Add.BASELINE.BASELINE(identifier=swBase1, content_identifier="InputThread") + Add.BASELINE.BASELINE(identifier=swBase1, content_identifier="ExecutiveThread") # Testsuite release - Add.BASELINE(identifier=testBase1, content_identifier="TC-1-1") - Add.BASELINE(identifier=testBase1, content_identifier="TC-1-2") - Add.BASELINE(identifier=testBase1, content_identifier="TC-1-3") - Add.BASELINE(identifier=testBase1, content_identifier="TC-1-4") + Add.BASELINE.BASELINE(identifier=testBase1, content_identifier="TC-1-1") + Add.BASELINE.BASELINE(identifier=testBase1, content_identifier="TC-1-2") + Add.BASELINE.BASELINE(identifier=testBase1, content_identifier="TC-1-3") + Add.BASELINE.BASELINE(identifier=testBase1, content_identifier="TC-1-4") # Complete release baselines - Add.BASELINE(identifier=turnstile1, content_identifier=reqBase1) - Add.BASELINE(identifier=turnstile1, content_identifier=swBase1) - Add.BASELINE(identifier=turnstile1, content_identifier=testBase1) + Add.BASELINE.BASELINE(identifier=turnstile1, content_identifier=reqBase1) + Add.BASELINE.BASELINE(identifier=turnstile1, content_identifier=swBase1) + Add.BASELINE.BASELINE(identifier=turnstile1, content_identifier=testBase1) - Add.BASELINE(identifier=turnstile1_1, wasRevisionOf_identifier=turnstile1) - Add.BASELINE(identifier=turnstile1_1, content_identifier=reqBase2) - Add.BASELINE(identifier=turnstile1_1, content_identifier=swBase1) + Add.BASELINE.BASELINE(identifier=turnstile1_1, wasRevisionOf_identifier=turnstile1) + Add.BASELINE.BASELINE(identifier=turnstile1_1, content_identifier=reqBase2) + Add.BASELINE.BASELINE(identifier=turnstile1_1, content_identifier=swBase1) # A lack of a test suite targetting v2 requirements is a known omission createCDR("http://rack001/turnstiledata") diff --git a/Turnstile-Example/TurnstileDataCreation_Security.py b/Turnstile-Example/TurnstileDataCreation_Security.py index 163b35dc..a5cac619 100755 --- a/Turnstile-Example/TurnstileDataCreation_Security.py +++ b/Turnstile-Example/TurnstileDataCreation_Security.py @@ -11,10 +11,9 @@ # material are those of the author(s) and do not necessarily reflect the views # of the Defense Advanced Research Projects Agency (DARPA). -import XML -import XML.SysML as SysML -from Evidence import createEvidenceFile, createCDR -import Evidence.Add as Add +from Logging import * +from Evidence import * +import Evidence.Add as Add import shutil import os.path @@ -26,76 +25,76 @@ def CreateCdrs(): createEvidenceFile(ingestionTitle="TurnstileIngestion-Security", ingestionDescription="Manual ingestion of Turnstile Security Design") - Add.Cps(identifier="TurnstileCps", + Add.CPS.Cps(identifier="TurnstileCps", wasDerivedFrom_identifier="Turnstile", insideTrustedBoundary="true") - Add.Cps(identifier="InGateCps", + Add.CPS.Cps(identifier="InGateCps", wasDerivedFrom_identifier="InGate", partOf_identifier = "TurnstileCps", insideTrustedBoundary="true") - Add.Cps(identifier="OutGateCps", + Add.CPS.Cps(identifier="OutGateCps", wasDerivedFrom_identifier="OutGate", partOf_identifier = "TurnstileCps", insideTrustedBoundary="true") - Add.Cps(identifier="CounterApplicationCps", + Add.CPS.Cps(identifier="CounterApplicationCps", wasDerivedFrom_identifier="CounterApplication", partOf_identifier = "TurnstileCps", insideTrustedBoundary="true") - Add.Cps(identifier="DisplayCps", + Add.CPS.Cps(identifier="DisplayCps", wasDerivedFrom_identifier="Display", partOf_identifier = "TurnstileCps", insideTrustedBoundary="true") - Add.ConnectionType(identifier="Untrusted") + Add.CPS.ConnectionType(identifier="Untrusted") - Add.Connection(identifier="inflowConn", + Add.CPS.Connection(identifier="inflowConn", wasDerivedFrom_identifier="inflow", source_identifier = "InGateCps", destination_identifier = "CounterApplicationCps", connectionType_identifier ="Untrusted") - Add.THREAT(identifier="CAPEC-148", + Add.SECURITY.THREAT(identifier="CAPEC-148", description = "Content Spoofing - An adversary modifies content...") - Add.CONTROL(identifier = "IA-3", + Add.SECURITY.CONTROL(identifier = "IA-3", description = "Device Identification And Authentication - The information system uniquely identifies and authenticates [Assignment: organization-defined specific and/or types of devices] before establishing a [Selection (one or more): local; remote; network] connection..") - Add.CONTROL(identifier = "IA-3-1", + Add.SECURITY.CONTROL(identifier = "IA-3-1", description = "Cryptographic Bidirectional Authentication - The information system authenticates [Assignment: organization-defined specific devices and/or types of devices] before establishing [Selection (one or more): local; remote; network] connection using bidirectional authentication that is crypto-graphically based..") - Add.CONTROLSET(identifier="DeviceAuthentication", + Add.SECURITY.CONTROLSET(identifier="DeviceAuthentication", content_identifier="IA-3", mitigates_identifier="CAPEC-148") - Add.CONTROLSET(identifier="DeviceAuthentication", + Add.SECURITY.CONTROLSET(identifier="DeviceAuthentication", content_identifier="IA-3-1") - Add.ImplControl(identifier="ic1", + Add.CPS.ImplControl(identifier="ic1", control_identifier="IA-3", dal="7") - Add.ImplControl(identifier="ic2", + Add.CPS.ImplControl(identifier="ic2", control_identifier="IA-3-1", dal="6") - Add.turnstile_HighLevelRequirement(identifier="HLR-4:v1", + Add.GE.HighLevelRequirement(identifier="HLR-4:v1", description = "CounterApplication shall verify that the data received on inflow is from InGate and is uncorrupted.", governs_identifier="CounterApplication") - Add.turnstile_HighLevelRequirement(identifier="HLR-4:v1", + Add.GE.HighLevelRequirement(identifier="HLR-4:v1", satisfies_identifier="IA-3") - Add.turnstile_HighLevelRequirement(identifier="HLR-4:v1", + Add.GE.HighLevelRequirement(identifier="HLR-4:v1", satisfies_identifier="IA-3-1") - Add.turnstile_LowLevelRequirement(identifier="IN-LLR-7", + Add.GE.LowLevelRequirement(identifier="IN-LLR-7", description="Input Thread shall validate udp messages via the use of a 256-bit crytographic key", satisfies_identifier="HLR-4:v1") - Add.turnstile_LowLevelRequirement(identifier="EXE-LLR-8", + Add.GE.LowLevelRequirement(identifier="EXE-LLR-8", description="On initialization Executive shall exchange cryptographic keys with the Ingate and outgate via tcp via port 63432.", satisfies_identifier="HLR-4:v1") createCDR("http://rack001/turnstiledata") diff --git a/Turnstile-Example/TurnstileDataCreation_SystemDesign.py b/Turnstile-Example/TurnstileDataCreation_SystemDesign.py index 3177c6f7..37a662b8 100755 --- a/Turnstile-Example/TurnstileDataCreation_SystemDesign.py +++ b/Turnstile-Example/TurnstileDataCreation_SystemDesign.py @@ -11,10 +11,9 @@ # material are those of the author(s) and do not necessarily reflect the views # of the Defense Advanced Research Projects Agency (DARPA). -import XML -import XML.SysML as SysML -from Evidence import createEvidenceFile, createCDR -import Evidence.Add as Add +from Logging import * +from Evidence import * +import Evidence.Add as Add import shutil import os.path @@ -26,34 +25,34 @@ def CreateCdrs(): createEvidenceFile(ingestionTitle="TurnstileIngestion-SystemDesign", ingestionDescription="Manual ingestion of Turnstile System Design") - Add.SYSTEM(identifier="Turnstile") + Add.SYSTEM.SYSTEM(identifier="Turnstile") - Add.turnstile_SystemComponent(identifier="InGate", + Add.GE.SystemComponent(identifier="InGate", partOf_identifier = "Turnstile") - Add.turnstile_SystemComponent(identifier="OutGate", + Add.GE.SystemComponent(identifier="OutGate", partOf_identifier = "Turnstile") - Add.turnstile_SystemComponent(identifier="CounterApplication", + Add.GE.SystemComponent(identifier="CounterApplication", partOf_identifier = "Turnstile") - Add.turnstile_SystemComponent(identifier="Display", + Add.GE.SystemComponent(identifier="Display", partOf_identifier = "Turnstile") - Add.turnstile_SystemInterfaceDefinition (identifier="inflow", + Add.GE.SystemInterfaceDefinition (identifier="inflow", source_identifier = "InGate", destination_identifier = "CounterApplication") - Add.turnstile_SystemInterfaceDefinition (identifier="outflow", + Add.GE.SystemInterfaceDefinition (identifier="outflow", source_identifier = "OutGate", destination_identifier = "CounterApplication") - Add.turnstile_SystemInterfaceDefinition (identifier="census", + Add.GE.SystemInterfaceDefinition (identifier="census", source_identifier = "CounterApplication", destination_identifier = "Display") - Add.turnstile_SystemInterfaceDefinition (identifier="census", + Add.GE.SystemInterfaceDefinition (identifier="census", destination_identifier = "InGate") createCDR("http://rack001/turnstiledata") diff --git a/ada/run_analysis.py b/ada/run_analysis.py index cedcf5e1..ef319de3 100755 --- a/ada/run_analysis.py +++ b/ada/run_analysis.py @@ -225,19 +225,19 @@ def output_using_scrapingtoolkit( """Outputs the analysis output using ScrapingToolKit.""" for component_type in analysis_output["component_types"]: - Evidence.Add.COMPONENT_TYPE( + Evidence.Add.SOFTWARE.COMPONENT_TYPE( identifier=component_type, ) for format_ in analysis_output["formats"]: - Evidence.Add.FORMAT( + Evidence.Add.FILE.FORMAT( identifier=format_.identifier, ) files = analysis_output["files"] for file_identifier in files: file: ontology.File = files[file_identifier] - Evidence.Add.FILE( + Evidence.Add.FILE.FILE( fileFormat_identifier=format_.identifier, filename=file.name, identifier=file_identifier, @@ -246,14 +246,14 @@ def output_using_scrapingtoolkit( components = analysis_output["components"] for component_identifier in components: component: ontology.SoftwareComponent = components[component_identifier] - Evidence.Add.SWCOMPONENT( + Evidence.Add.SOFTWARE.SWCOMPONENT( identifier=component_identifier, componentType_identifier=component.component_type, title=escape(component.title), definedIn_identifier=component.defined_in.identifier if component.defined_in else None ) for callee in component.mentions: - Evidence.Add.SWCOMPONENT( + Evidence.Add.SOFTWARE.SWCOMPONENT( identifier=component_identifier, mentions_identifier=callee.identifier, ) @@ -273,10 +273,10 @@ def analyze_traceability(unit: lal.AnalysisUnit) -> None: for component_id, requirement_ids in analysis_output.items(): for requirement_id in requirement_ids: - Evidence.Add.REQUIREMENT( + Evidence.Add.REQUIREMENTS.REQUIREMENT( identifier=requirement_id ) - Evidence.Add.SWCOMPONENT( + Evidence.Add.SOFTWARE.SWCOMPONENT( identifier=component_id, wasImpactedBy_identifier=requirement_id, ) @@ -294,13 +294,13 @@ def analyze_structure(unit: lal.AnalysisUnit) -> None: analysis_output = visitor.packages for package, components in analysis_output.items(): - Evidence.Add.SWCOMPONENT( + Evidence.Add.SOFTWARE.SWCOMPONENT( identifier=get_node_identifier(package), title=escape(package.doc_name), componentType_identifier=ontology.MODULE, ) for component in components: - Evidence.Add.SWCOMPONENT( + Evidence.Add.SOFTWARE.SWCOMPONENT( identifier=get_node_identifier(component), partOf_identifier=get_node_identifier(package), ) diff --git a/assist/bin/checks/bdu.pl b/assist/bin/checks/bdu.pl index 33c1bc86..b2cdd180 100644 --- a/assist/bin/checks/bdu.pl +++ b/assist/bin/checks/bdu.pl @@ -36,21 +36,21 @@ :- use_module(utils(float_equality)). prolog:message(bad_BDU_sum(Thing, Sum)) --> - [ 'BDU sum for ~w is ~:f, expected 1.0'-[Thing, Sum] ]. + [ 'CE-121: BDU sum for ~w is ~:f, expected 1.0'-[Thing, Sum] ]. prolog:message(multiple_beliefs(A, B1, B2)) --> - [ '~w has two (or more) belief values (such as ~w and ~w)'-[A, B1, B2] ]. + [ 'CE-122: ~w has two (or more) belief values (such as ~w and ~w)'-[A, B1, B2] ]. prolog:message(multiple_disbeliefs(A, B1, B2)) --> - [ '~w has two (or more) disbelief values (such as ~w and ~w)'-[A, B1, B2] ]. + [ 'CE-123: ~w has two (or more) disbelief values (such as ~w and ~w)'-[A, B1, B2] ]. prolog:message(multiple_uncertainties(A, B1, B2)) --> - [ '~w has two (or more) uncertainties values (such as ~w and ~w)'-[A, B1, B2] ]. + [ 'CE-124: ~w has two (or more) uncertainties values (such as ~w and ~w)'-[A, B1, B2] ]. prolog:message(no_belief(Thing)) --> - [ '~w has a disbelief or uncertainty value, but no belief'-[Thing] ]. + [ 'CE-125: ~w has a disbelief or uncertainty value, but no belief'-[Thing] ]. prolog:message(no_disbelief(Thing)) --> - [ '~w has a belief or uncertainty value, but no disbelief'-[Thing] ]. + [ 'CE-126: ~w has a belief or uncertainty value, but no disbelief'-[Thing] ]. prolog:message(no_uncertainty(Thing)) --> - [ '~w has a belief or disbelief value, but no uncertainty'-[Thing] ]. + [ 'CE-127: ~w has a belief or disbelief value, but no uncertainty'-[Thing] ]. % Belief-Disbelief-Uncertainty metrics should: % * have all three values diff --git a/assist/bin/checks/interfaceChecks.pl b/assist/bin/checks/interfaceChecks.pl index 0938093a..9db7acd1 100644 --- a/assist/bin/checks/interfaceChecks.pl +++ b/assist/bin/checks/interfaceChecks.pl @@ -26,7 +26,8 @@ % Similar to "nodegroups/query/query dataVer INTERFACE without destination SYSTEM.json" % check_INTERFACE_no_dest_SYSTEM(IFACE) :- - check_has_no_rel('http://arcos.rack/SYSTEM#INTERFACE', + check_has_no_rel('I1', + 'http://arcos.rack/SYSTEM#INTERFACE', 'http://arcos.rack/SYSTEM#destination', 'http://arcos.rack/SYSTEM#SYSTEM', IFACE). @@ -39,7 +40,8 @@ % Similar to "nodegroups/query/query dataVer INTERFACE without source SYSTEM.json" % check_INTERFACE_no_src_SYSTEM(IFACE) :- - check_has_no_rel('http://arcos.rack/SYSTEM#INTERFACE', + check_has_no_rel('I2', + 'http://arcos.rack/SYSTEM#INTERFACE', 'http://arcos.rack/SYSTEM#source', 'http://arcos.rack/SYSTEM#SYSTEM', IFACE). diff --git a/assist/bin/checks/sbvt_checks.pl b/assist/bin/checks/sbvt_checks.pl index 3914a073..ee8f49d5 100644 --- a/assist/bin/checks/sbvt_checks.pl +++ b/assist/bin/checks/sbvt_checks.pl @@ -30,7 +30,8 @@ % dataVer SBVT_Result without confirms_SBVT_Test.json" % check_Result_not_confirmed(I) :- - check_has_no_rel('http://arcos.AH-64D/Boeing#SBVT_Result', + check_has_no_rel('SBVT1', + 'http://arcos.AH-64D/Boeing#SBVT_Result', 'http://arcos.rack/TESTING#confirms', 'http://arcos.AH-64D/Boeing#SBVT_Test', I). @@ -50,7 +51,8 @@ % where the latter additionally qualifies the target of the former. % check_no_Test_requirement(I) :- - check_has_no_rel('http://arcos.AH-64D/Boeing#SBVT_Test', + check_has_no_rel('SBVT2', + 'http://arcos.AH-64D/Boeing#SBVT_Test', 'http://arcos.rack/TESTING#verifies', 'http://arcos.AH-64D/Boeing#SRS_Req', %% 'http://arcos.rack/REQUIREMENTS#REQUIREMENT', diff --git a/assist/bin/checks/software_checks.pl b/assist/bin/checks/software_checks.pl index 70a8261f..e0287569 100644 --- a/assist/bin/checks/software_checks.pl +++ b/assist/bin/checks/software_checks.pl @@ -26,20 +26,25 @@ % Similar to "nodegroups/query/query dataVer SOFTWARE without partOf SOFTWARE.json" % check_SOFTWARE_COMPONENT_contained(I) :- - check_has_no_rel('http://arcos.rack/SOFTWARE#SWCOMPONENT', - 'http://arcos.rack/SOFTWARE#subcomponentOf', + check_has_no_rel('S1', + 'http://arcos.rack/SOFTWARE#SWCOMPONENT', + 'http://arcos.rack/SOFTWARE#partOf', 'http://arcos.rack/SOFTWARE#SWCOMPONENT', I). %! check_SOFTWARE_COMPONENT_impact is det. % -% Checks every SOFTWARE partOf target is a SOFTWARE. -% Always succeeds, emits warnings. +% Checks every SWCOMPONENT has an associated REQUIREMENT if that +% SWCOMPONENT is a MODULE. % -% Similar to "nodegroups/query/query dataVer SOFTWARE without partOf SOFTWARE.json" +% Similar to "nodegroups/query/query dataVer unlinked SWCOMPONENT.json" % check_SOFTWARE_COMPONENT_impact(I) :- - check_has_no_rel('http://arcos.rack/SOFTWARE#SWCOMPONENT', + rack_data_instance('http://arcos.rack/SOFTWARE#SWCOMPONENT', I), + rdf(I, 'http://arcos.rack/SOFTWARE#componentType', CT), + rack_instance_ident(CT, "Module"), + check_has_no_rel('S2', + 'http://arcos.rack/SOFTWARE#SWCOMPONENT', 'http://arcos.rack/PROV-S#wasImpactedBy', 'http://arcos.rack/REQUIREMENTS#REQUIREMENT', I). diff --git a/assist/bin/checks/srs_checks.pl b/assist/bin/checks/srs_checks.pl index deb1bb70..f851f690 100644 --- a/assist/bin/checks/srs_checks.pl +++ b/assist/bin/checks/srs_checks.pl @@ -20,17 +20,21 @@ %! check_SRS_insertion_source is det. % -% Checks that no SRS_Req is inserted by any activity other than -% "SRS Data Ingestion". Always succeeds, emits warnings. +% Checks that at least one "insertedBy" activity for an SRS_Req is the "SRS +% Data Ingestion". Always succeeds, emits warnings. % % Similar to "nodegroups/query/query dataVer SRS_Req dataInsertedBy other than SRS Data Ingestion.json" -% + check_SRS_insertion_source(I) :- T = 'http://arcos.AH-64D/Boeing#SRS_Req', rack_data_instance(T, I), rdf(I, 'http://arcos.rack/PROV-S#dataInsertedBy', A), + must_have_srs_data_ingestion(T,I,A). + +must_have_srs_data_ingestion(T,I,A) :- + rack_instance_ident(A, "SRS Data Ingestion"), !. +must_be_srs_data_ingestion(T,I,A) :- rack_instance_ident(A, AName), - \+ AName = 'SRS Data Ingestion', rack_instance_ident(I, IN), rdf(A, rdf:type, ATy), print_message(warning, invalid_srs_req_inserter(T, I, IN, ATy, A, AName)). @@ -64,7 +68,8 @@ % Similar to "nodegroups/query/query dataVer SRS_Req without description.json" % check_SRS_Req_description(I) :- - check_has_no_rel('http://arcos.AH-64D/Boeing#SRS_Req', + check_has_no_rel('SRS1', + 'http://arcos.AH-64D/Boeing#SRS_Req', 'http://arcos.rack/PROV-S#description', I). @@ -77,8 +82,9 @@ % Similar to "nodegroups/query/query dataVer SubDD_Req without satisfies SRS_Req.json" % check_SubDD_Req_satisfies_SRS_Req(I) :- - check_has_no_rel('http://arcos.AH-64D/Boeing#SubDD_Req', - 'http://arcos.rack/TESTING#satisifes', + check_has_no_rel('SRS2', + 'http://arcos.AH-64D/Boeing#SubDD_Req', + 'http://arcos.rack/REQUIREMENTS#satisfies', 'http://arcos.AH-64D/Boeing#SRS_Req', I). @@ -87,18 +93,23 @@ { prefix_shorten(ITy, SIT), prefix_shorten(Inst, SII), prefix_shorten(InsTy, STT), - prefix_shorten(InsI, STI) + prefix_shorten(InsI, STI), + rdf_literal_val_type(InstIdent, IName, _), + rdf_literal_val_type(InsN, InsName, _) }, - [ '~w instance ~w (~w) inserted by invalid ACTIVITY: ~w ~w (~w)'-[ - SIT, SII, InstIdent, STT, STI, InsN ] ]. + [ 'CE-132: ~w instance ~w inserted by invalid ACTIVITY: ~w ~w~n Instance Domain: ~w~n Activity Domain: ~w~n'-[ + SIT, IName, STT, InsName, SII, STI ] ]. prolog:message(invalid_srs_req_satisfies(ITy, Inst, InstIdent, TgtTy, Tgt, TgtIdent)) --> { prefix_shorten(Inst, SI), prefix_shorten(ITy, ST), prefix_shorten(Tgt, SR), - prefix_shorten(TgtTy, SRT) + prefix_shorten(TgtTy, SRT), + rdf_literal_val_type(InstIdent, IName, _), + rdf_literal_val_type(TgtIdent, TName, _) + }, - [ '~w instance ~w (~w) satisifes something not a PIDS_Req or CSID_Req: ~w ~w (~w)'-[ - ST, SI, InstIdent, SRT, SR, TgtIdent ] ]. + [ 'CE-133: ~w instance ~w satisifes something not a PIDS_Req or CSID_Req: ~w ~w~n Instance Domain: ~w~n Satisfies Domain: ~w~n'-[ + ST, IName, SRT, TName, SI, SR ] ]. %! check_SRS is det. diff --git a/assist/bin/checks/system_checks.pl b/assist/bin/checks/system_checks.pl index 1c94bda9..4cf8c158 100644 --- a/assist/bin/checks/system_checks.pl +++ b/assist/bin/checks/system_checks.pl @@ -26,7 +26,8 @@ % Similar to "nodegroups/query/query dataVer SYSTEM without partOf SYSTEM.json" % check_SYSTEM_partOf_SYSTEM(I) :- - check_has_no_rel('http://arcos.rack/SYSTEM#SYSTEM', + check_has_no_rel('SYS1', + 'http://arcos.rack/SYSTEM#SYSTEM', 'http://arcos.rack/SYSTEM#partOf', 'http://arcos.rack/SYSTEM#SYSTEM', I). diff --git a/assist/bin/rack/analyze.pl b/assist/bin/rack/analyze.pl index df462c24..3a65725c 100644 --- a/assist/bin/rack/analyze.pl +++ b/assist/bin/rack/analyze.pl @@ -95,13 +95,14 @@ class_comment(_, "?"). report_rack_properties(E) :- - findall(P, property_target(E, P, _, _, _), AllP), + findall(P, property_target(E, P, _, _), AllP), sort(AllP, SortP), findall(P, (member(P, SortP), report_rack_properties(E, P)), _PS). report_rack_properties(E, P) :- - property_target(E, P, PType, T, Extra), + property_target(E, P, PType, Extra), + rdf(P, rdfs:range, T), show_property(E, P, PType, T, Extra). show_property(_E, P, unique, T, Extra) :- @@ -286,8 +287,9 @@ report_instance_missingprop(T, I, Property) :- - property_target(T, Property, _Usage, Target, _Restr), + property_target(T, Property, _Usage, _Restr), \+ rdf(I, Property, _Val), + rdf(Property, rdfs:range, Target), prefix_shorten(Target, ST), format(' ?. ~w = ? :: ~w~n', [Property, ST]). diff --git a/assist/bin/rack/check.pl b/assist/bin/rack/check.pl index 95d472e4..b0ed496a 100644 --- a/assist/bin/rack/check.pl +++ b/assist/bin/rack/check.pl @@ -117,17 +117,16 @@ print_message(error, maybe_restriction(T, I, IName, Property, VSLen))). check_target_type(Property, I, T) :- - property_extra(T, Property, _Restr), - rdf(Property, rdfs:range, TTy), - rdf_reachable(Target, rdfs:subClassOf, TTy), + property(T, Property, _), + \+ rdf_is_bnode(T), has_interesting_prefix(Property), rdf(I, Property, Val), - \+ rdf_is_literal(Val), % TODO check these as well? - rdf(Val, rdf:type, DefTy), - DefTy \= Target, - \+ rdf_reachable(DefTy, rdfs:subClassOf, Target), + \+ rdf_is_literal(Val), + \+ rack_instance_target(I, Property, Val), rack_instance_ident(I, IName), - print_message(error, property_value_wrong_type(T, I, IName, Property, DefTy, Val, Target)). + rdf(Val, rdf:type, ValTy), + property_range_type(T, Property, ModelTy), + print_message(error, property_value_wrong_type(T, I, IName, Property, ValTy, Val, ModelTy)). check_target_type_restrictions(Property, I, T) :- rdf(T, rdfs:subClassOf, R), @@ -205,20 +204,22 @@ % True for any SrcClass that has no Prop relationship to any target % instance. Returns the SrcInst that this occurs for as well as % generating a warning. -check_has_no_rel(SrcClass, Prop, SrcInst) :- +check_has_no_rel(Context, SrcClass, Prop, SrcInst) :- + is_valid_property(Context, SrcClass, Prop), rack_data_instance(SrcClass, SrcInst), none_of(SrcInst, rack_instance_relationship(SrcClass, Prop)), rack_instance_ident(SrcInst, SrcName), - print_message(warning, missing_any_tgt(SrcClass, SrcInst, SrcName, Prop)). + print_message(warning, missing_any_tgt(Context, SrcClass, SrcInst, SrcName, Prop)). % True for any SrcClass that has no Prop relationship to an instance % of the specific target class. Returns the SrcInst that this occurs % for as well as generating a warning. -check_has_no_rel(SrcClass, Prop, TgtClass, SrcInst) :- +check_has_no_rel(Context, SrcClass, Prop, TgtClass, SrcInst) :- + is_valid_property(Context, SrcClass, Prop), rack_data_instance(SrcClass, SrcInst), none_of(SrcInst, rack_instance_relationship(SrcClass, Prop, TgtClass)), rack_instance_ident(SrcInst, SrcName), - print_message(warning, missing_tgt(SrcClass, SrcInst, SrcName, Prop, TgtClass)), + print_message(warning, missing_tgt(Context, SrcClass, SrcInst, SrcName, Prop, TgtClass)), % -- if the above fails, it's probably useful to see if there are % *any* targets of Src--[Rel]--> check_also_has_no_rel(SrcClass, Prop). @@ -227,6 +228,46 @@ check_has_no_rel(SrcClass, Rel, SrcInst), !. check_also_has_no_rel(_, _). +is_valid_property(_, SrcClass, Property) :- + rdf(Property, rdfs:domain, PropClass), + rdf_reachable(SrcClass, rdfs:subClassOf, PropClass), !. +is_valid_property(Context, SrcClass, Property) :- + print_message(error, invalid_property_in_check(Context, SrcClass, Property)), + fail. + + +% Sometimes there will be things in SADL like: +% +% FOO is a type of X. +% p of FOO only has values of type Y. +% +% and the problem is that p is not defined for X, but for (unrelated) Z instead. +% SADL will not complain and will generate a property constraint, but that +% property cannot ever exist. This checks for that situation. +check_invalid_domain(Property) :- + check_invalid_domain_class(_SrcClass, Property, _DefinedClass). + +check_invalid_domain_class(SrcClass, Property, DefinedClass) :- + rdf(SrcClass, _, B), + rack_ref(_, SrcClass), + rdf_is_bnode(B), + rdf(B, rdf:type, owl:'Restriction'), + rdf(B, owl:onProperty, Property), + rdf(Property, rdfs:domain, DefinedClass), + \+ rdf_reachable(SrcClass, rdfs:subClassOf, DefinedClass), + print_message(error, invalid_domain(SrcClass, Property, DefinedClass)). + +check_invalid_domain_class(SrcClass, Property, DefinedClass) :- + property(SrcClass, Property, _Usage), + rdf_reachable(Property, rdfs:subPropertyOf, ParentProp), + property(DefinedClass, ParentProp, _ParentUsage), + \+ rdf_reachable(SrcClass, rdfs:subClassOf, DefinedClass), + ( Property = ParentProp, + print_message(error, invalid_domain(SrcClass, Property, DefinedClass)) + ; Property \= ParentProp, + print_message(error, invalid_subclass_domain(SrcClass, Property, ParentProp, DefinedClass)) + ). + actual_val((V^^VT),VT,(V^^VT)). % normal actual_val(V,VT,Val) :- @@ -268,9 +309,9 @@ prolog:message(class_missing_note(Class)) --> - [ 'No Note/Description for class ~w'-[Class] ]. + [ 'CE-100: No Note/Description for class ~w'-[Class] ]. prolog:message(not_prov_s_thing_class(Class)) --> - [ 'Not a subclass of PROV-S#THING: ~w'-[Class] ]. + [ 'CE-101: Not a subclass of PROV-S#THING: ~w'-[Class] ]. prolog:message(num_classes(What, Count)) --> [ 'There are ~:d RACK ~w.'-[Count, What] ]. prolog:message(cardinality_violation(InstType, Instance, InstanceIdent, Property, Specified, Actual)) --> @@ -278,38 +319,42 @@ prefix_shorten(InstType, ST), prefix_shorten(Property, SP) }, - [ '~w ~w (~w) . ~w has ~d values but an allowed cardinality of ~d~n'-[ - ST, SI, InstanceIdent, SP, Actual, Specified] ]. + [ 'CE-103: ~w ~w . ~w has ~d values but an allowed cardinality of ~d~n Domain: ~w~n'-[ + ST, InstanceIdent, SP, Actual, Specified, SI ] ]. prolog:message(min_cardinality_violation(InstType, Instance, IName, Property, Specified, Actual)) --> { prefix_shorten(Instance, SI), prefix_shorten(InstType, ST), - prefix_shorten(Property, SP) + prefix_shorten(Property, SP), + rdf_literal_val_type(IName, InstName, _) }, - [ '~w ~w (~w) . ~w has ~d values but a minimum allowed cardinality of ~d~n'-[ - ST, SI, IName, SP, Actual, Specified] ]. + [ 'CE-104: ~w ~w . ~w has ~d values but a minimum allowed cardinality of ~d~n Domain: ~w~n'-[ + ST, InstName, SP, Actual, Specified, SI] ]. prolog:message(max_cardinality_violation(InstType, Instance, IName, Property, Specified, Actual)) --> { prefix_shorten(Instance, SI), prefix_shorten(InstType, ST), - prefix_shorten(Property, SP) + prefix_shorten(Property, SP), + rdf_literal_val_type(IName, InstName, _) }, - [ '~w ~w (~w) . ~w has ~d values but a maximum allowed cardinality of ~d~n'-[ - ST, SI, IName, SP, Actual, Specified] ]. + [ 'CE-105: ~w ~w . ~w has ~d values but a maximum allowed cardinality of ~d~n Domain: ~w~n'-[ + ST, InstName, SP, Actual, Specified, SI ] ]. prolog:message(maybe_restriction(InstType, Instance, IName, Property, Actual)) --> { prefix_shorten(Instance, SI), prefix_shorten(InstType, ST), - prefix_shorten(Property, SP) + prefix_shorten(Property, SP), + rdf_literal_val_type(IName, InstName, _) }, - [ '~w ~w (~w) . ~w must have only zero or one instance, but has ~d~n'-[ - ST, SI, IName, SP, Actual] ]. + [ 'CE-106: ~w ~w . ~w must have only zero or one instance, but has ~d~n Domain: ~w~n'-[ + ST, InstName, SP, Actual, SI ] ]. prolog:message(invalid_value_in_enum(InstType, Instance, IName, Property, Value, Valid)) --> { prefix_shorten(Instance, SI), prefix_shorten(InstType, ST), prefix_shorten(Property, SP), prefix_shorten(Value, SV), - maplist(prefix_shorten, Valid, SL) + maplist(prefix_shorten, Valid, SL), + rdf_literal_val_type(IName, InstName, _) }, - [ '~w ~w (~w) . ~w value of ~w is invalid, allowed enumerations: ~w~n'-[ - ST, SI, IName, SP, SV, SL] ]. + [ 'CE-107: ~w ~w . ~w value of ~w is invalid, allowed enumerations: ~w~n Domain: ~w~n'-[ + ST, InstName, SP, SV, SL, SI ] ]. prolog:message(value_outside_range(InstType, Instance, IName, Property, Ty, V, MinV, MaxV)) --> { prefix_shorten(Instance, SI), prefix_shorten(InstType, ST), @@ -317,38 +362,52 @@ (rdf_equal(xsd:T, Ty) ; T = Ty), (rdf_equal(Val^^Ty, V) ; Val = V), (rdf_equal(Min^^Ty, MinV) ; Min = MinV), - (rdf_equal(Max^^Ty, MaxV) ; Max = MaxV) + (rdf_equal(Max^^Ty, MaxV) ; Max = MaxV), + rdf_literal_val_type(IName, InstName, _) }, - [ '~w, ~w (~w) . ~w value of ~w is outside ~w range [~w .. ~w]~n'-[ - ST, SI, IName, SP, Val, T, Min, Max ] ]. + [ 'CE-108: ~w, ~w . ~w value of ~w is outside ~w range [~w .. ~w]~n Domain: ~w~n'-[ + ST, InstName, SP, Val, T, Min, Max, SI ] ]. prolog:message(multiple_types_for_instance(Instance, Types)) --> { prefix_shorten(Instance, SI), maplist(prefix_shorten, Types, STys) }, - [ 'Instance ~w has multiple types: ~w~n'-[SI, STys] ]. + [ 'CE-109: Instance ~w has multiple types: ~w~n'-[SI, STys] ]. prolog:message(property_value_wrong_type(InstType, Instance, IName, Property, DefType, Val, ValType)) --> { prefix_shorten(Instance, SI), prefix_shorten(InstType, ST), prefix_shorten(Property, SP), prefix_shorten(DefType, SDTy), prefix_shorten(ValType, SVTy), - prefix_shorten(Val, SV) + prefix_shorten(Val, SV), + rdf_literal_val_type(IName, InstName, _) }, - [ '~w instance property ~w (~w) . ~w of ~w should be a ~w but is a ~w'-[ - ST, SI, IName, SP, SV, SVTy, SDTy ] ]. + [ 'CE-110: ~w instance property ~w . ~w of ~w should be a ~w but is a ~w~n Domain: ~w'-[ + ST, InstName, SP, SV, SVTy, SDTy, SI ] ]. prolog:message(property_value_wrong_type_in(InstType, Instance, IName, Property, DefType, Val, ValTypes)) --> { prefix_shorten(Instance, SI), prefix_shorten(InstType, ST), prefix_shorten(Property, SP), prefix_shorten(DefType, SDTy), findall(SVT, (member(VT, ValTypes), prefix_shorten(VT, SVT)), SVTys), - prefix_shorten(Val, SV) + prefix_shorten(Val, SV), + rdf_literal_val_type(IName, InstName, _) + }, + [ 'CE-111: ~w instance property ~w . ~w of ~w should be one of ~w but is a ~w~n Domain: ~w'-[ + ST, InstName, SP, SV, SVTys, SDTy, SI ] ]. +prolog:message(missing_any_tgt(Context, SrcClass, SrcInst, SrcIdent, Rel)) --> + [ 'CE-112-~w: ~w ~w has no ~w target relationships~n Domain: ~w'-[ + Context, SrcClass, SrcIdent, Rel, SrcInst] ]. +prolog:message(missing_tgt(Context, SrcClass, SrcInst, SrcIdent, Rel, TgtClass)) --> + { rdf_literal_val_type(SrcIdent, IdentName, _) }, - [ '~w instance property ~w (~w) . ~w of ~w should be one of ~w but is a ~w'-[ - ST, SI, IName, SP, SV, SVTys, SDTy ] ]. -prolog:message(missing_any_tgt(SrcClass, SrcInst, SrcIdent, Rel)) --> - [ '~w ~w (~w) has no ~w target relationships'-[ - SrcClass, SrcInst, SrcIdent, Rel] ]. -prolog:message(missing_tgt(SrcClass, SrcInst, SrcIdent, Rel, TgtClass)) --> - [ '~w ~w (~w) missing the ~w target of type ~w'-[ - SrcClass, SrcInst, SrcIdent, Rel, TgtClass] ]. + [ 'CE-113-~w: ~w ~w missing the ~w target of type ~w~n Domain: ~w~n'-[ + Context, SrcClass, IdentName, Rel, TgtClass, SrcInst ] ]. +prolog:message(invalid_domain(SrcClass, Property, DefinedClass)) --> + [ 'CE-114: Property ~w was referenced on class ~w, but that property is defined for the unrelated class ~w~n'-[ + Property, SrcClass, DefinedClass] ]. +prolog:message(invalid_subclass_domain(SrcClass, Property, ParentProperty, DefinedClass)) --> + [ 'CE-115: Property ~w was referenced on class ~w, but that property is a sub-type of ~w, which is defined for the unrelated class ~w~n'-[ + Property, SrcClass, ParentProperty, DefinedClass] ]. +prolog:message(invalid_property_in_check(Context, SrcClass, Property)) --> + [ 'CE-116-~w: INVALID CHECK for ~w property on ~w class!~n'-[ + Context, Property, SrcClass] ]. diff --git a/assist/bin/rack/check_runner.pl b/assist/bin/rack/check_runner.pl index 3979c2c6..bf7152c2 100644 --- a/assist/bin/rack/check_runner.pl +++ b/assist/bin/rack/check_runner.pl @@ -55,6 +55,9 @@ check_each_with(check_instance_types, Num). runnable_check("instance property issues", Num) :- check_each_with(check_instance_property_violations, Num). +runnable_check("property domain issues", Num) :- + check_each_with(check_invalid_domain, Num). + runnable_check("INTERFACE issues", Num) :- check_each_with(check_INTERFACE, Num). runnable_check("SBVT issues", Num) :- check_each_with(check_SBVT, Num). runnable_check("SRS issues", Num) :- check_each_with(check_SRS, Num). diff --git a/assist/bin/rack/model.pl b/assist/bin/rack/model.pl index 339d8e27..341cd75f 100644 --- a/assist/bin/rack/model.pl +++ b/assist/bin/rack/model.pl @@ -44,6 +44,7 @@ property/3, property_target/4, property_extra/3, + property_range_type/3, rack_instance/2, rack_instance_assert/2, rack_property_assert/3, @@ -54,6 +55,7 @@ rack_instance_relationship/3, rack_instance_relationship/4, rack_instance_ident/2, + rack_instance_target/3, rack_ontology_node/3, rdf_literal_val_type/3, @@ -449,7 +451,8 @@ property(Class, Property, unique) :- % Property is unique to this class and directly associated - rdf(Property, rdfs:domain, Class). + rdf(Property, rdfs:domain, Class), + \+ rdf_is_bnode(Class). property(Class, Property, shared) :- % Property is shared with multiple classes, specified in a list. rdf(Property, rdfs:domain, Intermediary), @@ -513,11 +516,20 @@ property_extra(Class, Property, value_from(Cls)) :- property_restriction(Class, Property, B), rdf(B, owl:someValuesFrom, Cls). +property_extra(Class, Property, value_from(Cls)) :- + property_restriction(Class, Property, B), + rdf(B, owl:allValuesFrom, Cls). property_extra(Class, Property, normal) :- property(Class, Property, _). rdf_numeric(Value, Num) :- rdf_equal(Value, Num^^xsd:int). rdf_numeric(Value, Num) :- rdf_equal(Value, Num^^xsd:integer). +property_range_type(Class, Property, RangeType) :- + property_restriction(Class, Property, value_from(RangeType)), !. +property_range_type(_Class, Property, RangeType) :- + rdf(Property, rdfs:domain, RangeType). + + %! rdf_literal_val_type(+Literal:atom, -Value:atom, -Type:Atom) is semidet. %! rdf_literal_val_type(-Literal:atom, +Value:atom, +Type:Atom) is semidet. % @@ -643,6 +655,22 @@ rdf(I, 'http://arcos.rack/PROV-S#identifier', N), !. rack_instance_ident(_, ""). +%! rack_instance_target(+SrcInst:atom, -Rel:atom, -TgtInst:atom) +% +% Returns the target instance for the source instance and a specific relationship +% or all relationships, subject to any property range constraints. + +rack_instance_target(SrcInst, Rel, TgtInst) :- + rdf(SrcInst, rdf:type, SrcClass), + property_extra(SrcClass, Rel, Restriction), + instance_target(SrcInst, Rel, Restriction, TgtInst). + +instance_target(SrcInst, Rel, value_from(TgtClass), TgtInst) :- + rdf(SrcInst, Rel, TgtInst), + rdf(TgtInst, rdfs:isSubClassOf, TgtClass). +instance_target(SrcInst, Rel, Restr, TgtInst) :- + Restr \= value_from(_), + rdf(SrcInst, Rel, TgtInst). %% ---------------------------------------------------------------------- %% Loading generated data from .rack files diff --git a/assist/databin/ar b/assist/databin/ar index f3fa8bb8..68a35b3d 100755 --- a/assist/databin/ar +++ b/assist/databin/ar @@ -33,7 +33,7 @@ fi if (( creating )) ; then outf=${!archive_file_idx} - rackf="$(dirname ${outf})/.$(basename ${outf}).rack" + rackf="$(dirname "${outf}")/.$(basename "${outf}").rack" ( export IFS="," diff --git a/cli/README.md b/cli/README.md index d8f49da0..a7a28919 100644 --- a/cli/README.md +++ b/cli/README.md @@ -133,7 +133,8 @@ usage: rack [-h] [--base-url BASE_URL] [--triple-store TRIPLE_STORE] [--triple-s RACK in a Box toolkit positional arguments: - {data,model,nodegroups} + {manifest,data,model,nodegroups} + manifest Ingestion package automation data Import or export CSV data model Interact with SemTK model nodegroups Interact with SemTK nodegroups @@ -149,7 +150,7 @@ optional arguments: Assign logger severity level ``` -The `rack` command is split into three subcommands: `data`, `model`, +The `rack` command is split into four subcommands: `manifest`, `data`, `model`, and `nodegroups`. Each of these subcommands offers its own help listing. For example try `rack data --help` for more information about the flags available when interacting with the data store. @@ -165,6 +166,23 @@ The `data` subcommand is used to import CSV and OWL data files using the RACK ontology as well as exporting CSV files using nodegroups stored in SemTK. +The `manifest` subcommand is used to import a complete set of CSV and OWL data +from multiple files as specified by a single top-level manifest file. This +subcommand subsumes the `data`, `nodegroups`, and `model` subcommands and is the +recommended way to initialize a RACK instance for use. + +The following options default to their matching ENVIRONMENT variables if they exist: + +- --base-url : $BASE_URL +- --triple-store : $TRIPLE_STORE +- --log-level : $LOG_LEVEL + +For example, **ingestion warnings can be suppressed** by either using +`rack --log-level ERROR data import...` or by executing this command +in a bash script before calling 'rack': + +`export LOG_LEVEL=ERROR` + ## Data Ingestion Configuration file format The import configuration files are YAML files that specify the target @@ -195,7 +213,7 @@ extra-data-graphs: - "http://rack001/otherdata" - "http://rack001/somedata" ingestion-steps: -- {nodegroup: "ingest_SYSTEM", csv: "SYSTEM.csv"} +- {nodegroup: "ingest_SYSTEM", csv: "SYSTEM.csv"} - {nodegroup: "ingest_INTERFACE", csv: "INTERFACE.csv"} - {class: "http://arcos.rack/HAZARD#HAZARD", csv: "HAZARD.csv"} - {owl: "example.owl"} @@ -354,6 +372,79 @@ Ingest-SoftwareComponentTestResult Node group to ingest Sof[...] [...] ``` +## Ingestion Packages (manifest) + +The bulk ingestion of multiple models, nodegrounds, and data can be +automated using a manifest file. + +```yaml +name: "short name" +description: "optional long package description" +footprint: + model-graphs: + - "http://rack001/model" + data-graphs: + - "http://rack001/data" +steps: + - manifest: another.yaml + - model: model-manifest.yaml + - data: data-manifest.yaml + - copygraph: + from-graph: 'http://rack001/data' + to-graph: 'uri://DefaultGraph' +``` + +The `name` and `description` fields are informational and are used to +provide a nicer UI for users loading an ingestion package. + +The `footprint` section is optional. When it is provided it allows +the ingestion UI to automatically populate a connection string. In +addition these graph URIs will be cleared if the manifest is loaded +using the `--clear` flag. + +The `steps` section is required. It describes the sequential process +of loading this ingestion package. This section must be a list of singleton +maps. There are currently 4 kinds of step you can use in a manifest: + +- `manifest` steps take a relative path argument and recursively + import that manifest file. +- `model` steps take a relative path argument and invoke + `rack model import` on that file. +- `nodegroups` steps take a relative path argument and invoke + `rack nodegroups import` on that directory. +- `data` steps take a relative path argument and invoke + `rack data import` on that directory. +- `copygraph` steps take a dictionary specifying a `from-graph` URI + and a `to-graph` URI and perform a merge copying triples from the + from graph into the to graph. + +All file paths are resolved relative to the location of the manifest +YAML file. + +### CLI support + +```text +usage: rack manifest import [-h] [--clear] [--default-graph] manifest + +positional arguments: + manifest Manifest YAML file + +optional arguments: + -h, --help show this help message and exit + --clear Clear footprint before import + --default-graph Load whole manifest into default graph +``` + +Manifests can be loaded using `rack manifest import`. + +To clear all graphs mentioned in the `footprint` use `--clear`. For example: +`rack manifest import --clear my-manifest.yaml` + +Fuseki happens to run faster when data is stored in the *default graph*. +To load a complete ingestion manifest into the default graph use +`--default-graph`. For example: +`rack manifest import --default-graph my-manifest.yaml` + ## Hacking See [dev/README.md](https://github.com/ge-high-assurance/RACK/tree/master/cli/dev). @@ -363,7 +454,7 @@ Don't copy below to wiki; wiki already has copyright in _Footer.md --> --- -Copyright (c) 2021, Galois, Inc. +Copyright (c) 2021-2022, Galois, Inc. All Rights Reserved diff --git a/cli/docker_start.sh b/cli/docker_start.sh new file mode 100755 index 00000000..8aba8a07 --- /dev/null +++ b/cli/docker_start.sh @@ -0,0 +1,60 @@ +#!/usr/bin/env bash +# shellcheck disable=SC2086,SC2128,SC2048 + +default_version=v11 + +if [ "$1" == "--help" ] || [ "$1" == "-?" ] || [ "$1" == "help" ] ; then + echo "This tool can be used to (re-)start a RACK docker image (using" + echo "either the docker or podman commands, depending on which is" + echo "installed). The optional command-line argument specifies which" + echo "version of the RACK image to start; the default is ${default_version}" + exit 0 +fi + +set -e -o pipefail + +image="gehighassurance/rack-box:${1:-$default_version}" + +cmd_exists () { type -p $1 > /dev/null 2>&1; } +# shellcheck disable=SC1075 +if cmd_exists podman +then cmd=podman +else if cmd_exists docker + then cmd=docker + else >&2 echo 'Cannot find docker or podman installation!'; exit 1; + fi +fi + +name=$(echo ${image} | cut -d/ -f2 | sed -e so:o-o) + +containerName () { # $1 is image name + grep $1 <(${cmd} container ls $2 --format '{{ .Image}}~{{ .Names}}') | cut -d~ -f2 +} + +mapfile -t existing < <(containerName ${image} -a) + +if containerName ${image} >/dev/null +then echo RACK docker image already running + +elif [ 0 == ${#existing[*]} ] +then ${cmd} run --detach --name ${name} \ + -p 3030:3030 \ + -p 8050:8050 \ + -p 8080:80 \ + -p 12050-12091:12050-12091 \ + ${image} + echo Started RACK container image: ${image} + echo Stop container by typing: + echo " $ ${cmd} container stop $(containerName ${image})" + +elif [ 1 == ${#existing[*]} ] +then echo Restarting stopped RACK container + echo Note: To discard and start a fresh container, type: + echo " $ ${cmd} container stop ${existing}" + echo " $ ${cmd} container rm ${existing}" + ${cmd} start ${existing} +else echo Multiple stopped RACK containers exist: ${existing[*]} + echo Not sure which one to restart. Remove extras, or manually start one via: + echo " $ ${cmd} container start NAME" + false # this is considered an error result +fi diff --git a/cli/optimize.sh b/cli/optimize.sh new file mode 100755 index 00000000..03abcbeb --- /dev/null +++ b/cli/optimize.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +# Copyright (c) 2022, General Electric Company and Galois, Inc. + +set -eu + +echo "Stopping Fuseki" +systemctl stop fuseki + +RACK_DB="/etc/fuseki/databases/RACK" +RACK_FUSEKI_CONFIG="/etc/fuseki/configuration/RACK.ttl" +# Currently using TDB1, this should become tdb2.tdbstats for TDB2 +TDBSTATS="/opt/jena/bin/tdbstats" +TMP_STATS="/tmp/stats.opt" +# Usually it goes into a `Data-0001` subdirectory, but it seems that with our +# RACK.ttl configuration we just don't have the extra directory. +STATS_DIR="${RACK_DB}" +STATS="${STATS_DIR}/stats.opt" + +if [[ ! -x "${TDBSTATS}" ]]; then + echo "Aborting, ${TDBSTATS} is not executable" + exit 1 +fi + +echo "Running tdbstats" +mkdir -p "${STATS_DIR}" +# NOTE: Jena documentation mandates using a temporary file +"${TDBSTATS}" --desc "${RACK_FUSEKI_CONFIG}" > "${TMP_STATS}" && mv "${TMP_STATS}" "${STATS}" + +echo "Now printing the contents of stats.opt:" +cat "${STATS}" + +echo "Restarting Fuseki" +chown fuseki "${STATS}" +systemctl start fuseki diff --git a/cli/rack/__init__.py b/cli/rack/__init__.py index 967ddbe0..e7a9efbd 100755 --- a/cli/rack/__init__.py +++ b/cli/rack/__init__.py @@ -20,34 +20,34 @@ import csv from enum import Enum, unique from io import StringIO -import json import logging from os import environ from pathlib import Path import re import sys -from typing import Any, Callable, Dict, List, Optional, NewType, TypeVar, cast +from typing import Any, Callable, Dict, List, Optional, NewType, Set, TypeVar, cast from types import SimpleNamespace +import tempfile +import shutil # library imports -import colorama from colorama import Fore, Style -from jsonschema import ValidationError, validate +from jsonschema import validate from tabulate import tabulate import requests import semtk3 from semtk3.semtktable import SemtkTable import yaml +from rack.manifest import Manifest, StepType +from rack.types import Connection, Url + __author__ = "Eric Mertens" __email__ = "emertens@galois.com" # NOTE: Do **not** use the root logger via `logging.command(...)`, instead use `logger.command(...)` logger = logging.getLogger(__name__) -Connection = NewType('Connection', str) -Url = NewType('Url', str) - class Graph(Enum): """Enumeration of SemTK graph types""" DATA = "data" @@ -73,9 +73,12 @@ def __str__(self) -> str: return self.value DEFAULT_BASE_URL: Url = Url("http://localhost") +DEFAULT_OPTIMIZE_URL: Url = Url("http://localhost:8050/optimize") MODEL_GRAPH: Url = Url("http://rack001/model") DEFAULT_DATA_GRAPH = Url("http://rack001/data") +DEFAULT_TRIPLE_STORE = Url("http://localhost:3030/RACK") +DEFAULT_TRIPLE_STORE_TYPE = "fuseki" INGEST_CSV_CONFIG_SCHEMA: Dict[str, Any] = { 'type': 'object', @@ -134,6 +137,12 @@ def __str__(self) -> str: ] } }, + 'model-graphs': { + 'oneOf': [ + {'type': 'string'}, + {'type': 'array', 'items': {'type': 'string'}}, + ] + }, 'data-graph': {'type': 'string'}, 'extra-data-graphs': { 'type': 'array', @@ -148,57 +157,13 @@ def __str__(self) -> str: 'properties': { 'files': { 'type': 'array', - 'contains': {'type': 'string'}} - } -} - -MANIFEST_SCHEMA: Dict[str, Any] = { - 'type': 'object', - 'additionalProperties': False, - 'required': ['steps'], - 'properties': { - 'steps': { - 'type': 'array', - 'items': { - 'oneOf': [ - { - 'type': 'object', - 'additionalProperties': False, - 'required': ['data'], - 'properties': { - 'data': {'type': 'string'}, - 'clear': {'type': 'boolean'}, - 'data-graph': {'type': 'array', 'items': {'type': 'string'}} - } - }, - { - 'type': 'object', - 'additionalProperties': False, - 'required': ['model'], - 'properties': { - 'model': {'type': 'string'}, - 'clear': {'type': 'boolean'} - } - }, - { - 'type': 'object', - 'additionalProperties': False, - 'required': ['nodegroups'], - 'properties': { - 'nodegroups': {'type': 'string'} - } - }, - { - 'type': 'object', - 'additionalProperties': False, - 'required': ['manifest'], - 'properties': { - 'manifest': {'type': 'string'} - } - }, - ] - } - } + 'contains': {'type': 'string'}}, + 'model-graphs': { + 'oneOf': [ + {'type': 'string'}, + {'type': 'array', 'items': {'type': 'string'}}, + ] + }, } } @@ -254,29 +219,20 @@ def wrapper(*args: Any, **kwargs: Any) -> Any: return decorator # pylint: enable=unused-argument -def sparql_connection(base_url: Url, data_graph: Optional[Url], extra_data_graphs: List[Url], triple_store: Optional[Url], triple_store_type: Optional[str]) -> Connection: +def sparql_connection(base_url: Url, model_graphs: Optional[List[Url]], data_graph: Optional[Url], extra_data_graphs: List[Url], triple_store: Optional[Url], triple_store_type: Optional[str]) -> Connection: """Generate a SPARQL connection value.""" semtk3.set_host(base_url) # Default to RACK in a Box triple-store location - triple_store = triple_store or Url("http://localhost:3030/RACK") - triple_store_type = triple_store_type or "fuseki" - conn: Dict[str, Any] = { - "name": "%NODEGROUP%", - "model": [{"type": triple_store_type, "url": triple_store, "graph": MODEL_GRAPH}], - "data": [] - } - if data_graph is not None: - conn["data"].append({"type": triple_store_type, "url": triple_store, "graph": data_graph}) - for graph in extra_data_graphs: - conn["data"].append({"type": triple_store_type, "url": triple_store, "graph": graph}) - return Connection(json.dumps(conn)) + model_graphs = model_graphs or [MODEL_GRAPH] + data_graph = data_graph or DEFAULT_DATA_GRAPH + triple_store = triple_store or DEFAULT_TRIPLE_STORE + triple_store_type = triple_store_type or DEFAULT_TRIPLE_STORE_TYPE + return Connection(semtk3.build_connection_str("%NODEGROUP%", triple_store_type, triple_store, model_graphs, data_graph, extra_data_graphs)) def clear_graph(conn: Connection, which_graph: Graph = Graph.DATA) -> None: """Clear all the existing data in the data or model graph""" - print('Clearing graph') - result = semtk3.clear_graph(conn, which_graph.value, 0) - print(result.lstrip()) + semtk3.clear_graph(conn, which_graph.value, 0) def format_semtk_table(semtk_table: SemtkTable, export_format: ExportFormat = ExportFormat.TEXT, headers: bool = True) -> str: @@ -317,7 +273,7 @@ def generate_constraints(constraint_texts: List[str]) -> List[Any]: if match is None: print(str_bad('Unsupported constraint: ' + constraint_text)) sys.exit(1) - + if match['op'] is not None: c = semtk3.build_constraint(match['var'], operators[match['op']], [match['val']]) else: @@ -390,34 +346,265 @@ def go() -> None: return semtk3.upload_owl(owl_file, conn, "rack", "rack") go() -def ingest_manifest_driver(manifest_path: Path, base_url: Url, triple_store: Optional[Url], triple_store_type: Optional[str]) -> None: +def utility_copygraph_driver(base_url: Url, triple_store: Optional[Url], triple_store_type: Optional[str], from_graph: Url, to_graph: Url) -> None: + semtk3.set_host(base_url) + triple_store = triple_store or DEFAULT_TRIPLE_STORE + triple_store_type = triple_store_type or DEFAULT_TRIPLE_STORE_TYPE + + @with_status(f'Copying {str_highlight(from_graph)} to {str_highlight(to_graph)}') + def go() -> dict: + return semtk3.copy_graph(from_graph, to_graph, triple_store, triple_store_type, triple_store, triple_store_type) + go() + +class IngestionBuilder: + def __init__(self) -> None: + self.fresh: int = 0 + self.model_graphs: Set[str] = set() + self.data_graphs: Set[str] = set() + self.manifests: Set[Path] = set() + + def next_fresh(self) -> int: + result = self.fresh + self.fresh = result + 1 + return result + + def model( + self, + from_path: Path, + to_path: Path, + ) -> None: + with open(from_path, mode='r', encoding='utf-8-sig') as f: + obj = yaml.safe_load(f) + + frombase = from_path.parent + tobase = to_path.parent + + files = obj['files'] + for (i,file) in enumerate(files): + file = Path(file) + shutil.copyfile(frombase.joinpath(file), tobase.joinpath(file.name), follow_symlinks=True) + files[i] = file.name + + c = obj.get('model-graphs') + if c is None: + self.model_graphs.add(str(MODEL_GRAPH)) + elif isinstance(c, str): + self.model_graphs.add(c) + elif isinstance(c, list): + self.model_graphs.update(c) + + with open(to_path, mode='w', encoding='utf-8-sig', newline='\n') as out: + yaml.safe_dump(obj, out) + + def data( + self, + from_path: Path, + to_path: Path, + ) -> None: + with open(from_path, mode='r', encoding='utf-8-sig') as f: + obj = yaml.safe_load(f) + frombase = from_path.parent + tobase = to_path.parent + + for step in obj['ingestion-steps']: + if 'owl' in step: + path = Path(step['owl']) + shutil.copyfile(frombase.joinpath(path), tobase.joinpath(path.name), follow_symlinks=True) + step['owl'] = path.name + if 'csv' in step: + path = Path(step['csv']) + shutil.copyfile(frombase.joinpath(path), tobase.joinpath(path.name), follow_symlinks=True) + step['csv'] = path.name + + self.data_graphs.add(obj['data-graph']) + + c = obj.get('extra-data-graphs') + if c is not None: + self.data_graphs.update(c) + + c = obj.get('model-graphs') + if c is not None: + if isinstance(c, str): + self.model_graphs.add(c) + elif isinstance(c, list): + self.model_graphs.update(c) + + with open(to_path, mode='w', encoding='utf-8-sig', newline='\n') as out: + yaml.safe_dump(obj, out) + + def nodegroups( + self, + from_path: Path, + to_path: Path, + ) -> None: + shutil.copyfile(from_path.joinpath('store_data.csv'), to_path.joinpath('store_data.csv'), follow_symlinks=True) + with open(from_path.joinpath('store_data.csv'), 'r') as f: + for row in csv.DictReader(f): + json = row['jsonFile'] + shutil.copyfile(from_path.joinpath(json), to_path.joinpath(json), follow_symlinks=True) + + def manifest( + self, + from_path: Path, + to_path: Path, + ) -> None: + + with open(from_path, mode='r', encoding='utf-8-sig') as f: + obj = yaml.safe_load(f) + + # Handle multiple inclusions of the same manifest to simplify + full_path = from_path.absolute() + if full_path in self.manifests: + print(f'Pruning duplicate manifest {from_path}') + del obj['steps'] + else: + self.manifests.add(full_path) + base_path = from_path.parent + for step in obj.get('steps',[]): + if 'manifest' in step: + path = step['manifest'] + dirname = Path(f'{self.next_fresh():02}_manifest') + subdir = to_path.parent.joinpath(dirname) + topath = subdir.joinpath(Path(path).name) + subdir.mkdir(exist_ok=False) + self.manifest(base_path.joinpath(path), topath) + step['manifest'] = str(dirname.joinpath(Path(path).name)) + elif 'model' in step: + path = step['model'] + dirname = Path(f'{self.next_fresh():02}_model') + subdir = to_path.parent.joinpath(dirname) + topath = subdir.joinpath(Path(path).name) + subdir.mkdir(exist_ok=False) + self.model(base_path.joinpath(path), topath) + step['model'] = str(dirname.joinpath(Path(path).name)) + elif 'data' in step: + path = step['data'] + dirname = Path(f'{self.next_fresh():02}_data') + subdir = to_path.parent.joinpath(dirname) + topath = subdir.joinpath(Path(path).name) + subdir.mkdir(exist_ok=False) + self.data(base_path.joinpath(path), topath) + step['data'] = str(dirname.joinpath(Path(path).name)) + elif 'nodegroups' in step: + path = step['nodegroups'] + dirname = Path(f'{self.next_fresh():02}_nodegroups') + subdir = to_path.parent.joinpath(dirname) + subdir.mkdir(exist_ok=False) + self.nodegroups(base_path.joinpath(path), subdir) + step['nodegroups'] = str(dirname) + + with open(to_path, mode='w', encoding='utf-8-sig', newline='\n') as out: + yaml.safe_dump(obj, out) + +def build_manifest_driver( + manifest_path: Path, + zipfile_path: Path +) -> None: + + with tempfile.TemporaryDirectory() as outdir: + builder = IngestionBuilder() + builder.manifest(manifest_path, Path(outdir).joinpath(f'manifest.yaml')) + shutil.make_archive(str(zipfile_path), 'zip', outdir) + + for x in builder.model_graphs: + print(f'Model graph: {x}') + + for x in builder.data_graphs: + print(f'Data graph: {x}') + + +def ingest_manifest_driver( + manifest_path: Path, + base_url: Url, + triple_store: Optional[Url], + triple_store_type: Optional[str], + clear: bool, + default_graph: bool, + top_level: bool = True, + optimization_url: Optional[Url] = None) -> None: + with open(manifest_path, mode='r', encoding='utf-8-sig') as manifest_file: - manifest = yaml.safe_load(manifest_file) - validate(manifest, MANIFEST_SCHEMA) - + manifest = Manifest.fromYAML(manifest_file) + base_path = manifest_path.parent - for step in manifest['steps']: - if 'data' in step: - clear = step.get('clear', False) - data_graphs = step.get('data-graphs') - ingest_data_driver(base_path / step['data'], base_url, data_graphs, triple_store, triple_store_type, clear) - elif 'model' in step: - clear = step.get('clear', False) - ingest_owl_driver(base_path / step['model'], base_url, triple_store, triple_store_type, clear) - elif 'nodegroups' in step: - store_nodegroups_driver(base_path / step['nodegroups'], base_url) - elif 'manifest' in step: - ingest_manifest_driver(base_path / step['manifest'], base_url, triple_store, triple_store_type) - -def ingest_data_driver(config_path: Path, base_url: Url, data_graphs: Optional[List[Url]], triple_store: Optional[Url], triple_store_type: Optional[str], clear: bool) -> None: + if clear: + if default_graph: + # clear only the default graph first + clear_driver(base_url, [Url("uri://DefaultGraph")], [], triple_store, triple_store_type, Graph.MODEL) + else: + # clear the whole footprint + modelgraphs = manifest.getModelgraphsFootprint() + datagraphs = manifest.getDatagraphsFootprint() + if not modelgraphs == []: + clear_driver(base_url, modelgraphs, datagraphs, triple_store, triple_store_type, Graph.MODEL) + if not datagraphs == []: + clear_driver(base_url, modelgraphs, datagraphs, triple_store, triple_store_type, Graph.DATA) + + if not manifest.getNodegroupsFootprint() == []: + delete_nodegroups_driver(manifest.getNodegroupsFootprint(), True, True, True, base_url) + + # We don't override the model and datagraphs from the ingestion components unless it's for default + # the step itself gets to pick the target graphs + if default_graph: + targetgraph = [Url("uri://DefaultGraph")] + else: + targetgraph = None + + for (step_type, step_data) in manifest.steps: + if StepType.DATA == step_type: + stepFile = base_path / step_data + ingest_data_driver(stepFile, base_url, targetgraph, targetgraph, triple_store, triple_store_type, False) + elif StepType.MODEL == step_type: + stepFile = base_path / step_data + ingest_owl_driver(stepFile, base_url, targetgraph, triple_store, triple_store_type, False) + elif StepType.NODEGROUPS == step_type: + stepFile = base_path / step_data + store_nodegroups_driver(stepFile, base_url) + elif StepType.MANIFEST == step_type: + stepFile = base_path / step_data + ingest_manifest_driver(stepFile, base_url, triple_store, triple_store_type, False, default_graph, False) + elif StepType.COPYGRAPH == step_type: + utility_copygraph_driver(base_url, triple_store, triple_store_type, step_data[0], step_data[1]) + + if top_level: + if manifest.getCopyToDefaultGraph(): + defaultGraph = Url("uri://DefaultGraph") + + if clear: + clear_driver(base_url, [defaultGraph], None, triple_store, triple_store_type, Graph.MODEL) + for graph in manifest.getModelgraphsFootprint(): + utility_copygraph_driver(base_url, triple_store, triple_store_type, graph, defaultGraph) + for graph in manifest.getDatagraphsFootprint(): + utility_copygraph_driver(base_url, triple_store, triple_store_type, graph, defaultGraph) + + if manifest.getPerformEntityResolution(): + @with_status(f'Executing entity resolution') + def go() -> dict: + return semtk3.combine_entities_in_conn(conn=sparql_connection(base_url, [defaultGraph], defaultGraph, [], triple_store, triple_store_type)) + go() + + if manifest.getPerformOptimization(): + invoke_optimization(optimization_url) + +def invoke_optimization(url: Optional[Url]) -> None: + url = url or DEFAULT_OPTIMIZE_URL + @with_status(f'Optimizing triplestore') + def go() -> None: + response = requests.get(str(url)).json() + if not response['success']: + raise Exception(response['message']) + go() + + +def ingest_data_driver(config_path: Path, base_url: Url, model_graphs: Optional[List[Url]], data_graphs: Optional[List[Url]], triple_store: Optional[Url], triple_store_type: Optional[str], clear: bool) -> None: """Use an import.yaml file to ingest multiple CSV files into the data graph.""" with open(config_path, mode='r', encoding='utf-8-sig') as config_file: config = yaml.safe_load(config_file) validate(config, INGEST_CSV_CONFIG_SCHEMA) steps = config['ingestion-steps'] - + if data_graphs is not None: data_graph = data_graphs[0] elif 'data-graph' in config: @@ -435,7 +622,15 @@ def ingest_data_driver(config_path: Path, base_url: Url, data_graphs: Optional[L else: extra_data_graphs = [] - conn = sparql_connection(base_url, data_graph, extra_data_graphs, triple_store, triple_store_type) + if model_graphs is None: + c = config.get('model-graphs') + if c is not None: + if isinstance(c, str): + model_graphs = [Url(c)] + elif isinstance(c, list): + model_graphs = [Url(x) for x in c] + + conn = sparql_connection(base_url, model_graphs, data_graph, extra_data_graphs, triple_store, triple_store_type) if clear: clear_graph(conn) @@ -472,12 +667,12 @@ def ingest_data_driver(config_path: Path, base_url: Url, data_graphs: Optional[L print(str_bad(' FAIL')) raise e print(str_good(' OK')) - + elif 'count' in step: expected = step['count'] name = step['nodegroup'] runtime_constraints = generate_constraints(step.get('constraints', [])) - + print(f'Counting nodegroup {str_highlight(name): <40}', end="") semtk_table = semtk3.count_by_id(name, runtime_constraints=runtime_constraints) @@ -488,7 +683,7 @@ def ingest_data_driver(config_path: Path, base_url: Url, data_graphs: Optional[L print(str_bad(f' FAIL got:{got} expected:{expected}')) -def ingest_owl_driver(config_path: Path, base_url: Url, triple_store: Optional[Url], triple_store_type: Optional[str], clear: bool) -> None: +def ingest_owl_driver(config_path: Path, base_url: Url, model_graphs: Optional[List[Url]], triple_store: Optional[Url], triple_store_type: Optional[str], clear: bool) -> None: """Use an import.yaml file to ingest multiple OWL files into the model graph.""" with open(config_path, mode='r', encoding='utf-8-sig') as config_file: config = yaml.safe_load(config_file) @@ -497,7 +692,15 @@ def ingest_owl_driver(config_path: Path, base_url: Url, triple_store: Optional[U files = config['files'] base_path = config_path.parent - conn = sparql_connection(base_url, None, [], triple_store, triple_store_type) + if model_graphs is None: + c = config.get('model-graphs') + if c is not None: + if isinstance(c, str): + model_graphs = [Url(c)] + elif isinstance(c, list): + model_graphs = [Url(x) for x in c] + + conn = sparql_connection(base_url, model_graphs, None, [], triple_store, triple_store_type) if clear: clear_graph(conn, which_graph=Graph.MODEL) @@ -506,18 +709,22 @@ def ingest_owl_driver(config_path: Path, base_url: Url, triple_store: Optional[U ingest_owl(conn, base_path / file) @with_status('Clearing') -def clear_driver(base_url: Url, data_graphs: Optional[List[Url]], triple_store: Optional[Url], triple_store_type: Optional[str], graph: Graph) -> None: +def clear_driver(base_url: Url, model_graphs: Optional[List[Url]], data_graphs: Optional[List[Url]], triple_store: Optional[Url], triple_store_type: Optional[str], graph: Graph) -> None: """Clear the given data graphs""" - if data_graphs is None: - conn = sparql_connection(base_url, DEFAULT_DATA_GRAPH, [], triple_store, triple_store_type) - clear_graph(conn, which_graph=graph) - else: - for data_graph in data_graphs: - conn = sparql_connection(base_url, data_graph, [], triple_store, triple_store_type) + + if graph == Graph.MODEL: + for model_graph in model_graphs or [MODEL_GRAPH]: + print(f"{model_graph} ", end='') + conn = sparql_connection(base_url, [model_graph], None, [], triple_store, triple_store_type) + clear_graph(conn, which_graph=graph) + elif graph == Graph.DATA: + for data_graph in data_graphs or [DEFAULT_DATA_GRAPH]: + print(f"{data_graph} ", end='') + conn = sparql_connection(base_url, None, data_graph, [], triple_store, triple_store_type) clear_graph(conn, which_graph=graph) def template_driver(base_url: Url, triple_store: Optional[Url], triple_store_type: Optional[str], class_uri: Url, filename: Optional[Path]) -> None: - conn = sparql_connection(base_url, DEFAULT_DATA_GRAPH, [], triple_store, triple_store_type) + conn = sparql_connection(base_url, None, None, [], triple_store, triple_store_type) csv = semtk3.get_class_template_csv(class_uri, conn, "identifier") if filename is None: print(csv, end="") @@ -527,12 +734,12 @@ def template_driver(base_url: Url, triple_store: Optional[Url], triple_store_typ @with_status('Storing nodegroups') def store_nodegroups_driver(directory: Path, base_url: Url) -> None: - sparql_connection(base_url, None, [], None, None) + sparql_connection(base_url, None, None, [], None, None) semtk3.store_nodegroups(directory) @with_status('Storing nodegroup') def store_nodegroup_driver(name: str, creator: str, filename: str, comment: Optional[str], base_url: Url, kind: str) -> None: - sparql_connection(base_url, None, [], None, None) + sparql_connection(base_url, None, None, [], None, None) with open(filename) as f: nodegroup_json_str = f.read() @@ -561,7 +768,7 @@ def sparql_nodegroup_driver(base_url: Url, filename: str) -> None: @with_status('Retrieving nodegroups') def retrieve_nodegroups_driver(regexp: str, directory: Path, base_url: Url, kind: str) -> None: - sparql_connection(base_url, None, [], None, None) + sparql_connection(base_url, None, None, [], None, None) if kind == 'nodegroup': item_type = semtk3.STORE_ITEM_TYPE_NODEGROUP elif kind == 'report': @@ -574,7 +781,7 @@ def list_nodegroups_driver(base_url: Url) -> None: @with_status('Listing nodegroups') def list_nodegroups() -> SemtkTable: - sparql_connection(base_url, None, [], None, None) + sparql_connection(base_url, None, None, [], None, None) return semtk3.get_nodegroup_store_data() print(format_semtk_table(list_nodegroups())) @@ -607,7 +814,7 @@ def delete_nodegroups_driver(nodegroups: List[str], ignore_nonexistent: bool, ye print('No nodegroups specified for deletion: doing nothing.') return - sparql_connection(base_url, None, [], None, None) + sparql_connection(base_url, None, None, [], None, None) allIDs = semtk3.get_store_table().get_column('ID') if use_regexp: @@ -633,7 +840,7 @@ def on_confirmed() -> None: confirm(on_confirmed, yes) def delete_all_nodegroups_driver(yes: bool, base_url: Url) -> None: - sparql_connection(base_url, None, [], None, None) + sparql_connection(base_url, None, None, [], None, None) table = semtk3.get_store_table() id_col = table.get_column_index('ID') @@ -650,30 +857,38 @@ def on_confirmed() -> None: confirm(on_confirmed, yes) def dispatch_data_export(args: SimpleNamespace) -> None: - conn = sparql_connection(args.base_url, args.data_graph[0], args.data_graph[1:], args.triple_store, args.triple_store_type) + conn = sparql_connection(args.base_url, args.model_graph, args.data_graph[0], args.data_graph[1:], args.triple_store, args.triple_store_type) run_query(conn, args.nodegroup, export_format=args.format, headers=not args.no_headers, path=args.file, constraints=args.constraint) def dispatch_data_count(args: SimpleNamespace) -> None: - conn = sparql_connection(args.base_url, args.data_graph[0], args.data_graph[1:], args.triple_store, args.triple_store_type) + conn = sparql_connection(args.base_url, args.model_graph, args.data_graph[0], args.data_graph[1:], args.triple_store, args.triple_store_type) run_count_query(conn, args.nodegroup, constraints=args.constraint) +def dispatch_utility_copygraph(args: SimpleNamespace) -> None: + """Implementation of utility copygraph command""" + utility_copygraph_driver(args.base_url, args.triple_store, args.triple_store_type, args.from_graph, args.to_graph) + def dispatch_manifest_import(args: SimpleNamespace) -> None: """Implementation of manifest import subcommand""" - ingest_manifest_driver(Path(args.manifest), args.base_url, args.triple_store, args.triple_store_type) + ingest_manifest_driver(Path(args.config), args.base_url, args.triple_store, args.triple_store_type, args.clear, args.default_graph, True, args.optimize_url) + +def dispatch_manifest_build(args: SimpleNamespace) -> None: + """Implementation of manifest import subcommand""" + build_manifest_driver(Path(args.config), Path(args.zipfile)) def dispatch_data_import(args: SimpleNamespace) -> None: """Implementation of the data import subcommand""" cliMethod = CLIMethod.DATA_IMPORT - ingest_data_driver(Path(args.config), args.base_url, args.data_graph, args.triple_store, args.triple_store_type, args.clear) + ingest_data_driver(Path(args.config), args.base_url, args.model_graph, args.data_graph, args.triple_store, args.triple_store_type, args.clear) def dispatch_model_import(args: SimpleNamespace) -> None: """Implementation of the plumbing model subcommand""" cliMethod = CLIMethod.MODEL_IMPORT - ingest_owl_driver(Path(args.config), args.base_url, args.triple_store, args.triple_store_type, args.clear) + ingest_owl_driver(Path(args.config), args.base_url, args.model_graph, args.triple_store, args.triple_store_type, args.clear) def dispatch_data_clear(args: SimpleNamespace) -> None: """Implementation of the data clear subcommand""" - clear_driver(args.base_url, args.data_graph, args.triple_store, args.triple_store_type, Graph.DATA) + clear_driver(args.base_url, None, args.data_graph, args.triple_store, args.triple_store_type, Graph.DATA) def dispatch_data_template(args: SimpleNamespace) -> None: """Implementation of the data template subcommand""" @@ -681,7 +896,7 @@ def dispatch_data_template(args: SimpleNamespace) -> None: def dispatch_model_clear(args: SimpleNamespace) -> None: """Implementation of the model clear subcommand""" - clear_driver(args.base_url, None, args.triple_store, args.triple_store_type, Graph.MODEL) + clear_driver(args.base_url, args.model_graph, None, args.triple_store, args.triple_store_type, Graph.MODEL) def dispatch_nodegroups_import(args: SimpleNamespace) -> None: store_nodegroups_driver(args.directory, args.base_url) @@ -717,6 +932,7 @@ def get_argument_parser() -> argparse.ArgumentParser: manifest_parser = subparsers.add_parser('manifest', help='Ingestion package automation') manifest_subparsers = manifest_parser.add_subparsers(dest='command') manifest_import_parser = manifest_subparsers.add_parser('import', help='Import ingestion manifest') + manifest_build_parser = manifest_subparsers.add_parser('build', help='Build ingestion package zip file') data_parser = subparsers.add_parser('data', help='Import or export CSV data') data_subparsers = data_parser.add_subparsers(dest='command') @@ -741,15 +957,32 @@ def get_argument_parser() -> argparse.ArgumentParser: nodegroups_deleteall_parser = nodegroups_subparsers.add_parser('delete-all', help='Delete all nodegroups from RACK') nodegroups_sparql_parser = nodegroups_subparsers.add_parser('sparql', help='Show SPARQL query for nodegroup') - manifest_import_parser.add_argument('manifest', type=str, help='Manifest YAML file') + utility_parser = subparsers.add_parser('utility', help='Tools for manipulating raw data') + utility_subparsers = utility_parser.add_subparsers(dest='command') + utility_copygraph_parser = utility_subparsers.add_parser('copygraph', help='merge data from one graph to another') + + utility_copygraph_parser.add_argument('--from-graph', type=str, required=True, help='merge from this graph') + utility_copygraph_parser.add_argument('--to-graph', type=str, required=True, help='merge to this graph') + utility_copygraph_parser.set_defaults(func=dispatch_utility_copygraph) + + manifest_import_parser.add_argument('config', type=str, help='Manifest YAML file') + manifest_import_parser.add_argument('--clear', action='store_true', help='Clear footprint before import') + manifest_import_parser.add_argument('--default-graph', action='store_true', help='Load whole manifest into default graph') + manifest_import_parser.add_argument('--optimize-url', type=str, help='RACK UI optimization endpoint (e.g. http://localhost:8050/optimize)') manifest_import_parser.set_defaults(func=dispatch_manifest_import) + manifest_build_parser.add_argument('config', type=str, help='Manifest YAML file') + manifest_build_parser.add_argument('zipfile', type=str, help='Ingestion package output file') + manifest_build_parser.set_defaults(func=dispatch_manifest_build) + data_import_parser.add_argument('config', type=str, help='Configuration YAML file') + data_import_parser.add_argument('--model-graph', type=str, action='append', help='Model graph URL') data_import_parser.add_argument('--data-graph', type=str, action='append', help='Data graph URL') data_import_parser.add_argument('--clear', action='store_true', help='Clear data graph before import') data_import_parser.set_defaults(func=dispatch_data_import) data_export_parser.add_argument('nodegroup', type=str, help='ID of nodegroup') + data_export_parser.add_argument('--model-graph', type=str, action='append', help='Model graph URL') data_export_parser.add_argument('--data-graph', type=str, required=True, action='append', help='Data graph URL') data_export_parser.add_argument('--format', type=ExportFormat, help='Export format', choices=list(ExportFormat), default=ExportFormat.TEXT) data_export_parser.add_argument('--no-headers', action='store_true', help='Omit header row') @@ -758,6 +991,7 @@ def get_argument_parser() -> argparse.ArgumentParser: data_export_parser.set_defaults(func=dispatch_data_export) data_count_parser.add_argument('nodegroup', type=str, help='ID of nodegroup') + data_count_parser.add_argument('--model-graph', type=str, action='append', help='Data graph URL') data_count_parser.add_argument('--data-graph', type=str, required=True, action='append', help='Data graph URL') data_count_parser.add_argument('--constraint', type=str, action='append', help='Runtime constraint: key=value') data_count_parser.set_defaults(func=dispatch_data_count) @@ -772,8 +1006,10 @@ def get_argument_parser() -> argparse.ArgumentParser: model_import_parser.add_argument('config', type=str, help='Configuration YAML file') model_import_parser.set_defaults(func=dispatch_model_import) model_import_parser.add_argument('--clear', action='store_true', help='Clear model graph before import') + model_import_parser.add_argument('--model-graph', type=str, action='append', help='Model graph URL') model_clear_parser.set_defaults(func=dispatch_model_clear) + model_clear_parser.add_argument('--model-graph', type=str, action='append', help='Model graph URL') nodegroups_import_parser.add_argument('directory', type=str, help='Nodegroup directory') nodegroups_import_parser.set_defaults(func=dispatch_nodegroups_import) diff --git a/cli/rack/manifest.py b/cli/rack/manifest.py new file mode 100644 index 00000000..b59ca1cb --- /dev/null +++ b/cli/rack/manifest.py @@ -0,0 +1,189 @@ +from enum import Enum +from jsonschema import validate +from rack.types import Connection, Url +from typing import Any, Dict, List, Tuple, Optional +import yaml +import semtk3 + +MANIFEST_SCHEMA: Dict[str, Any] = { + 'type': 'object', + 'additionalProperties': False, + 'required': ['name'], + 'properties': { + 'name': {'type': 'string'}, + 'description': {'type': 'string'}, + + 'copy-to-default-graph': {'type': 'boolean'}, + 'perform-entity-resolution': {'type': 'boolean'}, + 'perform-triplestore-optimization': {'type': 'boolean'}, + + 'footprint': { + 'type': 'object', + 'additionalProperties': False, + 'required': [], + 'properties': { + 'model-graphs': {'type': 'array', 'items': {'type': 'string'}}, + 'data-graphs': {'type': 'array', 'items': {'type': 'string'}}, + 'nodegroups': {'type': 'array', 'items': {'type': 'string'}}, + } + }, + 'steps': { + 'type': 'array', + 'items': { + 'oneOf': [ + { + 'type': 'object', + 'additionalProperties': False, + 'required': ['data'], + 'properties': { + 'data': {'type': 'string'}, + } + }, + { + 'type': 'object', + 'additionalProperties': False, + 'required': ['model'], + 'properties': { + 'model': {'type': 'string'}, + } + }, + { + 'type': 'object', + 'additionalProperties': False, + 'required': ['nodegroups'], + 'properties': { + 'nodegroups': {'type': 'string'} + } + }, + { + 'type': 'object', + 'additionalProperties': False, + 'required': ['manifest'], + 'properties': { + 'manifest': {'type': 'string'} + } + }, + { + 'type': 'object', + 'additionalProperties': False, + 'required': ['copygraph'], + 'properties': { + 'copygraph': { + 'type': 'object', + 'additionalProperties': False, + 'required': ['from-graph', 'to-graph'], + 'properties': { + 'from-graph': {'type': 'string'}, + 'to-graph': {'type': 'string'}, + } + } + } + }, + ] + } + } + } +} + + +class StepType(Enum): + MODEL = 1 + DATA = 2 + NODEGROUPS = 3 + MANIFEST = 4 + COPYGRAPH = 5 + + +class Manifest: + def __init__(self, name: str, description: Optional[str] = None) -> None: + self.name: str = name + self.description: Optional[str] = description + self.modelgraphsFootprint: List[Url] = [] + self.datagraphsFootprint: List[Url] = [] + self.nodegroupsFootprint: List[str] = [] + self.steps: List[Tuple[StepType, Any]] = [] + self.performOptimization: bool = False + self.performEntityResolution: bool = False + self.copyToDefaultGraph: bool = False + + def getName(self) -> str: + return self.name + + def getDescription(self) -> Optional[str]: + return self.description + + def getPerformOptimization(self) -> bool: + """Return True when this manifest file prescribes running the triplestore optimizer""" + return self.performOptimization + + def getPerformEntityResolution(self) -> bool: + """Return True when this manifest prescribes running entity resolution""" + return self.performEntityResolution + + def getCopyToDefaultGraph(self) -> bool: + """Return True when this manifest prescribes copying the footprint to the default graph""" + return self.copyToDefaultGraph + + def addModelgraphFootprint(self, modelgraph: Url) -> None: + self.modelgraphsFootprint.append(modelgraph) + + def addDatagraphFootprint(self, datagraph: Url) -> None: + self.datagraphsFootprint.append(datagraph) + + def addNodegroupsFootprint(self, nodegroupRegexp: str) -> None: + self.nodegroupsFootprint.append(nodegroupRegexp) + + def getModelgraphsFootprint(self) -> List[Url]: + return self.modelgraphsFootprint + + def getDatagraphsFootprint(self) -> List[Url]: + return self.datagraphsFootprint + + def getNodegroupsFootprint(self) -> List[str]: + return self.nodegroupsFootprint + + def addStep(self, stepType: StepType, stepFile: Any) -> None: + self.steps.append((stepType, stepFile)) + + def getConnection(self, triple_store: str = "http://localhost:3030/RACK", triple_store_type: str = "fuseki") -> Connection: + """Build a connection string using the graphs defined in the footprint.""" + return Connection(semtk3.build_connection_str(self.name, triple_store_type, triple_store, self.modelgraphsFootprint, self.datagraphsFootprint[0], self.datagraphsFootprint[1:])) + + def getDefaultGraphConnection(self, triple_store: str = "http://localhost:3030/RACK", triple_store_type: str = "fuseki") -> Connection: + """Build a connection string using the triple store's default graph.""" + return semtk3.build_default_connection_str("Default Graph", triple_store_type, triple_store) + + @staticmethod + def fromYAML(src: Any) -> 'Manifest': + """Populate a Manifest using a YAML file following the MANIFEST_SCHEMA.""" + obj = yaml.safe_load(src) + validate(obj, MANIFEST_SCHEMA) + + manifest = Manifest(obj.get('name'), obj.get('description')) + + manifest.copyToDefaultGraph = obj.get('copy-to-default-graph', False) + manifest.performEntityResolution = obj.get('perform-entity-resolution', False) + manifest.performOptimization = obj.get('perform-triplestore-optimization', False) + + footprint = obj.get('footprint', {}) + for datagraph in footprint.get('data-graphs', []): + manifest.addDatagraphFootprint(Url(datagraph)) + for nodegroupRegexp in footprint.get('nodegroups', []): + manifest.addNodegroupsFootprint(nodegroupRegexp) + for modelgraph in footprint.get('model-graphs', []): + manifest.addModelgraphFootprint(Url(modelgraph)) + + for step in obj.get('steps', []): + if 'data' in step: + manifest.addStep(StepType.DATA, step['data']) + elif 'model' in step: + manifest.addStep(StepType.MODEL, step['model']) + elif 'nodegroups' in step: + manifest.addStep(StepType.NODEGROUPS, step['nodegroups']) + elif 'manifest' in step: + manifest.addStep(StepType.MANIFEST, step['manifest']) + elif 'copygraph' in step: + args = step['copygraph'] + manifest.addStep(StepType.COPYGRAPH, (args['from-graph'], args['to-graph'])) + + return manifest diff --git a/cli/rack/types.py b/cli/rack/types.py new file mode 100644 index 00000000..b055758e --- /dev/null +++ b/cli/rack/types.py @@ -0,0 +1,4 @@ +from typing import NewType + +Connection = NewType('Connection', str) +Url = NewType('Url', str) diff --git a/cli/requirements.txt b/cli/requirements.txt index a9afbf0c..0b02291e 100644 --- a/cli/requirements.txt +++ b/cli/requirements.txt @@ -1,6 +1,6 @@ ase==3.22.1 attrs==21.4.0 -certifi==2022.6.15 +certifi==2022.12.7 chardet==5.0.0 colorama==0.4.5 idna==3.3 @@ -12,7 +12,7 @@ PyYAML==5.4.1 requests==2.28.1 Pillow==9.0.1 plotly==5.9.0 -semtk-python3 @ git+https://github.com/ge-semtk/semtk-python3@8b4d7993c61e6b1c18586ff341bacbcb14c51d45 +semtk-python3 @ git+https://github.com/ge-semtk/semtk-python3@3794a10ba5c2065b145d88f074a7e52028c21cdb six==1.16.0 tabulate==0.8.10 urllib3==1.26.10 diff --git a/cli/setup-arcos.sh b/cli/setup-arcos.sh index 8f781ae5..7cb87bb0 100755 --- a/cli/setup-arcos.sh +++ b/cli/setup-arcos.sh @@ -4,41 +4,4 @@ set -eu ./ensure-cli-in-PATH.sh -# Boeing model & auto-generated nodegroups -rack model import ../Boeing-Ontology/OwlModels/import.yaml -rack nodegroups import ../nodegroups/ingestion/arcos.AH-64D - -# GrammaTech model & auto-generated nodegroups -rack model import ../GrammaTech-Ontology/OwlModels/import.yaml -rack nodegroups import ../nodegroups/ingestion/arcos.acert - -# LM model & auto-generated nodegroups -rack model import ../LM-Ontology/OwlModels/import.yaml -rack nodegroups import ../nodegroups/ingestion/arcos.certgate - -# SRI model & auto-generated nodegroups -rack model import ../SRI-Ontology/OwlModels/import.yaml -rack nodegroups import ../nodegroups/ingestion/arcos.descert - -# STR model & auto-generated nodegroups -rack model import ../STR-Ontology/OwlModels/import.yaml -rack nodegroups import ../nodegroups/ingestion/arcos.arbiter - -# RTX model & auto-generated nodegroups -rack model import ../RTX-Ontology/OwlModels/import.yaml -rack nodegroups import ../nodegroups/ingestion/arcos.aace - -### Applicable Standards ### copy any of these to the instance data load script and use when applicable -# rack data import --clear ../RACK-Ontology/OwlModels/ARP-4754A.yaml # from datagraph http://rack001/arp-4754a -# rack data import --clear ../RACK-Ontology/OwlModels/DO-330.yaml # from datagraph http://rack001/do-330 -# rack data import --clear ../RACK-Ontology/OwlModels/DO-178C.yaml # from datagraph http://rack001/do-178c - -# === NIST 800-53 === -echo "=== NIST-800-53 controls ===" -rack data import ../RACK-Ontology/ontology/NIST-800-53/import.yaml # datagrah http://rack001/nist-800-53 - -# === MITRE CWEs === -echo "=== MITRE CWE ===" -rack model import ../RACK-Ontology/OwlModels/MITRE-CWE.yaml -rack nodegroups import ../nodegroups/arcos.cwe -rack data import --clear ../RACK-Ontology/ontology/MITRE-CWE/import.yaml # datagraph http://rack001/mitre-cwe +rack --log-level ERROR manifest import --clear ../manifests/arcos.yaml diff --git a/cli/setup-owl.sh b/cli/setup-owl.sh index 2a8730e2..a7c8aee2 100755 --- a/cli/setup-owl.sh +++ b/cli/setup-owl.sh @@ -6,7 +6,7 @@ set -e rack_dir=$(realpath "$(dirname "$0")"/..) rack_image="gehighassurance/rack-box" -rack_tag="v10.2" +rack_tag="v11" sadl_image="sadl/sadl-eclipse" sadl_tag="v3.5.0-20211204" @@ -71,7 +71,9 @@ in scp -q -i rack_ssh_key -r "ubuntu@${virtualbox_ip}:RACK/LM-Ontology/OwlModels" "${rack_dir}/LM-Ontology/" scp -q -i rack_ssh_key -r "ubuntu@${virtualbox_ip}:RACK/SRI-Ontology/OwlModels" "${rack_dir}/SRI-Ontology/" scp -q -i rack_ssh_key -r "ubuntu@${virtualbox_ip}:RACK/RTX-Ontology/OwlModels" "${rack_dir}/RTX-Ontology/" + scp -q -i rack_ssh_key -r "ubuntu@${virtualbox_ip}:RACK/Provenance-Example/OwlModels" "${rack_dir}/Provenance-Example/" scp -q -i rack_ssh_key -r "ubuntu@${virtualbox_ip}:RACK/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationUnitTesting/OwlModels" "${rack_dir}/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationUnitTesting/" + scp -q -i rack_ssh_key -r "ubuntu@${virtualbox_ip}:RACK/sadl-examples/OwlModels" "${rack_dir}/sadl-examples/" echo "[setup-owl] Copying nodegroups" scp -q -i rack_ssh_key -r "ubuntu@${virtualbox_ip}:RACK/nodegroups/CDR" "${rack_dir}/nodegroups/" @@ -82,7 +84,7 @@ in docker) echo "[setup-owl] Copying CDR and OWL files from Docker" - container=$(docker container ls -qf "ancestor=${rack_image}:${rack_tag}") + container=$(docker container ls -aqf "ancestor=${rack_image}:${rack_tag}") if [ -z "${container}" ]; then echo "Unable to find docker container ${rack_image}:${rack_tag}." @@ -93,18 +95,20 @@ in echo "[setup-owl] Found container ${container}" echo "[setup-owl] Copying OwlModels" - docker cp "${container}:home/ubuntu/RACK/RACK-Ontology/OwlModels/" "${rack_dir}/RACK-Ontology/" - docker cp "${container}:home/ubuntu/RACK/GE-Ontology/OwlModels/" "${rack_dir}/GE-Ontology/" - docker cp "${container}:home/ubuntu/RACK/GrammaTech-Ontology/OwlModels/" "${rack_dir}/GrammaTech-Ontology/" - docker cp "${container}:home/ubuntu/RACK/STR-Ontology/OwlModels/" "${rack_dir}/STR-Ontology/" - docker cp "${container}:home/ubuntu/RACK/Boeing-Ontology/OwlModels/" "${rack_dir}/Boeing-Ontology/" - docker cp "${container}:home/ubuntu/RACK/LM-Ontology/OwlModels/" "${rack_dir}/LM-Ontology/" - docker cp "${container}:home/ubuntu/RACK/SRI-Ontology/OwlModels/" "${rack_dir}/SRI-Ontology/" - docker cp "${container}:home/ubuntu/RACK/RTX-Ontology/OwlModels/" "${rack_dir}/RTX-Ontology/" - docker cp "${container}:home/ubuntu/RACK/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationUnitTesting/OwlModels/" "${rack_dir}/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationUnitTesting/" + docker cp "${container}:/home/ubuntu/RACK/RACK-Ontology/OwlModels/" "${rack_dir}/RACK-Ontology/" + docker cp "${container}:/home/ubuntu/RACK/GE-Ontology/OwlModels/" "${rack_dir}/GE-Ontology/" + docker cp "${container}:/home/ubuntu/RACK/GrammaTech-Ontology/OwlModels/" "${rack_dir}/GrammaTech-Ontology/" + docker cp "${container}:/home/ubuntu/RACK/STR-Ontology/OwlModels/" "${rack_dir}/STR-Ontology/" + docker cp "${container}:/home/ubuntu/RACK/Boeing-Ontology/OwlModels/" "${rack_dir}/Boeing-Ontology/" + docker cp "${container}:/home/ubuntu/RACK/LM-Ontology/OwlModels/" "${rack_dir}/LM-Ontology/" + docker cp "${container}:/home/ubuntu/RACK/SRI-Ontology/OwlModels/" "${rack_dir}/SRI-Ontology/" + docker cp "${container}:/home/ubuntu/RACK/RTX-Ontology/OwlModels/" "${rack_dir}/RTX-Ontology/" + docker cp "${container}:/home/ubuntu/RACK/Provenance-Example/OwlModels/" "${rack_dir}/Provenance-Example/" + docker cp "${container}:/home/ubuntu/RACK/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationUnitTesting/OwlModels/" "${rack_dir}/Turnstile-Example/Turnstile-IngestionPackage/CounterApplicationUnitTesting/" + docker cp "${container}:/home/ubuntu/RACK/sadl-examples/OwlModels/" "${rack_dir}/sadl-examples/" echo "[setup-owl] Copying nodegroups" - docker cp "${container}:home/ubuntu/RACK/nodegroups/CDR/" "${rack_dir}/nodegroups/" - docker cp "${container}:home/ubuntu/RACK/nodegroups/ingestion/" "${rack_dir}/nodegroups/" + docker cp "${container}:/home/ubuntu/RACK/nodegroups/CDR/" "${rack_dir}/nodegroups/" + docker cp "${container}:/home/ubuntu/RACK/nodegroups/ingestion/" "${rack_dir}/nodegroups/" ;; esac diff --git a/cli/setup-rack.sh b/cli/setup-rack.sh index 85e466a6..465c6dfc 100755 --- a/cli/setup-rack.sh +++ b/cli/setup-rack.sh @@ -4,11 +4,4 @@ set -eu ./ensure-cli-in-PATH.sh -./setup-clear.sh - -# RACK core ontology -rack model import ../RACK-Ontology/OwlModels/import.yaml - -# ingestion nodegroups auto-generated from RACK core ontology, and a set of sample query nodegroups -rack nodegroups import ../nodegroups/ingestion/arcos.rack -rack nodegroups import ../nodegroups/queries +rack manifest import --clear ../manifests/rack.yaml diff --git a/cli/setup-turnstile.sh b/cli/setup-turnstile.sh index 5cc268e0..9ed7a398 100755 --- a/cli/setup-turnstile.sh +++ b/cli/setup-turnstile.sh @@ -4,25 +4,4 @@ set -eu ./ensure-cli-in-PATH.sh -# -------------------- -# Similar to setup-rack.sh but without clearing all the other data-graphs. -# (This is in case data from the other graphs are still needed.) -rack data clear --data-graph http://rack001/turnstiledata - -rack model import ../RACK-Ontology/OwlModels/import.yaml - -rack nodegroups import ../nodegroups/ingestion/arcos.rack - -rack nodegroups import ../nodegroups/queries - -# -------------------- -# This is where turnstile overlay and ingest nodegroups get loaded -rack model import ../GE-Ontology/OwlModels/import.yaml - -rack nodegroups import ../nodegroups/ingestion/arcos.turnstile - - -### Applicable Standards ### copy any of these to the instance data load script and use when applicable -# rack data import --clear ../RACK-Ontology/ontology/ARP-4754A/import.yaml # from datagraph http://rack001/arp-4754a -# rack data import --clear ../RACK-Ontology/ontology/DO-330/import.yaml # from datagraph http://rack001/do-330 -rack data import --clear ../RACK-Ontology/ontology/DO-178C/import.yaml # from datagraph http://rack001/do-178c +rack manifest import --clear ../manifests/turnstile.yaml diff --git a/cli/tests/rack_test.py b/cli/tests/rack_test.py index 33582dd2..1bafdf90 100644 --- a/cli/tests/rack_test.py +++ b/cli/tests/rack_test.py @@ -7,17 +7,17 @@ """ from pathlib import Path -from rack import DEFAULT_BASE_URL, ingest_data_driver, ingest_owl_driver, run_query, sparql_connection, Url +from rack import ingest_data_driver, ingest_owl_driver, run_query, sparql_connection, Url def test_load_csv(rack_in_a_box: str) -> None: # Just test that it doesn't raise an exception - ingest_data_driver(Path("../Turnstile-Ontology/99-Utils/Data/Model.yaml"), Url(rack_in_a_box), None, None, None, False) + ingest_data_driver(Path("../Turnstile-Ontology/99-Utils/Data/Model.yaml"), Url(rack_in_a_box), None, None, None, None, False) def test_load_owl(rack_in_a_box: str) -> None: # Just test that it doesn't raise an exception - ingest_owl_driver(Path("../RACK-Ontology/OwlModels/import.yaml"), Url(rack_in_a_box), None, None, False) + ingest_owl_driver(Path("../RACK-Ontology/OwlModels/import.yaml"), Url(rack_in_a_box), None, None, None, False) def test_run_query(rack_in_a_box: str) -> None: - conn = sparql_connection(Url(rack_in_a_box), Url("http://rack001/data"), [], None, None) + conn = sparql_connection(Url(rack_in_a_box), None, None, [], None, None) run_query(conn, "Ingest-SystemComponent") diff --git a/manifests/arcos.yaml b/manifests/arcos.yaml new file mode 100644 index 00000000..5679a0d7 --- /dev/null +++ b/manifests/arcos.yaml @@ -0,0 +1,23 @@ +name: 'ARCOS ontology' + +footprint: + model-graphs: + - http://rack001/model + data-graphs: + - http://rack001/nist-800-53 + - http://rack001/mitre-cwe + +steps: + - manifest: rack.yaml + + - model: ../Boeing-Ontology/OwlModels/import.yaml + - model: ../GrammaTech-Ontology/OwlModels/import.yaml + - model: ../LM-Ontology/OwlModels/import.yaml + - model: ../SRI-Ontology/OwlModels/import.yaml + - model: ../STR-Ontology/OwlModels/import.yaml + - model: ../RTX-Ontology/OwlModels/import.yaml + - data: ../RACK-Ontology/ontology/NIST-800-53/import.yaml + - model: ../RACK-Ontology/OwlModels/MITRE-CWE.yaml + - nodegroups: ../nodegroups/arcos.cwe + - data: ../RACK-Ontology/ontology/MITRE-CWE/import.yaml + - data: ../RACK-Ontology/ontology/claims/import.yaml diff --git a/manifests/entity_resolution.yaml b/manifests/entity_resolution.yaml new file mode 100644 index 00000000..ad8613ab --- /dev/null +++ b/manifests/entity_resolution.yaml @@ -0,0 +1,17 @@ +name: 'Entity Resolution' +copy-to-default-graph: true +perform-entity-resolution: true +perform-triplestore-optimization: true +footprint: + model-graphs: + - http://rack001/model + data-graphs: + - http://rack001/data + +steps: + - manifest: rack.yaml + - data: ../EntityResolution/TestData/Package-1/import.yaml + - data: ../EntityResolution/TestData/Package-2/import.yaml + - data: ../EntityResolution/TestData/Package-3/import.yaml + - data: ../EntityResolution/TestData/Resolutions-1/import.yaml + - data: ../EntityResolution/TestData/Resolutions-2/import.yaml diff --git a/manifests/rack.yaml b/manifests/rack.yaml new file mode 100644 index 00000000..d002739f --- /dev/null +++ b/manifests/rack.yaml @@ -0,0 +1,10 @@ +name: 'RACK ontology' +description: 'Base ontology for assurance case curation' + +footprint: + model-graphs: + - http://rack001/model + +steps: + - model: ../RACK-Ontology/OwlModels/import.yaml + - nodegroups: ../nodegroups/queries diff --git a/manifests/turnstile.yaml b/manifests/turnstile.yaml new file mode 100644 index 00000000..aa0b66ca --- /dev/null +++ b/manifests/turnstile.yaml @@ -0,0 +1,12 @@ +name: 'Turnstile ingestion' + +footprint: + model-graphs: + - http://rack001/model + data-graphs: + - http://rack001/do-178c + +steps: + - manifest: rack.yaml + - model: ../GE-Ontology/OwlModels/import.yaml + - data: ../RACK-Ontology/ontology/DO-178C/import.yaml diff --git a/migration/ontology_changes/change_property_domain.py b/migration/ontology_changes/change_property_domain.py new file mode 100644 index 00000000..a90dba4f --- /dev/null +++ b/migration/ontology_changes/change_property_domain.py @@ -0,0 +1,57 @@ +# Copyright (c) 2022, Galois, Inc. +# +# All Rights Reserved +# +# This material is based upon work supported by the Defense Advanced Research +# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. +# +# Any opinions, findings and conclusions or recommendations expressed in this +# material are those of the author(s) and do not necessarily reflect the views +# of the Defense Advanced Research Projects Agency (DARPA). + +from dataclasses import dataclass +from typing import Callable + +import semtk +from migration_helpers.name_space import NameSpace, get_uri + +from ontology_changes.ontology_change import ( + OntologyChange, + log_additional_change, + log_apply_change, + log_change, + stylize_class, + stylize_json, + stylize_property, +) + +@dataclass +class ChangePropertyDomain(OntologyChange): + """ + Represents an ontology change from: + + P describes X with values of type A. + + to: + + P describes Y with values of type B. + """ + + prop_name_space: NameSpace + prop_name: str + + from_name_space: NameSpace + from_domain: str + + to_name_space: NameSpace + to_domain: str + + def text_description(self) -> str: + prop = stylize_property(get_uri(self.prop_name_space, self.prop_name)) + from_domain = stylize_class(get_uri(self.from_name_space, self.from_domain)) + to_domain = stylize_class(get_uri(self.to_name_space, self.to_domain)) + return f"Domain of property {prop} was changed from {from_domain} to {to_domain}." + + def migrate_json(self, json: semtk.SemTKJSON) -> None: + # TODO + pass diff --git a/migration/ontology_changes/rename_property.py b/migration/ontology_changes/rename_property.py index 6f5a459b..9e4c2141 100644 --- a/migration/ontology_changes/rename_property.py +++ b/migration/ontology_changes/rename_property.py @@ -29,9 +29,7 @@ @dataclass class RenameProperty(OntologyChange): """ - Represents an ontology change where a property has been renamed. This also - encompasses cases where a property has effectively been moved across - classes. + Represents an ontology change where a property has been renamed. """ from_name_space: NameSpace diff --git a/migration/rack/commits/__init__.py b/migration/rack/commits/__init__.py index a3214475..dc66029b 100644 --- a/migration/rack/commits/__init__.py +++ b/migration/rack/commits/__init__.py @@ -20,6 +20,7 @@ commit0a89f70ff929380269a79fe2fc82f5dde346ed8c, commit10da69db606ebdc721fd3f8e003ef2099a5fdc43, commit13ed266ba5730cebe75c0c48f6ba83af69429122, + commit16f6fe3e2bb5c8c6fae59b10f400380a76863452, commit1834d0201254907fa50a32945716a3e0de985cad, commit183dbba72623c2585a0451a19ac1ddb30f8a0ea6, commit2439da7fb602f020e9a711511f84cd75e1522cdf, @@ -38,11 +39,13 @@ commit44393cc30bb0ba7482acd21b2e68576b577179f9, commit44da44c6877c881240c418d084ecb17de9443373, commit4687eafdd03e7c4ff6888691ed51c8ef388935b2, + commit4aff1ff6e25ec99d9acfc6863498c7b32241f9d4, commit4f60f85168ff8ef2513fa0e2f144c2ea5c3f87a3, commit4f9fce78e36a6dc75f1702ab50da6a4ac801dd5e, commit500958dae09d88f0b82c40faf93a634d108d360f, commit5329c949815afea87d8bae3768bf132258aad9a0, commit581f1820855eee2445d9e8bfdbb639e169e9391e, + commit5c7920fe44a3a60c76fefddd2b88cd27851f37ed, commit5db0d118642b541b811d23d32c5f3410d0507618, commit5dd1a584e19b8716f0f13dc3a2cb2ba2d409c325, commit620b89db747b9834013502061040f179da67f123, @@ -66,9 +69,11 @@ commitb25d07626e4693cd370a2070e17f6baa825a1d43, commitb6796936abe054edc9c4f9657c34bb0eadf0757a, commitb721c16f0f7420a8ccd92bda0d98a96c16dc62b8, + commitb85a66b005f4105ac5195cfd2cefec475f9e1f21, commitb865c663351f39c275f5fb9985b681a6ae432cac, commitbdfef3d7ea9b3c9fc085defa8e26256f646097d9, commitc41222325db52df0eb5c1e7cb3a091f8c62f5b57, + commitc47f4e58c0cb3d0925d7894e301e6a1f83e22580, commitc5306ce176984770b93070da829f60769cb19628, commitc6692fed3e150e7df53d4a2a8f8c84f760087420, commitcafce30763b5332106340cc8cbeb8fdac3b8132d, @@ -79,6 +84,7 @@ commite5e8a35322fab104a42cc0f46d16c27ffc10adbb, commite696969a9d85ca8f894eea12305412bdc05521b3, commitee148bca649a1b451085832a7e2a488ce4127de7, + commitef72564bbc4887c2d6f6654671427ba2780e0f67, commitf801242e4a8a763620571481fd83cc2af5aac2ac, commitfa603aad886439eb6a94e44e2c6f4851af16c9a3, commitff31a28051a5e348fd2474fce5360195999ddb3a, @@ -186,7 +192,15 @@ commit815f98911956aafea98b81787eec328b2833ec72.commit, # 2022 Feb 18 commit4687eafdd03e7c4ff6888691ed51c8ef388935b2.commit, # 2022 Feb 28 - # TODO # v10.0 + commitef72564bbc4887c2d6f6654671427ba2780e0f67.commit, # v10.0 + + commit5c7920fe44a3a60c76fefddd2b88cd27851f37ed.commit, # 2022 Apr 20 + commit4aff1ff6e25ec99d9acfc6863498c7b32241f9d4.commit, # 2022 Aug 03 + commitc47f4e58c0cb3d0925d7894e301e6a1f83e22580.commit, # 2022 Aug 25 + commitb85a66b005f4105ac5195cfd2cefec475f9e1f21.commit, # 2022 Oct 05 + commit16f6fe3e2bb5c8c6fae59b10f400380a76863452.commit, # 2022 Oct 05 + + # TODO: v11 # most recent (in history) ] diff --git a/migration/rack/commits/commit16f6fe3e2bb5c8c6fae59b10f400380a76863452.py b/migration/rack/commits/commit16f6fe3e2bb5c8c6fae59b10f400380a76863452.py new file mode 100644 index 00000000..ada09d74 --- /dev/null +++ b/migration/rack/commits/commit16f6fe3e2bb5c8c6fae59b10f400380a76863452.py @@ -0,0 +1,45 @@ +# Copyright (c) 2022, Galois, Inc. +# +# All Rights Reserved +# +# This material is based upon work supported by the Defense Advanced Research +# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. +# +# Any opinions, findings and conclusions or recommendations expressed in this +# material are those of the author(s) and do not necessarily reflect the views +# of the Defense Advanced Research Projects Agency (DARPA). + +from ontology_changes import Commit +from ontology_changes.change_property_domain import ChangePropertyDomain +from rack.namespaces.rack_ontology import CONFIDENCE + +commit = Commit( + number="16f6fe3e2bb5c8c6fae59b10f400380a76863452", + changes=[ + # CONFIDENCE.sadl + ChangePropertyDomain( + prop_name_space=CONFIDENCE, + prop_name="belief", + from_name_space=CONFIDENCE, + from_domain="CONFIDENCE_ASSESSMENT", + to_name_space=CONFIDENCE, + to_domain="BDU_CONFIDENCE_ASSESSMENT", + ), + ChangePropertyDomain( + prop_name_space=CONFIDENCE, + prop_name="disbelief", + from_name_space=CONFIDENCE, + from_domain="CONFIDENCE_ASSESSMENT", + to_name_space=CONFIDENCE, + to_domain="BDU_CONFIDENCE_ASSESSMENT", + ), + ChangePropertyDomain( + prop_name_space=CONFIDENCE, + prop_name="uncertainty", + from_name_space=CONFIDENCE, + from_domain="CONFIDENCE_ASSESSMENT", + to_name_space=CONFIDENCE, + to_domain="BDU_CONFIDENCE_ASSESSMENT", + ), + ], +) diff --git a/migration/rack/commits/commit4aff1ff6e25ec99d9acfc6863498c7b32241f9d4.py b/migration/rack/commits/commit4aff1ff6e25ec99d9acfc6863498c7b32241f9d4.py new file mode 100644 index 00000000..8c4881e3 --- /dev/null +++ b/migration/rack/commits/commit4aff1ff6e25ec99d9acfc6863498c7b32241f9d4.py @@ -0,0 +1,19 @@ +# Copyright (c) 2022, Galois, Inc. +# +# All Rights Reserved +# +# This material is based upon work supported by the Defense Advanced Research +# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. +# +# Any opinions, findings and conclusions or recommendations expressed in this +# material are those of the author(s) and do not necessarily reflect the views +# of the Defense Advanced Research Projects Agency (DARPA). + +from ontology_changes import Commit + +commit = Commit( + number="4aff1ff6e25ec99d9acfc6863498c7b32241f9d4", + changes=[ + # comment update only + ], +) diff --git a/migration/rack/commits/commit5c7920fe44a3a60c76fefddd2b88cd27851f37ed.py b/migration/rack/commits/commit5c7920fe44a3a60c76fefddd2b88cd27851f37ed.py new file mode 100644 index 00000000..9949a948 --- /dev/null +++ b/migration/rack/commits/commit5c7920fe44a3a60c76fefddd2b88cd27851f37ed.py @@ -0,0 +1,42 @@ +# Copyright (c) 2022, Galois, Inc. +# +# All Rights Reserved +# +# This material is based upon work supported by the Defense Advanced Research +# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. +# +# Any opinions, findings and conclusions or recommendations expressed in this +# material are those of the author(s) and do not necessarily reflect the views +# of the Defense Advanced Research Projects Agency (DARPA). + +from ontology_changes import Commit +from ontology_changes.create_property import CreateProperty +from ontology_changes.rename_class import RenameClass +from ontology_changes.rename_property import RenameProperty + +from rack.namespaces.rack_ontology import HARDWARE, SOFTWARE + +commit = Commit( + number="5c7920fe44a3a60c76fefddd2b88cd27851f37ed", + changes=[ + CreateProperty( + name_space=HARDWARE, + class_id="HWCOMPONENT", + property_id="partOf", + ), + RenameClass( + from_name_space=SOFTWARE, + from_name="COMPONENT_TYPE", + to_name_space=SOFTWARE, + to_name="SWCOMPONENT_TYPE", + ), + RenameProperty( + from_name_space=SOFTWARE, + from_class="SWCOMPONENT", + from_name="subcomponentOf", + to_name_space=SOFTWARE, + to_class="SWCOMPONENT", + to_name="partOf", + ), + ], +) diff --git a/migration/rack/commits/commitb85a66b005f4105ac5195cfd2cefec475f9e1f21.py b/migration/rack/commits/commitb85a66b005f4105ac5195cfd2cefec475f9e1f21.py new file mode 100644 index 00000000..0220a4da --- /dev/null +++ b/migration/rack/commits/commitb85a66b005f4105ac5195cfd2cefec475f9e1f21.py @@ -0,0 +1,29 @@ +# Copyright (c) 2022, Galois, Inc. +# +# All Rights Reserved +# +# This material is based upon work supported by the Defense Advanced Research +# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. +# +# Any opinions, findings and conclusions or recommendations expressed in this +# material are those of the author(s) and do not necessarily reflect the views +# of the Defense Advanced Research Projects Agency (DARPA). + +from ontology_changes import Commit +from ontology_changes.change_class_is_a_type_of import ChangeClassIsATypeOf +from rack.namespaces.rack_ontology import CONFIDENCE, PROV_S + +commit = Commit( + number="b85a66b005f4105ac5195cfd2cefec475f9e1f21", + changes=[ + # CONFIDENCE.sadl + ChangeClassIsATypeOf( + name_space=CONFIDENCE, + class_id="CONFIDENCE_ASSESSMENT", + from_name_space=PROV_S, + from_class_id="THING", + to_name_space=PROV_S, + to_class_id="ENTITY", + ) + ], +) diff --git a/migration/rack/commits/commitc47f4e58c0cb3d0925d7894e301e6a1f83e22580.py b/migration/rack/commits/commitc47f4e58c0cb3d0925d7894e301e6a1f83e22580.py new file mode 100644 index 00000000..b8dede68 --- /dev/null +++ b/migration/rack/commits/commitc47f4e58c0cb3d0925d7894e301e6a1f83e22580.py @@ -0,0 +1,19 @@ +# Copyright (c) 2022, Galois, Inc. +# +# All Rights Reserved +# +# This material is based upon work supported by the Defense Advanced Research +# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. +# +# Any opinions, findings and conclusions or recommendations expressed in this +# material are those of the author(s) and do not necessarily reflect the views +# of the Defense Advanced Research Projects Agency (DARPA). + +from ontology_changes import Commit + +commit = Commit( + number="c47f4e58c0cb3d0925d7894e301e6a1f83e22580", + changes=[ + # comment updates only + ], +) diff --git a/migration/rack/commits/commitef72564bbc4887c2d6f6654671427ba2780e0f67.py b/migration/rack/commits/commitef72564bbc4887c2d6f6654671427ba2780e0f67.py new file mode 100644 index 00000000..9ba83863 --- /dev/null +++ b/migration/rack/commits/commitef72564bbc4887c2d6f6654671427ba2780e0f67.py @@ -0,0 +1,20 @@ +# Copyright (c) 2022, Galois, Inc. +# +# All Rights Reserved +# +# This material is based upon work supported by the Defense Advanced Research +# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203. +# +# Any opinions, findings and conclusions or recommendations expressed in this +# material are those of the author(s) and do not necessarily reflect the views +# of the Defense Advanced Research Projects Agency (DARPA). + +from ontology_changes import Commit + +commit = Commit( + number="ef72564bbc4887c2d6f6654671427ba2780e0f67", + tag="v10.0", + changes=[ + # no ontology change, just here for the tag + ], +) diff --git a/migration/rack/commits/template.py b/migration/rack/commits/template.py index 93dd22ab..f9bca1ba 100644 --- a/migration/rack/commits/template.py +++ b/migration/rack/commits/template.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021, Galois, Inc. +# Copyright (c) 2022, Galois, Inc. # # All Rights Reserved # diff --git a/nodegroups/arcos.cwe/CWE ingestion.json b/nodegroups/arcos.cwe/CWE ingestion.json index cf9773e8..3bb476b1 100644 --- a/nodegroups/arcos.cwe/CWE ingestion.json +++ b/nodegroups/arcos.cwe/CWE ingestion.json @@ -1,125 +1,156 @@ { - "importSpec": { - "baseURI": "", - "columns": [ - { - "colId": "col_0", - "colName": "description" - }, - { - "colId": "col_1", - "colName": "identifier" - } - ], - "dataValidator": [], - "nodes": [ - { - "URILookupMode": "createIfMissing", - "mapping": [], - "props": [ - { - "URIRelation": "http://arcos.rack/PROV-S#description", - "mapping": [ - { - "colId": "col_0" - } - ] - }, - { - "URILookup": [ - "?MITRE_CWE" - ], - "URIRelation": "http://arcos.rack/PROV-S#identifier", - "mapping": [ - { - "colId": "col_1" - } - ] - } - ], - "sparqlID": "?MITRE_CWE", - "type": "http://arcos.acert/MITRE-CWE#MITRE_CWE" - } - ], - "texts": [], - "transforms": [], - "version": "1" - }, - "plotSpecs": [], - "sNodeGroup": { - "groupBy": [], - "limit": 0, - "offset": 0, - "orderBy": [], - "sNodeList": [ - { - "SparqlID": "?MITRE_CWE", - "deletionMode": "NO_DELETE", - "fullURIName": "http://arcos.acert/MITRE-CWE#MITRE_CWE", - "instanceValue": null, - "isReturned": false, - "isRuntimeConstrained": false, - "nodeList": [], - "propList": [ - { - "Constraints": "", - "SparqlID": "?description", - "UriRelationship": "http://arcos.rack/PROV-S#description", - "ValueType": "string", - "instanceValues": [], - "isMarkedForDeletion": false, - "isReturned": true, - "isRuntimeConstrained": false, - "optMinus": 0, - "relationship": "http://www.w3.org/2001/XMLSchema#string" - }, - { - "Constraints": "", - "SparqlID": "?identifier", - "UriRelationship": "http://arcos.rack/PROV-S#identifier", - "ValueType": "string", - "instanceValues": [], - "isMarkedForDeletion": false, - "isReturned": true, - "isRuntimeConstrained": false, - "optMinus": 0, - "relationship": "http://www.w3.org/2001/XMLSchema#string" - } - ], - "valueConstraint": "" - } - ], - "unionHash": {}, - "version": 15 - }, - "sparqlConn": { - "data": [ - { - "graph": "http://rack001/data", - "type": "fuseki", - "url": "http://127.0.0.1:3030/RACK" - }, - { - "graph": "http://rack001/turnstiledata", - "type": "fuseki", - "url": "http://127.0.0.1:3030/RACK" - }, - { - "graph": "http://rack001/gtdata", - "type": "fuseki", - "url": "http://127.0.0.1:3030/RACK" - } - ], - "domain": "", - "enableOwlImports": true, - "model": [ - { - "graph": "http://rack001/model", - "type": "fuseki", - "url": "http://127.0.0.1:3030/RACK" - } - ], - "name": "RACK" - }, - "version": 3 + "version": 3, + "sparqlConn": { + "name": "RACK", + "domain": "", + "enableOwlImports": true, + "model": [ + { + "type": "fuseki", + "url": "http://127.0.0.1:3030/RACK", + "graph": "http://rack001/model" + } + ], + "data": [ + { + "type": "fuseki", + "url": "http://127.0.0.1:3030/RACK", + "graph": "http://rack001/data" + }, + { + "type": "fuseki", + "url": "http://127.0.0.1:3030/RACK", + "graph": "http://rack001/turnstiledata" + }, + { + "type": "fuseki", + "url": "http://127.0.0.1:3030/RACK", + "graph": "http://rack001/gtdata" + } + ] + }, + "sNodeGroup": { + "version": 19, + "limit": 0, + "offset": 0, + "sNodeList": [ + { + "propList": [ + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#description", + "Constraints": "", + "SparqlID": "?description", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + }, + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", + "Constraints": "", + "SparqlID": "?identifier", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + }, + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#title", + "Constraints": "", + "SparqlID": "?title", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + } + ], + "nodeList": [], + "fullURIName": "http://arcos.acert/MITRE-CWE#MITRE_CWE", + "SparqlID": "?MITRE_CWE", + "isReturned": false, + "isRuntimeConstrained": false, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE" + } + ], + "orderBy": [], + "groupBy": [], + "unionHash": {}, + "columnOrder": [] + }, + "importSpec": { + "version": "1", + "baseURI": "", + "columns": [ + { + "colId": "col_0", + "colName": "identifier" + }, + { + "colId": "col_1", + "colName": "title" + }, + { + "colId": "col_2", + "colName": "description" + } + ], + "dataValidator": [], + "texts": [], + "transforms": [], + "nodes": [ + { + "sparqlID": "?MITRE_CWE", + "type": "http://arcos.acert/MITRE-CWE#MITRE_CWE", + "URILookupMode": "createIfMissing", + "mapping": [], + "props": [ + { + "URIRelation": "http://arcos.rack/PROV-S#description", + "mapping": [ + { + "colId": "col_2" + } + ] + }, + { + "URIRelation": "http://arcos.rack/PROV-S#identifier", + "URILookup": [ + "?MITRE_CWE" + ], + "mapping": [ + { + "colId": "col_0" + } + ] + }, + { + "URIRelation": "http://arcos.rack/PROV-S#title", + "mapping": [ + { + "colId": "col_1" + } + ] + } + ] + } + ] + }, + "plotSpecs": [] } \ No newline at end of file diff --git a/nodegroups/queries/query Requirement Review same Agent.json b/nodegroups/queries/query Requirement Review same Agent.json new file mode 100644 index 00000000..98743ca4 --- /dev/null +++ b/nodegroups/queries/query Requirement Review same Agent.json @@ -0,0 +1,192 @@ +{ + "version": 3, + "sparqlConn": { + "name": "Local", + "domain": "", + "enableOwlImports": true, + "model": [ + { + "type": "fuseki", + "url": "http://localhost:3030/RACK", + "graph": "http://rack001/model" + } + ], + "data": [ + { + "type": "fuseki", + "url": "http://localhost:3030/RACK", + "graph": "http://rack001/data" + } + ] + }, + "sNodeGroup": { + "version": 19, + "limit": 0, + "offset": 0, + "sNodeList": [ + { + "propList": [ + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", + "Constraints": "", + "SparqlID": "?identifier", + "isReturned": false, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false, + "binding": "?hl_identifier", + "isBindingReturned": true + } + ], + "nodeList": [], + "fullURIName": "http://arcos.rack/REQUIREMENTS#REQUIREMENT", + "SparqlID": "?REQUIREMENT_0", + "isReturned": false, + "isRuntimeConstrained": false, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE", + "binding": "?HL_REQUIREMENT", + "isBindingReturned": false + }, + { + "propList": [ + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", + "Constraints": "", + "SparqlID": "?ll_identifier", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + } + ], + "nodeList": [ + { + "SnodeSparqlIDs": [ + "?REQUIREMENT_0" + ], + "OptionalMinus": [ + 0 + ], + "Qualifiers": [ + "" + ], + "DeletionMarkers": [ + false + ], + "range": [ + "http://arcos.rack/PROV-S#ENTITY" + ], + "ConnectBy": "satisfies", + "Connected": true, + "UriConnectBy": "http://arcos.rack/REQUIREMENTS#satisfies" + } + ], + "fullURIName": "http://arcos.rack/REQUIREMENTS#REQUIREMENT", + "SparqlID": "?REQUIREMENT", + "isReturned": false, + "isRuntimeConstrained": false, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE", + "binding": "?LL_REQUIREMENT", + "isBindingReturned": false + }, + { + "propList": [ + { + "valueTypes": [ + "string" + ], + "rangeURI": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", + "Constraints": "", + "SparqlID": "?baseline_identifier", + "isReturned": true, + "optMinus": 0, + "isRuntimeConstrained": false, + "instanceValues": [], + "isMarkedForDeletion": false + } + ], + "nodeList": [ + { + "SnodeSparqlIDs": [ + "?REQUIREMENT", + "?REQUIREMENT_0" + ], + "OptionalMinus": [ + 0, + 0 + ], + "Qualifiers": [ + "", + "" + ], + "DeletionMarkers": [ + false, + false + ], + "range": [ + "http://arcos.rack/PROV-S#ENTITY" + ], + "ConnectBy": "content", + "Connected": true, + "UriConnectBy": "http://arcos.rack/PROV-S#content" + } + ], + "fullURIName": "http://arcos.rack/BASELINE#BASELINE", + "SparqlID": "?BASELINE", + "isReturned": false, + "isRuntimeConstrained": false, + "valueConstraint": "", + "instanceValue": null, + "deletionMode": "NO_DELETE" + } + ], + "orderBy": [], + "groupBy": [], + "unionHash": {}, + "columnOrder": [] + }, + "importSpec": { + "version": "1", + "baseURI": "", + "columns": [], + "dataValidator": [], + "texts": [], + "transforms": [], + "nodes": [ + { + "sparqlID": "?BASELINE", + "type": "http://arcos.rack/BASELINE#BASELINE", + "mapping": [], + "props": [] + }, + { + "sparqlID": "?REQUIREMENT", + "type": "http://arcos.rack/REQUIREMENTS#REQUIREMENT", + "mapping": [], + "props": [] + }, + { + "sparqlID": "?REQUIREMENT_0", + "type": "http://arcos.rack/REQUIREMENTS#REQUIREMENT", + "mapping": [], + "props": [] + } + ] + }, + "plotSpecs": null +} \ No newline at end of file diff --git a/nodegroups/queries/query dataVer SBVT_Test without REQUIREMENT.json b/nodegroups/queries/query dataVer SBVT_Test without REQUIREMENT.json index 0c0a61a5..39d1900f 100644 --- a/nodegroups/queries/query dataVer SBVT_Test without REQUIREMENT.json +++ b/nodegroups/queries/query dataVer SBVT_Test without REQUIREMENT.json @@ -27,8 +27,9 @@ { "propList": [], "nodeList": [], - "fullURIName": "http://arcos.AH-64D/Boeing#SBVT_Test", - "SparqlID": "?SBVT_Test", + "NodeName": "REQUIREMENT", + "fullURIName": "http://arcos.rack/REQUIREMENTS#REQUIREMENT", + "SparqlID": "?REQUIREMENT", "isReturned": false, "isRuntimeConstrained": false, "valueConstraint": "", @@ -38,11 +39,10 @@ { "propList": [ { - "valueTypes": [ - "string" - ], - "rangeURI": "http://www.w3.org/2001/XMLSchema#string", - "domainURI": "http://arcos.rack/PROV-S#identifier", + "KeyName": "identifier", + "ValueType": "string", + "relationship": "http://www.w3.org/2001/XMLSchema#string", + "UriRelationship": "http://arcos.rack/PROV-S#identifier", "Constraints": "", "SparqlID": "?identifier", "isReturned": true, @@ -55,7 +55,7 @@ "nodeList": [ { "SnodeSparqlIDs": [ - "?SBVT_Test" + "?REQUIREMENT" ], "OptionalMinus": [ 2 @@ -66,16 +66,17 @@ "DeletionMarkers": [ false ], - "range": [ - "http://arcos.AH-64D/Boeing#SBVT_Test" - ], - "ConnectBy": "confirms", + "KeyName": "verifies", + "ValueType": "ENTITY", + "UriValueType": "http://arcos.rack/PROV-S#ENTITY", + "ConnectBy": "verifies", "Connected": true, - "UriConnectBy": "http://arcos.rack/TESTING#confirms" + "UriConnectBy": "http://arcos.rack/TESTING#verifies" } ], - "fullURIName": "http://arcos.AH-64D/Boeing#SBVT_Result", - "SparqlID": "?SBVT_Result", + "NodeName": "SBVT_Test", + "fullURIName": "http://arcos.AH-64D/Boeing#SBVT_Test", + "SparqlID": "?SBVT_Test", "isReturned": false, "isRuntimeConstrained": false, "valueConstraint": "", @@ -84,9 +85,7 @@ } ], "orderBy": [], - "groupBy": [], - "unionHash": {}, - "columnOrder": [] + "unionHash": {} }, "importSpec": { "version": "1", @@ -97,18 +96,18 @@ "transforms": [], "nodes": [ { - "sparqlID": "?SBVT_Result", - "type": "http://arcos.AH-64D/Boeing#SBVT_Result", + "sparqlID": "?SBVT_Test", + "type": "http://arcos.AH-64D/Boeing#SBVT_Test", "mapping": [], "props": [] }, { - "sparqlID": "?SBVT_Test", - "type": "http://arcos.AH-64D/Boeing#SBVT_Test", + "sparqlID": "?REQUIREMENT", + "type": "http://arcos.rack/REQUIREMENTS#REQUIREMENT", "mapping": [], "props": [] } ] }, - "plotSpecs": [] + "plotSpecs": null } \ No newline at end of file diff --git a/nodegroups/queries/store_data.csv b/nodegroups/queries/store_data.csv index 46f6453c..b5f83b44 100644 --- a/nodegroups/queries/store_data.csv +++ b/nodegroups/queries/store_data.csv @@ -30,3 +30,4 @@ query dataVer SYSTEM without partOf SYSTEM,number of SYSTEM w/o -partOf-> SYSTEM query dataVer unlinked SWCOMPONENT,Find SWCOMPONENT w/o -wasImpactedBy-> REQUIREMENT or w/o -subcomponentOf -> SWCOMPONENT,rack,query dataVer unlinked SWCOMPONENT.json,PrefabNodeGroup report data verification,Run the dataVer nodegroups,rack,report data verification.json,Report setup ARCOS Apache Phase 2,doesn't return anything; used to setup the connections with Apache datagraphs,rack,setup-arcos-ApachePhase2.json,PrefabNodeGroup +query Requirement Review same Agent,Demonstration of a nodegroup that isn't a tree structure,rack,query Requirement Review same Agent.json,PrefabNodeGroup diff --git a/rack-box/.gitignore b/rack-box/.gitignore index 82b9b51f..190f1008 100644 --- a/rack-box/.gitignore +++ b/rack-box/.gitignore @@ -6,5 +6,6 @@ crash.log # For built boxes files/ +focal64/ output-* rack-box-*-v* diff --git a/rack-box/Docker-Hub-README.md b/rack-box/Docker-Hub-README.md index d627dddf..b59a7f27 100644 --- a/rack-box/Docker-Hub-README.md +++ b/rack-box/Docker-Hub-README.md @@ -11,16 +11,22 @@ You may need to increase the resources given to Docker in order to run a RACK bo If you do see these resource settings, make the following changes: 1. Increase the number of CPUs to 4 if you have enough CPUs (2 may be enough if you don't have many CPUs). -2. Increase the amount of Memory to 4.00 GB (or more if you have plenty of RAM). +2. Increase the amount of Memory to 20 GB (16 GB may be enough if you don't have much RAM). 3. Click the Apply & Restart button to restart Docker with the new resource settings. -Now you are ready to start your RACK box. Type the following command to run your RACK box on your computer: +Now you are ready to start your RACK box. If you are running Unix or Mac, you can use the cli command: ```shell -docker run --detach -p 8080:80 -p 12050-12092:12050-12092 -p 3030:3030 gehighassurance/rack-box:v10.2 +./cli/docker_start.sh ``` -Type "localhost:8080" in your web browser's address bar, hit Enter, and you should see your RACK box's welcome page appear in your browser. The welcome page will tell you some things you can do with your RACK box. +Otherwise, type the following command to run your RACK box on your computer: + +```shell +docker run --detach -p 3030:3030 -p 8050:8050 -p 8080:80 -p 12050-12091:12050-12091 gehighassurance/rack-box:v11 +``` + +Type in your web browser's address bar, hit Enter, and you should see your RACK box's welcome page appear in your browser. The welcome page will tell you some things you can do with your RACK box. --- Copyright (c) 2021, General Electric Company, Galois, Inc. diff --git a/rack-box/GitHub-Release-README.md b/rack-box/GitHub-Release-README.md index dbdfa6d3..eecc6f75 100644 --- a/rack-box/GitHub-Release-README.md +++ b/rack-box/GitHub-Release-README.md @@ -1,44 +1,29 @@ -## Run a RACK box container +## Run a RACK box using a Linux container -Here are very brief instructions how to run a RACK box container. You will find more detailed [instructions](https://github.com/ge-high-assurance/RACK/wiki/02-Run-a-RACK-Box-container) in the RACK Wiki. You will need to give your Docker Hub username to the RACK team so you can be given access to our Docker Hub repository. +Here are very brief instructions how to run a RACK box using a Linux container. You will find more detailed [instructions](https://github.com/ge-high-assurance/RACK/wiki/02-Run-a-RACK-Box-container) in the RACK Wiki. You will need to give your Docker Hub username to the RACK team so you can be given access to our Docker Hub repository. 1. Open a terminal window where you can run `docker`. -2. Type `docker pull gehighassurance/rack-box:v10.2` -3. Type `docker run --detach -p 8080:80 -p 12050-12092:12050-12092 -p 3030:3030 gehighassurance/rack-box:v10.2` +2. Type `docker pull gehighassurance/rack-box:v11` +3. Type `docker run --detach -p 3030:3030 -p 8050:8050 -p 8080:80 -p 12050-12091:12050-12091 gehighassurance/rack-box:v11` 4. Visit in your browser to view the RACK box's welcome page. -## Run a RACK box virtual machine +## Run a RACK box using a virtual machine -Here are very brief instructions how to run a RACK box virtual machine. You will find more detailed [instructions](https://github.com/ge-high-assurance/RACK/wiki/03-Run-a-RACK-Box-VM) in the RACK Wiki. +Here are very brief instructions how to run a RACK box using a virtual machine. You will find more detailed [instructions](https://github.com/ge-high-assurance/RACK/wiki/03-Run-a-RACK-Box-VM) in the RACK Wiki. -1. Download the split VirtualBox zip files. -2. Concatenate the split VirtualBox zip files together. +1. Download the split zip files. +2. Concatenate the split zip files together. 3. Unzip the newly concatenated zip file. 4. Start VirtualBox. -5. Import the VirtualBox VM from the rack-box-virtualbox-v10.2 folder. -6. Open the VM's Settings. -7. Click on Network. -8. Change the first network adapter from NAT to Bridged. -9. Bind one of your existing network adapters to the bridged network adapter. -10. Start the VM. - -## View the RACK box's welcome page - -You will need to know which IP address the VM is using after it starts up. If you can't find the IP address any other way, you can use the VM window to log into the VM and print its IP address: - -1. Click in the VM's window. -2. Type "ubuntu" at the username prompt. -3. Type "ubuntu" at the password prompt. -4. Type "ip a" at the shell prompt. -5. Look for the IP address in the second adapter. - -Type that IP address in your web browser's address bar, hit Enter, and you should see the RACK box's welcome page appear in your browser. +5. Import the virtual machine from the unpacked .ovf file. +6. Start the virtual machine. +7. Visit in your browser to view the RACK box's welcome page. --- -Copyright (c) 2021, General Electric Company, Galois, Inc. +Copyright (c) 2022, General Electric Company, Galois, Inc. All Rights Reserved diff --git a/rack-box/README.md b/rack-box/README.md index a8f61742..7ef8fc0d 100644 --- a/rack-box/README.md +++ b/rack-box/README.md @@ -30,18 +30,22 @@ variables explicitly in your packer build command like this: ## Files needed before building -You will need to download 9 files into the `files` subdirectory before -building your rack-box images. Please see the +You will need to download some files into the `files` subdirectory +before building your rack-box images. Please see the [commands](../.github/workflows/actions/download/action.yml) used by our workflows for the most up to date way to download these files, although we will mention each file here as well: -- `files/fuseki.tar.gz`: Download latest Fuseki release tarball from - and rename it (note we still are - using version 3.16.0 instead of the latest release, though) +- `files/fuseki.tar.gz`: Download latest Fuseki tarball from + , renaming it to `fuseki.tar.gz` -- `files/semtk.tar.gz`: Download latest SemTK release tarball from - and rename it +- `files/jena.tar.gz`: Download latest Jena tarball from the + same page, , renaming it to + `jena.tar.gz` + +- `files/semtk.tar.gz`: Download latest SemTK tarball from + , renaming it to + `semtk.tar.gz` - `files/style.css`: Download latest CSS stylesheet (`style.css`) for rendering markdown from @@ -51,11 +55,6 @@ although we will mention each file here as well: (`files/docker/systemctl3.py`) from [docker-systemd-replacement](https://github.com/gdraheim/docker-systemctl-replacement) -- `files/rack.tar.gz`: Package the RACK ontology and data (`tar cfz - RACK/rack-box/files/rack.tar.gz --exclude=.git --exclude=.github - --exclude=assist --exclude=cli --exclude=rack-box --exclude=tests - --exclude=tools RACK`) - - `files/rack-assist.tar.gz`: Package the RACK ASSIST (`tar cfz RACK/rack-box/files/rack-assist.tar.gz RACK/assist`) @@ -64,11 +63,24 @@ although we will mention each file here as well: RACK/cli/{*.sh,wheels}`), see [Build the RACK CLI](#Build-the-RACK-CLI) for build instructions first +- `files/rack-ui.tar.gz`: Package the RACK UI (`tar cfz + RACK/rack-box/files/rack-ui.tar.gz RACK/rack-ui`) + - `files/{documentation.html,index.html}`: Package the RACK documentation, see [Package RACK documentation](#Package-RACK-documentation) for instructions -Once you have put these 9 files into the `files` subdirectory, skip to +- `files/rack.tar.gz`: Generate OWL/CDR files (see [instructions + below](#Generate-OWL-CDR-files)) and package the RACK ontology and + data (`tar cfz RACK/rack-box/files/rack.tar.gz --exclude=.git + --exclude=.github --exclude=assist --exclude=cli --exclude=rack-box + --exclude=tests --exclude=tools RACK`) + +- `focal64\*`: Unpack a recent Ubuntu vagrant box here (`curl -LOSfs + https://app.vagrantup.com/ubuntu/boxes/focal64/versions/20221021.0.0/providers/virtualbox.box + && tar -xf virtualbox.box -C RACK/rack-box/focal64`) + +Once you have put these files into the `files` subdirectory, skip to [Build the rack-box images](#Build-the-rack-box-images) for the next step. @@ -107,6 +119,19 @@ repositories, run these commands: sed -i -e 's/>NodeGroupService/ onclick="javascript:event.target.port=12058">NodeGroupService/' index.html mv documentation.html index.html RACK/rack-box/files +## Generate OWL/CDR files + +You will need a running rack-box dev image in order to generate OWL +and CDR files. Start a rack-box running in the background, then run +these commands, and finally stop the rack-box that was running in the +background once you're done: + + RACK/cli/setup-owl.sh -b + pip3 install RACK/cli/wheels/*.whl + tar xfz RACK/rack-box/files/semtk.tar.gz + semtk-opensource/standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar + RACK/nodegroups/generate-cdrs.sh semtk-opensource/standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar + ## Build the rack-box images You will need to install [Packer](https://www.packer.io/) if you don't @@ -122,50 +147,10 @@ Docker, Hyper-V, and VirtualBox rack-box images: When Packer finishes these build commands, it will save the Docker rack-box image in your local Docker image cache and save the Hyper-V & VirtualBox rack-box images to new subdirectories called -`output-hyperv-iso` and `output-virtualbox-iso`. Your Hyper-V and +`output-hyperv-iso` and `output-virtualbox-ovf`. Your Hyper-V and VirtualBox GUI program can import these subdirectories directly into newly created virtual machines. -### Troubleshooting - -### Using `act` to run CI locally - -The [act](https://github.com/nektos/act) tool can be used to run (an -approximation of) the Github Actions workflows locally: - -- Download a binary release of Packer for Ubuntu, and place the - `packer` executable in the `rack-box/` directory -- Install `act` -- Generate a Github [personal access - token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) -- Create a `.secrets` file containing - `GITHUB_TOKEN=` -- Run `act --secret-file .secrets -P - ghcr.io/ubuntu-20.04=catthehacker/ubuntu:act-20.04` - -The first execution of `act` takes a while because it downloads the -Docker image `ghcr.io/catthehacker/ubuntu:act-20.04` and you'll need -enough free disk space to store the image. - -#### "volume is in use" - -If you see a message like this: - - Error: Error response from daemon: remove act-Build-Lint-shell-scripts-and-the-RACK-CLI: volume is in use - -You can forcibly stop and remove the `act` Docker containers and their volumes: - - docker stop $(docker ps -a | grep "ubuntu-act" | awk '{print $1}') - docker rm $(docker ps -a | grep "ubuntu-act" | awk '{print $1}') - docker volume rm $(docker volume ls --filter dangling=true | grep -o -E "act-.+$") - -There may also be a more precise solution to this issue, but the above works. - -#### "permission denied while trying to connect to the Docker daemon socket" - -`act` needs to be run with enough privileges to run Docker containers. Try -`sudo -g docker act ...` (or an equivalent invocation for your OS/distro). - --- Copyright (c) 2021, General Electric Company, Galois, Inc. diff --git a/rack-box/RELEASE.md b/rack-box/RELEASE.md index 557ca106..09b0b10c 100644 --- a/rack-box/RELEASE.md +++ b/rack-box/RELEASE.md @@ -6,11 +6,13 @@ steps: 1. Update version numbers or instructions in the following files within the RACK and RACK.wiki repositories: - RACK/ + RACK/rack-box/ - [ ] [Docker-Hub-README.md](Docker-Hub-README.md) - [ ] [GitHub-Release-README.md](GitHub-Release-README.md) - [ ] [RELEASE.md](RELEASE.md) + + RACK/cli/ - [ ] [setup-owl.sh](../cli/setup-owl.sh) RACK.wiki/ @@ -42,7 +44,7 @@ steps: ```shell cd RACK.wiki - git tag v10.2 + git tag v11 git push --tag ``` diff --git a/rack-box/files/GE_External_Root_CA_2_1.crt b/rack-box/files/GE_External_Root_CA_2_1.crt new file mode 100644 index 00000000..ae297f6c --- /dev/null +++ b/rack-box/files/GE_External_Root_CA_2_1.crt @@ -0,0 +1,22 @@ +-----BEGIN CERTIFICATE----- +MIIDozCCAougAwIBAgIQeO8XlqAMLhxvtCap35yktzANBgkqhkiG9w0BAQsFADBS +MQswCQYDVQQGEwJVUzEhMB8GA1UEChMYR2VuZXJhbCBFbGVjdHJpYyBDb21wYW55 +MSAwHgYDVQQDExdHRSBFeHRlcm5hbCBSb290IENBIDIuMTAeFw0xNTAzMDUwMDAw +MDBaFw0zNTAzMDQyMzU5NTlaMFIxCzAJBgNVBAYTAlVTMSEwHwYDVQQKExhHZW5l +cmFsIEVsZWN0cmljIENvbXBhbnkxIDAeBgNVBAMTF0dFIEV4dGVybmFsIFJvb3Qg +Q0EgMi4xMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzCzT4wNRZtr2 +XTzoTMjppjulZfG35/nOt44q2zg47sxwgZ8o4qjcrwzIhsntoFrRQssjXSF5qXdC +zsm1G7f04qEBimuOH/X+CidWX+sudCS8VyRjXi9cyvUW4/mYKCLXv5M6HhEoIHCD +Xdo6yUr5mSrf18qRR3yUFz0HYXopa2Ls3Q6lBvEUO2Xw04vqVvmg1h7S5jYuZovC +oIbd2+4QGdoSZPgtSNpCxSR+NwtPpzYZpmqiUuDGfVpO3HU42APB0c60D91cJho6 +tZpXYHDsR/RxYGm02K/iMGefD5F4YMrtoKoHbskty6+u5FUOrUgGATJJGtxleg5X +KotQYu8P1wIDAQABo3UwczASBgNVHRMBAf8ECDAGAQH/AgECMA4GA1UdDwEB/wQE +AwIBBjAuBgNVHREEJzAlpCMwITEfMB0GA1UEAxMWR0UtUm9vdC1DT00tUlNBLTIw +NDgtMTAdBgNVHQ4EFgQU3N2mUCJBCLYgtpZyxBeBMJwNZuowDQYJKoZIhvcNAQEL +BQADggEBACF4Zsf2Nm0FpVNeADUH+sl8mFgwL7dfL7+6n7hOgH1ZXcv6pDkoNtVE +0J/ZPdHJW6ntedKEZuizG5BCclUH3IyYK4/4GxNpFXugmWnKGy2feYwVae7Puyd7 +/iKOFEGCYx4C6E2kq3aFjJqiq1vbgSS/B0agt1D3rH3i/+dXVxx8ZjhyZMuN+cgS +pZL4gnhnSXFAGissxJhKsNkYgvKdOETRNn5lEgfgVyP2iOVqEguHk2Gu0gHSouLu +5ad/qyN+Zgbjx8vEWlywmhXb78Gaf/AwSGAwQPtmQ0310a4DulGxo/kcuS78vFH1 +mwJmHm9AIFoqBi8XpuhGmQ0nvymurEk= +-----END CERTIFICATE----- diff --git a/rack-box/http/user-data b/rack-box/http/user-data index 7a224e99..234b8fbf 100644 --- a/rack-box/http/user-data +++ b/rack-box/http/user-data @@ -2,12 +2,14 @@ autoinstall: version: 1 early-commands: - # Block inbound SSH to stop Packer trying to connect during initial install + # Block inbound SSH during initial install to prevent Packer timeout - systemctl stop ssh + # Kludge from + - sleep 60 identity: username: ubuntu hostname: rack-box - password: '$6$wdAcoXrU039hKYPd$508Qvbe7ObUnxoj15DRCkzC3qO7edjH0VV7BPNRDYK4QR8ofJaEEF2heacn0QgD.f8pO8SNp83XNdWG6tocBM1' + password: "$6$wdAcoXrU039hKYPd$508Qvbe7ObUnxoj15DRCkzC3qO7edjH0VV7BPNRDYK4QR8ofJaEEF2heacn0QgD.f8pO8SNp83XNdWG6tocBM1" storage: layout: name: direct @@ -18,13 +20,17 @@ autoinstall: ssh: install-server: true packages: + # If you change packages here, change them in rack-box/scripts/install.sh too - default-jre - linux-cloud-tools-virtual - nginx-light - python3 - python3-pip - strace + - sudo - swi-prolog - unzip + - vim late-commands: - echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/ubuntu + - echo 'rackui ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/rackui diff --git a/rack-box/rack-box-docker.json b/rack-box/rack-box-docker.json index 3c248e04..0d668f01 100644 --- a/rack-box/rack-box-docker.json +++ b/rack-box/rack-box-docker.json @@ -11,12 +11,13 @@ "builders": [ { "type": "docker", - "image": "ubuntu:20.04", - "pull": false, - "commit": true, + "changes": [ "ENTRYPOINT [ \"/usr/bin/python3\", \"/usr/bin/systemctl\" ]" - ] + ], + "commit": true, + "image": "ubuntu:20.04", + "pull": false } ], diff --git a/rack-box/rack-box-hyperv.json b/rack-box/rack-box-hyperv.json index 525cf83f..bca8d82d 100644 --- a/rack-box/rack-box-hyperv.json +++ b/rack-box/rack-box-hyperv.json @@ -1,10 +1,11 @@ { "variables": { + "comment": "Note we used Hyper-V only for 1 week and this template may no longer work", "cpus": "4", "headless": "false", "http_proxy": "{{env `http_proxy`}}", "https_proxy": "{{env `https_proxy`}}", - "memory": "4096", + "memory": "20480", "no_proxy": "{{env `no_proxy`}}", "version": "dev", "vm_name": "rack-box-{{user `version`}}" @@ -13,26 +14,7 @@ "builders": [ { "type": "hyperv-iso", - "iso_checksum": "sha256:28ccdb56450e643bad03bb7bcf7507ce3d8d90e8bf09e38f6bd9ac298a98eaad", - "iso_url": "http://releases.ubuntu.com/20.04/ubuntu-20.04.4-live-server-amd64.iso", - "disk_block_size": 1, - "memory": "{{user `memory`}}", - "vm_name": "{{user `vm_name`}}", - "cpus": "{{user `cpus`}}", - "enable_dynamic_memory": true, - - "http_directory": "http", - - "headless": "{{user `headless`}}", - "shutdown_command": "sudo shutdown -P now", - - "communicator": "ssh", - "ssh_username": "ubuntu", - "ssh_password": "ubuntu", - "ssh_handshake_attempts": "15", - "ssh_timeout": "15m", - "boot_wait": "2s", "boot_command": [ "", "", @@ -45,7 +27,21 @@ "", "autoinstall ds=nocloud-net;s=http://{{.HTTPIP}}:{{.HTTPPort}}/", "" - ] + ], + "boot_wait": "2s", + "communicator": "ssh", + "cpus": "{{user `cpus`}}", + "disk_block_size": 1, + "enable_dynamic_memory": true, + "headless": "{{user `headless`}}", + "http_directory": "http", + "iso_checksum": "sha256:5035be37a7e9abbdc09f0d257f3e33416c1a0fb322ba860d42d74aa75c3468d4", + "iso_url": "https://releases.ubuntu.com/focal/ubuntu-20.04.5-live-server-amd64.iso", + "memory": "{{user `memory`}}", + "shutdown_command": "sudo shutdown -P now", + "ssh_password": "ubuntu", + "ssh_username": "ubuntu", + "vm_name": "{{user `vm_name`}}" } ], diff --git a/rack-box/rack-box-virtualbox.json b/rack-box/rack-box-virtualbox.json index 289e9608..f8bbd1ed 100644 --- a/rack-box/rack-box-virtualbox.json +++ b/rack-box/rack-box-virtualbox.json @@ -4,7 +4,7 @@ "headless": "false", "http_proxy": "{{env `http_proxy`}}", "https_proxy": "{{env `https_proxy`}}", - "memory": "4096", + "memory": "20480", "no_proxy": "{{env `no_proxy`}}", "version": "dev", "vm_name": "rack-box-{{user `version`}}" @@ -12,45 +12,45 @@ "builders": [ { - "type": "virtualbox-iso", - "iso_checksum": "sha256:28ccdb56450e643bad03bb7bcf7507ce3d8d90e8bf09e38f6bd9ac298a98eaad", - "iso_url": "http://releases.ubuntu.com/20.04/ubuntu-20.04.4-live-server-amd64.iso", + "type": "virtualbox-ovf", + "boot_wait": "30s", + "communicator": "ssh", "guest_additions_mode": "disable", - "guest_os_type": "Ubuntu_64", - "vm_name": "{{user `vm_name`}}", - "cpus": "{{user `cpus`}}", - "memory": "{{user `memory`}}", - "vboxmanage": [ - ["modifyvm", "{{.Name}}", "--vram", "20"] - ], - - "http_directory": "http", - "headless": "{{user `headless`}}", + "http_directory": "http", "shutdown_command": "sudo shutdown -P now", - - "communicator": "ssh", - "ssh_username": "ubuntu", - "ssh_password": "ubuntu", - "ssh_handshake_attempts": "15", - "ssh_timeout": "30m", - - "boot_keygroup_interval": "2s", - "boot_wait": "2s", - "boot_command": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "autoinstall ds=nocloud-net;s=http://{{.HTTPIP}}:{{.HTTPPort}}/", - "" - ] + "source_path": "focal64/box.ovf", + "ssh_private_key_file": "vagrant", + "ssh_username": "vagrant", + "vboxmanage": [ + ["modifyvm", "{{.Name}}", "--audio", "none"], + ["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"], + ["modifyvm", "{{.Name}}", "--graphicscontroller", "vmsvga"], + ["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"], + ["modifyvm", "{{.Name}}", "--natpf1", "ssh,tcp,,2222,,22"], + ["modifyvm", "{{.Name}}", "--natpf1", "http,tcp,,8080,,80"], + ["modifyvm", "{{.Name}}", "--natpf1", "sparqlDb,tcp,,3030,,3030"], + ["modifyvm", "{{.Name}}", "--natpf1", "rackUi,tcp,,8050,,8050"], + ["modifyvm", "{{.Name}}", "--natpf1", "sparqlQueryService,tcp,,12050,,12050"], + ["modifyvm", "{{.Name}}", "--natpf1", "sparqlGraphStatusService,tcp,,12051,,12051"], + ["modifyvm", "{{.Name}}", "--natpf1", "sparqlGraphResultsService,tcp,,12052,,12052"], + ["modifyvm", "{{.Name}}", "--natpf1", "sparqlExtDispatchService,tcp,,12053,,12053"], + ["modifyvm", "{{.Name}}", "--natpf1", "edcQueryGenerationService,tcp,,12054,,12054"], + ["modifyvm", "{{.Name}}", "--natpf1", "nodeGroupStoreService,tcp,,12056,,12056"], + ["modifyvm", "{{.Name}}", "--natpf1", "ontologyInfoService,tcp,,12057,,12057"], + ["modifyvm", "{{.Name}}", "--natpf1", "nodeGroupExecutionService,tcp,,12058,,12058"], + ["modifyvm", "{{.Name}}", "--natpf1", "nodeGroupService,tcp,,12059,,12059"], + ["modifyvm", "{{.Name}}", "--natpf1", "utilityService,tcp,,12060,,12060"], + ["modifyvm", "{{.Name}}", "--natpf1", "athenaService,tcp,,12062,,12062"], + ["modifyvm", "{{.Name}}", "--natpf1", "fdcSampleService,tcp,,12066,,12066"], + ["modifyvm", "{{.Name}}", "--natpf1", "fdcCacheService,tcp,,12068,,12068"], + ["modifyvm", "{{.Name}}", "--natpf1", "fileStagingService,tcp,,12069,,12069"], + ["modifyvm", "{{.Name}}", "--natpf1", "sparqlGraphIngestionService,tcp,,12091,,12091"], + ["modifyvm", "{{.Name}}", "--vram", "128"], + ["modifyvm", "{{.Name}}", "--vrde", "off"] + ], + "vm_name": "{{user `vm_name`}}" } ], diff --git a/rack-box/scripts/install.sh b/rack-box/scripts/install.sh index 15fcab7a..007d9673 100644 --- a/rack-box/scripts/install.sh +++ b/rack-box/scripts/install.sh @@ -6,33 +6,44 @@ set -eo pipefail export USER=${1:-ubuntu} cd /tmp/files +# Install necessary packages non-interactively + +export DEBIAN_FRONTEND=noninteractive +export DEBCONF_NONINTERACTIVE_SEEN=true +apt-get update -yqq +apt-get install -yqq ca-certificates software-properties-common +cp GE_External_Root_CA_2_1.crt /usr/local/share/ca-certificates +update-ca-certificates +add-apt-repository -yu ppa:swi-prolog/stable +apt-get update -yqq + +# If you change packages here, change them in rack-box/http/user-data too + +apt-get install -yqq \ + curl \ + default-jre \ + gettext-base \ + nano \ + nginx-light \ + python3 \ + python3-pip \ + strace \ + sudo \ + swi-prolog \ + unzip \ + vim + +# Ensure we can log into the vm like we used to + +if getent passwd vagrant >/dev/null && [ -f "/etc/ssh/sshd_config" ]; then + sed -i -e "s/.*PasswordAuthentication.*/PasswordAuthentication yes/g" /etc/ssh/sshd_config + echo "ubuntu:ubuntu" | chpasswd +fi + # Execute this part of the script only if we're building a Docker image if [ "${PACKER_BUILDER_TYPE}" == "docker" ]; then - # Install necessary packages non-interactively - - export DEBIAN_FRONTEND=noninteractive - export DEBCONF_NONINTERACTIVE_SEEN=true - apt-get update -yqq - apt-get install -yqq software-properties-common - add-apt-repository -yu ppa:swi-prolog/stable - - # If you change this, change packages in rack-box/http/user-data too - # Note VM image already has curl, gettext-base, nano, etc. - - apt-get install -yqq \ - curl \ - default-jre \ - gettext-base \ - nano \ - nginx-light \ - python3 \ - python3-pip \ - strace \ - swi-prolog \ - unzip - # Install docker-systemctl-replaement chmod 755 systemctl3.py @@ -51,12 +62,17 @@ mkdir -p "/home/${USER}" tar xfzC fuseki.tar.gz /opt rm fuseki.tar.gz mv /opt/apache-jena-fuseki-* /opt/fuseki +tar xfzC jena.tar.gz /opt +rm jena.tar.gz +mv /opt/apache-jena-* /opt/jena tar xfzC rack.tar.gz "/home/${USER}" rm rack.tar.gz tar xfzC rack-assist.tar.gz "/home/${USER}" rm rack-assist.tar.gz tar xfzC rack-cli.tar.gz "/home/${USER}" rm rack-cli.tar.gz +tar xfzC rack-ui.tar.gz "/home/${USER}" +rm rack-ui.tar.gz tar xfzC semtk.tar.gz "/home/${USER}" rm semtk.tar.gz mv ENV_OVERRIDE "/home/${USER}/semtk-opensource" @@ -70,9 +86,23 @@ cp /opt/fuseki/fuseki.service /etc/systemd/system/fuseki.service systemctl enable fuseki systemctl start fuseki +# Set up and start RACK UI service + +cd /home/"${USER}"/RACK/rack-ui +python3 -m pip install -r ./requirements.txt +adduser --system --group --no-create-home --disabled-password rackui +usermod -aG sudo rackui +echo "rackui ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/rackui +mkdir /etc/rackui +chown rackui.rackui /etc/rackui +envsubst < rackui.service > /etc/systemd/system/rackui.service +systemctl enable rackui + # Initialize SemTK environment variables cd "/home/${USER}/semtk-opensource" +# This lets rackui see and run scripts that live in /home/ubuntu/RACK/cli +chmod 755 "/home/${USER}" chmod 755 ./*.sh export SERVER_ADDRESS=localhost export SERVICE_HOST=localhost @@ -115,6 +145,11 @@ while ! curl http://localhost:3030/$/ping &>/dev/null; do sleep 10 done +# Configure Fuseki to time out queries after 5 minutes + +sed -e 's/^ # ja:co/ja:co/' -i /etc/fuseki/config.ttl +sed -e 's/"30000"/"300000"/' -i /etc/fuseki/config.ttl + # Create the RACK dataset curl -Ss -d 'dbName=RACK' -d 'dbType=tdb' 'http://localhost:3030/$/datasets' diff --git a/rack-box/vagrant b/rack-box/vagrant new file mode 100644 index 00000000..7d6a0839 --- /dev/null +++ b/rack-box/vagrant @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEogIBAAKCAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzI +w+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoP +kcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2 +hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NO +Td0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcW +yLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQIBIwKCAQEA4iqWPJXtzZA68mKd +ELs4jJsdyky+ewdZeNds5tjcnHU5zUYE25K+ffJED9qUWICcLZDc81TGWjHyAqD1 +Bw7XpgUwFgeUJwUlzQurAv+/ySnxiwuaGJfhFM1CaQHzfXphgVml+fZUvnJUTvzf +TK2Lg6EdbUE9TarUlBf/xPfuEhMSlIE5keb/Zz3/LUlRg8yDqz5w+QWVJ4utnKnK +iqwZN0mwpwU7YSyJhlT4YV1F3n4YjLswM5wJs2oqm0jssQu/BT0tyEXNDYBLEF4A +sClaWuSJ2kjq7KhrrYXzagqhnSei9ODYFShJu8UWVec3Ihb5ZXlzO6vdNQ1J9Xsf +4m+2ywKBgQD6qFxx/Rv9CNN96l/4rb14HKirC2o/orApiHmHDsURs5rUKDx0f9iP +cXN7S1uePXuJRK/5hsubaOCx3Owd2u9gD6Oq0CsMkE4CUSiJcYrMANtx54cGH7Rk +EjFZxK8xAv1ldELEyxrFqkbE4BKd8QOt414qjvTGyAK+OLD3M2QdCQKBgQDtx8pN +CAxR7yhHbIWT1AH66+XWN8bXq7l3RO/ukeaci98JfkbkxURZhtxV/HHuvUhnPLdX +3TwygPBYZFNo4pzVEhzWoTtnEtrFueKxyc3+LjZpuo+mBlQ6ORtfgkr9gBVphXZG +YEzkCD3lVdl8L4cw9BVpKrJCs1c5taGjDgdInQKBgHm/fVvv96bJxc9x1tffXAcj +3OVdUN0UgXNCSaf/3A/phbeBQe9xS+3mpc4r6qvx+iy69mNBeNZ0xOitIjpjBo2+ +dBEjSBwLk5q5tJqHmy/jKMJL4n9ROlx93XS+njxgibTvU6Fp9w+NOFD/HvxB3Tcz +6+jJF85D5BNAG3DBMKBjAoGBAOAxZvgsKN+JuENXsST7F89Tck2iTcQIT8g5rwWC +P9Vt74yboe2kDT531w8+egz7nAmRBKNM751U/95P9t88EDacDI/Z2OwnuFQHCPDF +llYOUI+SpLJ6/vURRbHSnnn8a/XG+nzedGH5JGqEJNQsz+xT2axM0/W/CRknmGaJ +kda/AoGANWrLCz708y7VYgAtW2Uf1DPOIYMdvo6fxIB5i9ZfISgcJ/bbCUkFrhoH ++vq/5CIWxCPp0f85R4qxxQ5ihxJ0YDQT9Jpx4TMss4PSavPaBH3RXow5Ohe+bYoQ +NE5OgEXk2wVfZczCZpigBKbKZHNYcelXtTt/nP3rsCuGcM4h53s= +-----END RSA PRIVATE KEY----- diff --git a/rack-ui/app.py b/rack-ui/app.py new file mode 100644 index 00000000..23b955cc --- /dev/null +++ b/rack-ui/app.py @@ -0,0 +1,93 @@ +""" Main application page """ + +import diskcache +import dash +from dash import Dash, DiskcacheManager, html, dcc, callback, Input, Output +import dash_bootstrap_components as dbc +from pages import home, load, verify, utility +from pages.helper import * +from flask import Flask +import json +import platform + +# diskcache for non-production apps when developing locally (fine for our Docker application). Needed for @dash.callback with background=True +cache = diskcache.Cache(f"{get_temp_dir()}/cache") +background_callback_manager = DiskcacheManager(cache) + +server = Flask(__name__) +app = Dash(server=server, external_stylesheets=[dbc.themes.BOOTSTRAP], background_callback_manager=background_callback_manager) +app.title = 'RACK UI' + +# menu +sidebar = html.Div( + [ + html.Table([ + html.Tr([ + html.Td(html.Img(src=app.get_asset_url('RACK_cartoon.jpg'), height="90px")), + html.Td([dcc.Markdown("## RACK\n_System manager_")]), + ]), + html.Tr( + html.Td([ + dbc.Nav([ + dbc.NavLink("Home", href="/", active="exact"), + dbc.NavLink("Load", href="/load", active="exact"), + dbc.NavLink("Verify", href="/verify", active="exact"), + dbc.NavLink("Utility", href="/utility", active="exact"), + ], + vertical=True, pills=True, + ) + ], colSpan=2) + ) + ]), + ], + className="sidebar" +) + +# layout +app.layout = html.Div([ + dcc.Location(id='url', refresh=False), + sidebar, + html.Div(id='page-content'), # display page content + dcc.Store("last-loaded-graphs"), # stores the last-loaded graphs (used by multiple pages) +], + style = { "margin-left": "18rem", "margin-right": "2rem", "padding": "2rem 1rem" } +) + +# validate using this layout (includes components from pages) +app.validation_layout = html.Div([app.layout, load.layout, verify.layout, utility.layout]) + + +@callback(Output('page-content', 'children'), + Input('url', 'pathname')) +def display_page(pathname): + if pathname == '/': + return home.layout() + elif pathname == '/load': + return load.layout + elif pathname == '/verify': + return verify.layout + elif pathname == '/utility': + return utility.layout + else: + return '404' + + +# endpoint to run triplestore optimization script +# (runs as part of the Dash app, alongside but separate from the UI) +@server.route('/optimize') +def optimize(): + try: + if platform.system() == "Windows": + raise Exception("RACK UI triplestore optimization endpoint is not supported on Windows") + command = "sudo ../cli/optimize.sh" + completed_process = run_subprocess(command, get_temp_dir_unique("optimize")) + if completed_process.returncode == 0: + return json.dumps({'success': True}) + else: + raise Exception(f"Optimize script returned exit code {completed_process.returncode}") + except Exception as e: + return json.dumps({'success': False, 'message': get_error_message(e)}) + + +if __name__ == '__main__': + app.run_server(host="0.0.0.0", debug=False) \ No newline at end of file diff --git a/rack-ui/assets/RACK_cartoon.jpg b/rack-ui/assets/RACK_cartoon.jpg new file mode 100644 index 00000000..4cc01501 Binary files /dev/null and b/rack-ui/assets/RACK_cartoon.jpg differ diff --git a/rack-ui/assets/style.css b/rack-ui/assets/style.css new file mode 100644 index 00000000..eecdda2e --- /dev/null +++ b/rack-ui/assets/style.css @@ -0,0 +1,73 @@ + +/* style for sidebar */ +div.sidebar { + position: fixed; + top: 0; + left: 0; + bottom: 0; + width: 16rem; + padding: 2rem 1rem; +} + +/* style for button */ +button { + font-size: 16px; + width:200px; + display: inline-block; + margin-top: 10px; + margin-bottom: 10px; + margin-right: 5px; + height:25px; + border-radius: 5px; + padding:0px; + background-color: powderblue; + border: none; +} + +/* style for scrolling status area */ +div.scrollarea { + margin-top: 50px; + white-space: pre-wrap; + border-style: none; + height: 400px; + width: 1200px; overflow-y: auto; + display: flex; + flex-direction: column-reverse; +} + +/* put a space between a checkbox and the text next to it */ +input[type=checkbox] { + margin-right: 10px; +} + + +/* dropdown menus */ +.ddm { + background-color: powderblue; + color: black; + border: none; + padding: 0px; +} +/* avoid color change when hovering */ +.ddm:hover { + background-color:powderblue; + color: black; +} + + +/* load options accordion */ +.accordion-button { + padding: 0px; +} +.accordion-button:not(.collapsed) { + background-color: white; + color: black; + box-shadow: none; +} +.accordion-button:is(.collapsed) { + box-shadow: none; +} +.accordion-body { + padding-top: 0px; + padding-bottom: 0px; +} diff --git a/rack-ui/pages/helper.py b/rack-ui/pages/helper.py new file mode 100644 index 00000000..21384c30 --- /dev/null +++ b/rack-ui/pages/helper.py @@ -0,0 +1,62 @@ + +""" Helper functions """ + +import tempfile +import traceback +import dash +import re +import os +import uuid +import semtk3 +import rack +import subprocess + +# configuration +BASE_URL = "http://localhost" +SPARQLGRAPH_BASE_URL = "http://localhost:8080" +TRIPLE_STORE_BASE_URL = "http://localhost:3030" +TRIPLE_STORE = TRIPLE_STORE_BASE_URL + "/RACK" +TRIPLE_STORE_TYPE = "fuseki" + +def get_temp_dir() -> str: + """ Get a temp dir """ + return tempfile.gettempdir() + +def get_temp_dir_unique(prefix) -> str: + """ Get a unique subdirectory within the temp dir, e.g. /tmp/ingest_9d40551e-f31f-4530-8c90-ca3e0acc4257""" + return os.path.join(get_temp_dir(), f"{prefix}_{uuid.uuid4()}") + +def get_error_trace(e) -> str: + """ Get error trace string """ + trace = traceback.format_exception(None, e, e.__traceback__) + return trace[-1] + +def get_error_message(e) -> str: + """ Get error message """ + return str(e) + +def get_trigger(): + """ + Get the input that triggered a callback + Not for use with @dash.callback (in local Windows environment, gives dash.exceptions.MissingCallbackContextException) + """ + return dash.callback_context.triggered[0]['prop_id'] + +def clean_for_display(s): + """ Cleans process output to be displayed to user """ + ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])') # remove ANSI escape sequences (e.g. ESC[32m, ESC[0m) from command output + return ansi_escape.sub('', s) + +def get_graph_info(): + """ Gets list of graphs in the triple store, with their triple counts """ + conn_str = rack.sparql_connection(BASE_URL, None, None, [], TRIPLE_STORE, TRIPLE_STORE_TYPE) + graph_info_table = semtk3.get_graph_info(conn_str, True, False) # True to exclude internal SemTK graphs, False to get counts too + return graph_info_table + +def run_subprocess(command, status_filepath=None): + """ Launch a process using a given command. Pipe output to file if provided """ + if status_filepath is not None: + command = f"{command} > {status_filepath} 2>&1" + completed_process = subprocess.run(command, shell=True, capture_output=True) + print(completed_process) # useful to see exit code + return completed_process \ No newline at end of file diff --git a/rack-ui/pages/home.py b/rack-ui/pages/home.py new file mode 100644 index 00000000..7735d553 --- /dev/null +++ b/rack-ui/pages/home.py @@ -0,0 +1,25 @@ +""" Content for the home page """ + +from dash import html, dcc +import dash_bootstrap_components as dbc +from .helper import * +import pandas as pd + +# name of default graph +DEFAULT_GRAPH_NAME = "uri://DefaultGraph" + +def layout(): + """ Provide the layout in a function, so that it is refreshed every time the page is displayed """ + + # get table with graph names and triple counts + df = pd.DataFrame(get_graph_info().get_pandas_data()) + df.rename(columns={'graph': 'Graph', 'triples': '# Triples'}, inplace=True) # rename columns for display + df = df.replace(DEFAULT_GRAPH_NAME,'Optimized graph') + + layout = dbc.Spinner(html.Div(children=[ + html.H2('Welcome to RACK.'), + dcc.Markdown('Current graphs in RACK:', style={"margin-top": "50px"}), + dbc.Table.from_dataframe(df, color="primary", bordered=True, size="sm", style={"width": "auto"}), + ])) + + return layout diff --git a/rack-ui/pages/load.py b/rack-ui/pages/load.py new file mode 100644 index 00000000..cde90b6d --- /dev/null +++ b/rack-ui/pages/load.py @@ -0,0 +1,273 @@ +""" Content for the "load data" page """ + +import time +import io +import base64 +import glob +from contextlib import redirect_stdout, redirect_stderr +from urllib.parse import urlparse +from pathlib import Path +from zipfile import ZipFile +from dash import html, dcc, callback, Input, Output, State +import dash_bootstrap_components as dbc +import rack +from rack import Manifest +import semtk3 +from .helper import * + +# name of default manifest file within ingestion package +MANIFEST_FILE_NAME = "manifest.yaml" + +# display strings +CLEAR_BEFORE_LOADING_STR = "Clear before loading" + +# div showing load details and buttons to load data or open SPARQLgraph +load_div = dbc.Spinner(html.Div( + [ + # package metadata (from manifest) + dcc.Markdown("", id="load-div-message"), + + # load options + dbc.Accordion([ + dbc.AccordionItem( + dcc.Checklist([CLEAR_BEFORE_LOADING_STR], [CLEAR_BEFORE_LOADING_STR], id="load-options-checklist"), + title="Options")], + start_collapsed=True, flush=True, style={"width": "250px"}), + + # load/view buttons + dbc.Row([ + dbc.Col([html.Button("Load data", id="load-button", n_clicks=0)], width="auto"), # load button + dbc.Tooltip("Load the above data into RACK", target="load-button"), + dbc.Col(dbc.DropdownMenu([ + dbc.DropdownMenuItem("Target graphs", href="", target="_blank", id="sparqlgraph-button"), + dbc.DropdownMenuItem("Optimized graph", href="", target="_blank", id="sparqlgraph-default-button") + ], id="view-dropdown", label="View data", toggle_class_name="ddm"), width="auto"), + dbc.Tooltip("After loading, view data in SPARQLgraph", target="view-dropdown") + ]) + + ], + id="load-div", + hidden=True, + style={"margin-top": "50px"}, +)) + +# dialog indicating unzip error (e.g. no manifest) +unzip_error_dialog = dbc.Modal( + [ + dbc.ModalBody("UNZIP ERROR PLACEHOLDER", id="unzip-error-dialog-body"), # message + dbc.ModalFooter(html.Button("Close", id="unzip-error-dialog-button", n_clicks=0)), # close button + ], + id="unzip-error-dialog", + is_open=False, + backdrop=False, +) + +# dialog confirming load done +done_dialog = dbc.Modal( + [ + dbc.ModalBody("MESSAGE PLACEHOLDER", id="done-dialog-body"), # message + dbc.ModalFooter(html.Button("Close", id="done-dialog-button", n_clicks=0)), # close button + ], + id="done-dialog", + is_open=False, + backdrop=False, +) + +# page elements +layout = html.Div([ + html.H2("Load data"), + dcc.Markdown("_Load data into RACK_"), + dbc.Row([ + dbc.Col(html.Button(id="turnstile-button", children="Select Turnstile data"), width="auto"), # button to load turnstile + dbc.Col(dcc.Upload(html.Button(id="select-button", children="Select ingestion package"), id='select-button-upload', accept=".zip", multiple=False), width="auto") # button to show upload dialog to pick ingestion package + ]), + dbc.Tooltip("Select the Turnstile sample data provided with RACK", target="turnstile-button"), + dbc.Tooltip("Select an ingestion package (in .zip format) from your local machine", target="select-button"), + load_div, + html.Div(id="status-div", className="scrollarea"), # displays ingestion status + unzip_error_dialog, + done_dialog, + dcc.Store("status-filepath"), # stores the filename of the temp file containing status + dcc.Store("manifest-filepath"), # stores the path to the manifest file + dcc.Interval(id='status-interval', interval=0.5*1000, n_intervals=0, disabled=True), # triggers updating the status display + ]) + +####### callbacks ####### + +@dash.callback( + output=[ + Output("load-div-message", "children"), # package information to display to the user before confirming load + Output("sparqlgraph-button", "href"), # set the SG button link + Output("sparqlgraph-default-button", "href"), # set the SG button link (default graph) + Output("manifest-filepath", "data"), + Output("unzip-error-dialog-body", "children"), + Output("status-filepath", "data"), # store a status file path + Output("select-button-upload", "contents")], # set to None after extracting, else callback ignores re-uploaded file + inputs=[ + Input("select-button-upload", "contents"), # triggered by user selecting an upload file + Input("turnstile-button", "n_clicks")], # triggered by turnstile button + background=True, # background callback + running=[ + (Output("select-button", "disabled"), True, False), # disable the button while running + (Output("turnstile-button", "disabled"), True, False), # disable the button while running + (Output("load-button", "disabled"), True, False), # disable the button while running + ], + prevent_initial_call=True +) +def run_unzip(zip_file_contents, turnstile_clicks): + """ + Extract the selected zip file + """ + try: + if zip_file_contents != None: + tmp_dir = get_temp_dir_unique("ingest") # temp directory to store the unzipped package + zip_str = io.BytesIO(base64.b64decode(zip_file_contents.split(',')[1])) + zip_obj = ZipFile(zip_str, 'r') + zip_obj.extractall(path=tmp_dir) # unzip the package + manifest_paths = glob.glob(f"{tmp_dir}/**/{MANIFEST_FILE_NAME}", recursive=True) + if len(manifest_paths) == 0: + raise Exception(f"Cannot load ingestion package: does not contain manifest file {MANIFEST_FILE_NAME}") + if len(manifest_paths) > 1: + raise Exception(f"Cannot load ingestion package: contains multiple default manifest files: {manifests}") + manifest_path = manifest_paths[0] + else: + manifest_path = "../Turnstile-Example/Turnstile-IngestionPackage/manifest.yaml" + manifest = get_manifest(manifest_path) + + # generate SPARQLgraph link + sg_link = semtk3.get_sparqlgraph_url(SPARQLGRAPH_BASE_URL, conn_json_str=manifest.getConnection()) + sg_link_default = semtk3.get_sparqlgraph_url(SPARQLGRAPH_BASE_URL, conn_json_str=manifest.getDefaultGraphConnection()) + + # gather displayable information about the package + package_description = "" + if manifest.getDescription() != None and manifest.getDescription().strip() != '': + package_description = f"({manifest.getDescription()})" + additional_actions = [] + if manifest.getCopyToDefaultGraph(): additional_actions.append("copy to optimized graph") + if manifest.getPerformEntityResolution(): additional_actions.append("resolve entities") + if manifest.getPerformOptimization(): additional_actions.append("optimize triple store") + package_info = f"Data: `{manifest.getName()} {package_description}` \n" + \ + f"Target model graphs: `{', '.join(manifest.getModelgraphsFootprint())}` \n" + \ + f"Target data graphs: `{', '.join(manifest.getDatagraphsFootprint())}` \n" + \ + f"Additional actions: `{', '.join(additional_actions) if len(additional_actions) > 0 else 'None'}`" + + # generate a file in which to capture the ingestion status + status_filepath = get_temp_dir_unique("output") + + except Exception as e: + return "", None, None, None, get_error_trace(e), None, None + return package_info, sg_link, sg_link_default, manifest_path, None, status_filepath, None + + +@dash.callback( + output=[Output("done-dialog-body", "children"), + Output("last-loaded-graphs", "data")], # remember graphs loaded (used in the Verify tab) NOTE this Store is from app.py layout - using it here disables prevent_initial_call=True + inputs=Input("load-button", "n_clicks"), # triggered by user clicking load button + state=[ + State("status-filepath", "data"), + State("manifest-filepath", "data"), + State("load-options-checklist", "value")], # user-selected load options from the checklist + background=True, # background callback + running=[ + (Output("select-button", "disabled"), True, False), # disable button while running + (Output("turnstile-button", "disabled"), True, False), # disable button while running + (Output("load-button", "disabled"), True, False), # disable button while running + (Output("status-interval", "disabled"), False, True) # enable the interval component while running + ], + prevent_initial_call=True # NOTE won't work because last-loaded-graphs is in the layout before load-button (see https://dash.plotly.com/advanced-callbacks#prevent-callback-execution-upon-initial-component-render) +) +def run_ingest(load_button_clicks, status_filepath, manifest_filepath, load_options): + """ + Ingest the selected zip file + """ + # this callback gets triggered when the pages is loaded - if so don't proceed + if load_button_clicks == 0: + raise dash.exceptions.PreventUpdate + + clear = (CLEAR_BEFORE_LOADING_STR in load_options) # clear the graph before loading (or not), depending on UI checkbox selection + + try: + # avoid a ConnectionError if SemTK services are not fully up yet + if semtk3.check_services() == False: + raise Exception("Cannot reach SemTK Services (wait for startup to complete, or check for failures)") + + f = open(status_filepath, "a") + with redirect_stdout(f), redirect_stderr(f): # send command output to temporary file + rack.logger.setLevel("ERROR") + rack.ingest_manifest_driver(Path(manifest_filepath), BASE_URL, TRIPLE_STORE, TRIPLE_STORE_TYPE, clear, False) # process the manifest + + # store list of loaded graphs + manifest = get_manifest(manifest_filepath) + last_loaded_graphs = manifest.getModelgraphsFootprint() + manifest.getDatagraphsFootprint() + + time.sleep(1) + except Exception as e: + return get_error_trace(e), [] # show done dialog with error + return [dcc.Markdown("Data was loaded successfully.")], last_loaded_graphs + + +@callback(Output("status-div", "children"), + Input("status-interval", "n_intervals"), # triggered at regular interval + Input("status-filepath", "data"), # or triggered by resetting the file path (to clear out the status when selecting a new file) + prevent_initial_call=True) +def update_status(n, status_filepath): + """ + Update the displayed status + """ + status = "" + try: + with open(status_filepath, "r") as file: + status = file.read() + return clean_for_display(status) + except: + return "" + + +####### simple callbacks to show/hide components ####### + +@callback(Output("load-div", "hidden"), + Input("load-div-message", "children"), + Input("load-button", "n_clicks"), + prevent_initial_call=True + ) +def manage_load_div(load_message, load_clicks): + """ Show or hide the load div """ + if len(load_message) > 0: + return False # show the div + else: + return True # hide the div + +@callback(Output("unzip-error-dialog", "is_open"), + Input("unzip-error-dialog-body", "children"), + Input("unzip-error-dialog-button", "n_clicks"), + prevent_initial_call=True + ) +def manage_unzip_error_dialog(message, n_clicks): + """ Show or hide the unzip error dialog """ + if (get_trigger() == "unzip-error-dialog-button.n_clicks"): + return False # button pressed, hide the dialog + elif message == None: + return False # no message, don't show the dialog + else: + return True # child added, show the dialog + +@callback(Output("done-dialog", "is_open"), + Input("done-dialog-body", "children"), + Input("done-dialog-button", "n_clicks"), + prevent_initial_call=True + ) +def manage_done_dialog(children, n_clicks): + """ Show or hide the done dialog """ + if (get_trigger() == "done-dialog-button.n_clicks"): + return False # button pressed, hide the dialog + else: + return True # child added, show the dialog + + +####### convenience functions ####### + +def get_manifest(manifest_filepath) -> Manifest: + """ Get manifest contents from file """ + with open(manifest_filepath, mode='r', encoding='utf-8-sig') as manifest_file: + manifest = Manifest.fromYAML(manifest_file) + return manifest \ No newline at end of file diff --git a/rack-ui/pages/utility.py b/rack-ui/pages/utility.py new file mode 100644 index 00000000..e5ac5df2 --- /dev/null +++ b/rack-ui/pages/utility.py @@ -0,0 +1,72 @@ +""" Content for the utility page """ + +import time +import platform +from dash import html, dcc, callback, Input, Output, State +import dash_bootstrap_components as dbc +from .helper import * + + +# dialog confirming triple store restart done +restart_done_dialog = dbc.Spinner(dbc.Modal( + [ + dbc.ModalBody("MESSAGE PLACEHOLDER", id="restart-done-dialog-body"), # message + dbc.ModalFooter([ + html.Button("Close", id="restart-done-button", n_clicks=0) # close button + ]), + ], + id="restart-done-dialog", + is_open=False, + backdrop=False, +)) + +# page elements +layout = html.Div([ + html.H2('RACK Utilities'), + dcc.Markdown("_Utility functions for RACK_"), + html.Button("Restart triple store", id="restart-button", n_clicks=0), + restart_done_dialog +]) + +####### callbacks ###################################### + +@dash.callback( + output=Output("restart-done-dialog-body", "children"), + inputs=Input("restart-button", "n_clicks"), # triggered by clicking restart button + background=True, # background callback + running=[ + (Output("restart-button", "disabled"), True, False), # disable the button while running + ], + prevent_initial_call=True +) +def run_restart(n_clicks): + """ + Restart the triple store + """ + try: + # determine if we can restart fuseki + if run_subprocess("systemctl is-enabled fuseki").returncode != 0: + raise Exception("Triple store restart not supported in this deployment") + + # restart fuseki + completed_process = run_subprocess("sudo systemctl restart fuseki", get_temp_dir_unique("restart-fuseki")) + if completed_process.returncode == 0: + return dcc.Markdown("Restarted the triple store.") + else: + raise Exception("Error restarting the triple store") + except Exception as e: + return get_error_trace(e) # show done dialog with error + +####### simple callbacks to show/hide components ####### + +@callback(Output("restart-done-dialog", "is_open"), + Input("restart-done-dialog-body", "children"), + Input("restart-done-button", "n_clicks"), + prevent_initial_call=True + ) +def manage_restart_done_dialog(children, n_clicks): + """ Show or hide the done dialog after restarting triple store """ + if (get_trigger() == "restart-done-button.n_clicks"): + return False # button pressed, hide the dialog + else: + return True # child added, show the dialog diff --git a/rack-ui/pages/verify.py b/rack-ui/pages/verify.py new file mode 100644 index 00000000..f8b0435e --- /dev/null +++ b/rack-ui/pages/verify.py @@ -0,0 +1,300 @@ +""" Content for the "verify data" page """ + +import time +import platform +from dash import html, dcc, callback, Input, Output, State +import dash_bootstrap_components as dbc +import semtk3 +import json +from .helper import * + +# name of default graph +DEFAULT_GRAPH_NAME = "uri://DefaultGraph" + +# dialog confirming ASSIST verification done +verify_assist_done_dialog = dbc.Modal( + [ + dbc.ModalBody("MESSAGE PLACEHOLDER", id="verify-assist-done-dialog-body"), # message + dbc.ModalFooter([ + html.Button("Download results", id="verify-assist-download-button"), # download results button + html.Button("Close", id="verify-assist-done-button", n_clicks=0) # close button + ]), + dcc.Download(id="download"), + ], + id="verify-assist-done-dialog", + is_open=False, + backdrop=False, +) + +# div showing graphs list +verify_report_options_div = dbc.Spinner(html.Div( + [ + dcc.Markdown("Select graphs to include in report:"), + dcc.Checklist([], [], id="verify-graph-checklist", labelStyle={'display': 'block'}), # choose which graphs to verify + dbc.Row([ + dbc.Col(html.Button("Continue", id="verify-report-continue-button", n_clicks=0), width="auto"), # button to open SPARQLgraph report + dbc.Col(html.Button("Cancel", id="verify-report-cancel-button", n_clicks=0), width="auto") # button to cancel + ]) + ], + id="verify-report-options-div", + hidden=True, + style={"margin-top": "50px"}, +)) + +# dialog indicating an error generating the SPARQLgraph report (e.g. no graphs selected) +verify_report_error_dialog = dbc.Modal( + [ + dbc.ModalBody("MESSAGE PLACEHOLDER", id="verify-report-error-dialog-body"), # message + dbc.ModalFooter([ + html.Button("Close", id="verify-report-error-button", n_clicks=0) # close button + ]), + ], + id="verify-report-error-dialog", + is_open=False, + backdrop=False, +) + +# page elements +layout = html.Div([ + html.H2('Verify Data'), + dcc.Markdown("_Run verification routines on the data loaded in RACK_"), + dbc.Row([ + dbc.Col(html.Button("Verify using ASSIST", id="verify-assist-button", n_clicks=0), width="auto"), # button to verify using ASSIST + dbc.Col(html.Button("Verify using report", id="verify-report-button"), width="auto") # button to verify using SPARQLgraph report + ]), + dbc.Tooltip("Run the ASSIST tool and download an error report", target="verify-assist-button"), + dbc.Tooltip("Open SPARQLgraph and run data verification report on selected graphs", target="verify-report-button"), + verify_report_options_div, + html.Div(id="assist-status-div", className="scrollarea"), # displays status + verify_assist_done_dialog, + verify_report_error_dialog, + dcc.Store("assist-status-filepath"), # stores the filename of the temp file containing status + dcc.Store("sparqlgraph-url"), # stores the URL of the SPARQLgraph report + dcc.Store(id="clientside-dummy-store"), # dummy store because callback needs an Output + dcc.Interval(id='assist-status-interval', interval=0.5*1000, n_intervals=0, disabled=True), # triggers updating the status display +]) + +####### callbacks for ASSIST verification ###################################### + + +@dash.callback( + output=Output("assist-status-filepath", "data"), # store a status file path + inputs=Input("verify-assist-button", "n_clicks"), # triggered by clicking ASSIST button + background=True, # background callback + running=[ + (Output("verify-report-button", "disabled"), True, False), # disable the button while running + (Output("verify-assist-button", "disabled"), True, False), # disable the button while running + ], + prevent_initial_call=True +) +def create_assist_status_filepath(n_clicks): + """ + Generate a file in which to capture the ASSIST status + """ + status_filepath = get_temp_dir_unique("output") + return status_filepath + + +@dash.callback( + output=[Output("verify-assist-done-dialog-body", "children"), + Output("verify-assist-download-button", "hidden")], + inputs=Input("assist-status-filepath", "data"), # triggered by creating ASSIST status filepath + background=True, # background callback + running=[ + (Output("verify-report-button", "disabled"), True, False), # disable the button while running + (Output("verify-assist-button", "disabled"), True, False), # disable the button while running + (Output("assist-status-interval", "disabled"), False, True) # enable the interval component while running + ], + prevent_initial_call=True +) +def run_assist(status_filepath): + """ + Run the ASSIST tool + """ + try: + if platform.system() == "Windows": + raise Exception("Not yet supported on Windows. (PROLOG checking is available through LINUX/Docker.)") + else: + command = f"../assist/bin/check -v -m {TRIPLE_STORE_BASE_URL}/" # ASSIST tool. Runs on all graphs, minus exclusion list of internal SemTK graphs + run_subprocess(command, status_filepath) # TODO returns error code 1 even though seems successful + time.sleep(1) + + return [dcc.Markdown("Completed ASSIST verification.")], False + except Exception as e: + return get_error_trace(e), True # show done dialog with error, hide the download button + + +@callback(Output("assist-status-div", "children"), + Input("assist-status-interval", "n_intervals"), # triggered at regular interval + Input("assist-status-filepath", "data"), # or triggered by resetting the file path (to clear out the status when selecting a new file) + prevent_initial_call=True) +def update_assist_status(n, status_filepath): + """ + Update the displayed status + """ + status = "" + try: + with open(status_filepath, "r") as file: + lines = file.readlines() + status = "...\n\n" + "".join(lines[-1 * min(20, len(lines)):]) # get the last 20 lines (or fewer if there are not 20 in the list) + return clean_for_display(status) + except Exception as e: + return "" + + +@callback( + Output("download", "data"), + Input("verify-assist-download-button", "n_clicks"), # triggered by user clicking download button + State("assist-status-filepath", "data"), # the name of the file to download + prevent_initial_call=True, +) +def download_assist_results(n_clicks, status_filepath): + """ + Download file when user clicks button + """ + # read contents of the result file + with open(status_filepath, 'r') as file: + file_content = file.read() + return dict(content=file_content, filename="rack_verification_results.txt") + + +####### callbacks for SPARQLgraph report verification ###################################### + + +@dash.callback( + output=[ + Output("verify-graph-checklist", "options"), # list of graphs populated in the triple store + Output("verify-graph-checklist", "value")], # list of graphs to pre-select (graphs recently loaded) + inputs=Input("verify-report-button", "n_clicks"), # triggered by user clicking button + state=State("last-loaded-graphs", "data"), # last loaded graphs + background=True, # background callback + running=[ + (Output("verify-report-button", "disabled"), True, False), # disable the run button while running + (Output("verify-assist-button", "disabled"), True, False), # disable the button while running + ], + prevent_initial_call=True +) +def show_report_options(button_clicks, last_loaded_graphs): + """ + Show list of graphs for verification report, with the last loaded graphs pre-selected + """ + # get list of graphs populated in the triple store + graphs_list_values = get_graph_info().get_column(0) # list of graphs, including uri://DefaultGraph + graphs_list_labels = list(map(lambda x: x.replace(DEFAULT_GRAPH_NAME, 'Optimized graph'), graphs_list_values.copy())) # display default graph as "Optimized graph" + graphs_list = [{'label': label, 'value': val} for label, val in zip(graphs_list_labels, graphs_list_values)] + + # these are the graphs last loaded - check the checkboxes for these + if last_loaded_graphs == None: + last_loaded_graphs = [] + + return graphs_list, last_loaded_graphs + + +@dash.callback( + output=[Output("sparqlgraph-url", "data"), # output SPARQLgraph report URL + Output("verify-report-error-dialog-body", "children")], # output error message + inputs=Input("verify-report-continue-button", "n_clicks"), # triggered by clicking continue button + state=State("verify-graph-checklist", "value"), # the currently selected graphs + background=True, # background callback + running=[ + (Output("verify-report-button", "disabled"), True, False), # disable the button while running + (Output("verify-assist-button", "disabled"), True, False), # disable the button while running + ], + prevent_initial_call=True +) +def generate_report_link(sg_button_clicks, graphs_selected): + """ + Generate the SPARQLgraph report link + """ + # error if no graphs were selected + if len(graphs_selected) == 0: + return None, "Please select at least one graph" # return error message and no URL + + # build a connection using selected graphs (no need to differentiate model vs data) + graphs = [] + for graph in graphs_selected: + graphs.append(graph) + conn = semtk3.build_connection_str("Graphs To Verify", TRIPLE_STORE_TYPE, TRIPLE_STORE, graphs, graphs[0], graphs[1:]) # use all graphs for both model and data, to avoid either being empty + + # construct SG report URL + sparqlgraph_verify_url_str = semtk3.get_sparqlgraph_url(SPARQLGRAPH_BASE_URL, conn_json_str=str(conn), report_id="report data verification") + + # return SPARQLgraph report URL + return sparqlgraph_verify_url_str, None + + +# Open a browser tab with SPARQLgraph report (this is a clientside callback written in JavaScript: https://dash.plotly.com/clientside-callbacks) +dash.clientside_callback( + """ + function(url) { + if(url != null){ + window.open(url); + } + return "dummy value" + } + """, + Output("clientside-dummy-store", "data"), # serves no purpose, but an output is required + Input("sparqlgraph-url", "data"), + prevent_initial_call=True +) + + +####### simple callbacks to show/hide components ####### + + +@callback(Output("assist-status-div", "hidden"), + Input("verify-assist-button", "n_clicks"), + Input("verify-report-button", "n_clicks"), + prevent_initial_call=True + ) +def manage_assist_status_div(assist_clicks, report_clicks): + """ Show or hide the ASSIST status div """ + if (get_trigger() in ["verify-assist-button.n_clicks"]): + return False # user clicked ASSIST, show the div + else: + return True # user clicked report, hide the div + + +@callback(Output("verify-report-options-div", "hidden"), + Input("verify-graph-checklist", "options"), + Input("verify-assist-button", "n_clicks"), + Input("verify-report-cancel-button", "n_clicks"), + prevent_initial_call=True + ) +def manage_verify_report_options_div(checklist_options, continue_clicks, cancel_clicks): + """ Show or hide the graph checklist div """ + if (get_trigger() in ["verify-assist-button.n_clicks", "verify-report-cancel-button.n_clicks"]): + return True # continue or cancel button pressed, hide div + elif checklist_options == []: + return True # no checklist options provided, don't show div + else: + return False # checklist options provided, show div + + +@callback(Output("verify-assist-done-dialog", "is_open"), + Input("verify-assist-done-dialog-body", "children"), + Input("verify-assist-done-button", "n_clicks"), + prevent_initial_call=True + ) +def manage_verify_assist_done_dialog(children, n_clicks): + """ Show or hide the done dialog after running ASSIST """ + if (get_trigger() == "verify-assist-done-button.n_clicks"): + return False # button pressed, hide the dialog + else: + return True # child added, show the dialog + + +@callback(Output("verify-report-error-dialog", "is_open"), + Input("verify-report-error-dialog-body", "children"), + Input("verify-report-error-button", "n_clicks"), + prevent_initial_call=True + ) +def manage_verify_report_error_dialog(children, n_clicks): + """ Show or hide the SPARQLgraph report error dialog (e.g. if no graphs selected) """ + if (get_trigger() == "verify-report-error-button.n_clicks"): + return False # button pressed, hide the dialog + else: + if children == None: + return False # child added but it's None, hide the dialog + else: + return True # child added, show it diff --git a/rack-ui/rackui.service b/rack-ui/rackui.service new file mode 100644 index 00000000..c62c5f20 --- /dev/null +++ b/rack-ui/rackui.service @@ -0,0 +1,15 @@ +[Unit] +Description=RACK UI +After=network.target + +[Service] +Type=simple +WorkingDirectory=/home/${USER}/RACK/rack-ui +ExecStart=/usr/bin/python3 app.py +TimeoutStopSec=20 +KillMode=process +User=rackui +Restart=on-failure + +[Install] +WantedBy=multi-user.target diff --git a/rack-ui/requirements.txt b/rack-ui/requirements.txt new file mode 100644 index 00000000..e24ba6dc --- /dev/null +++ b/rack-ui/requirements.txt @@ -0,0 +1,2 @@ +dash[diskcache] +dash-bootstrap-components[pandas] \ No newline at end of file diff --git a/sadl-examples/OwlModels/TurnstileSecurity.rules b/sadl-examples/OwlModels/TurnstileSecurity.rules new file mode 100644 index 00000000..072e3760 --- /dev/null +++ b/sadl-examples/OwlModels/TurnstileSecurity.rules @@ -0,0 +1,11 @@ +# Jena Rules file generated by SADL IDE -- Do not edit! Edit the SADL model and regenerate. +# Created from SADL model 'http://arcos.sadl-examples/TurnstileSecurity' + +@prefix Sec: +@prefix rdf: +@prefix CPS: +@prefix TSec: +@prefix sys: + +[Vul-CAPEC-148: (?comp rdf:type http://arcos.turnstile/CPS#Cps), (?comp http://arcos.turnstile/CPS#insideTrustedBoundary 'true'^^http://www.w3.org/2001/XMLSchema#boolean), (?conn rdf:type http://arcos.turnstile/CPS#Connection), (?conn http://arcos.rack/SYSTEM#destination ?comp), (?conn http://arcos.turnstile/CPS#connectionType http://arcos.turnstile/CPS#Untrusted) -> (http://arcos.sadl-examples/TurnstileSecurity#CAPEC-148 http://arcos.rack/SECURITY#source ?conn)] +[Mitigated-CAPEC-148: (?conn rdf:type http://arcos.turnstile/CPS#Connection), (http://arcos.sadl-examples/TurnstileSecurity#CAPEC-148 http://arcos.rack/SECURITY#source ?conn), (?conn http://arcos.turnstile/CPS#implControl http://arcos.sadl-examples/TurnstileSecurity#ic1), (?conn http://arcos.turnstile/CPS#implControl http://arcos.sadl-examples/TurnstileSecurity#ic2) -> print('CAPEC-148 (Content Spoofing) is mitigated for connection = '^^http://www.w3.org/2001/XMLSchema#string, ?conn)] diff --git a/sadl-examples/OwlModels/configuration.rdf b/sadl-examples/OwlModels/configuration.rdf new file mode 100644 index 00000000..32e7c151 --- /dev/null +++ b/sadl-examples/OwlModels/configuration.rdf @@ -0,0 +1,21 @@ + + + file:/RACK/STR-Ontology + + + + + + + com.ge.research.sadl.jena.reasoner.builtin.Print + print + + + + + + + + diff --git a/sadl-examples/OwlModels/ont-policy.rdf b/sadl-examples/OwlModels/ont-policy.rdf new file mode 100644 index 00000000..139ada25 --- /dev/null +++ b/sadl-examples/OwlModels/ont-policy.rdf @@ -0,0 +1,109 @@ + + + platform:/resource/sadl-examples/AllOntology.sadl + All + SADL + + + + + + platform:/resource/sadl-examples/OverlayChecks.sadl + chk + SADL + + + + + + platform:/resource/sadl-examples/Example.sadl + SADL + + + + + + platform:/resource/sadl-examples/RdfsSubset.sadl + rdfs + SADL + + + + + + platform:/resource/sadl-examples/ImplicitModel/SadlBuiltinFunctions.sadl + builtinfunctions + SADL + + + + + + sadllistmodel + SADL + + + + + + sadlbasemodel + SADL + + + + + + platform:/resource/sadl-examples/ImplicitModel/SadlImplicitModel.sadl + sadlimplicitmodel + SADL + + + + + + platform:/resource/sadl-examples/RequirementAnalysisExample.sadl + SADL + + + + + + platform:/resource/sadl-examples/ShellCheckAnalysisExample.sadl + SADL + + + + + + platform:/resource/sadl-examples/BaselinesSrcRq.sadl + SADL + + + + + + platform:/resource/sadl-examples/Magic.sadl + SADL + + + + + + platform:/resource/sadl-examples/TurnstileSecurity.sadl + TSec + SADL + + + + + + platform:/resource/sadl-examples/OverlayGraphs.sadl + graph + SADL + + + + + diff --git a/sadl-examples/TurnstileSecurity.sadl b/sadl-examples/TurnstileSecurity.sadl index 2bf5d24d..e8a44788 100644 --- a/sadl-examples/TurnstileSecurity.sadl +++ b/sadl-examples/TurnstileSecurity.sadl @@ -129,8 +129,8 @@ ic1 is a ImplControl ic2 is a ImplControl with control IA-3-1 with dal 6. -inflow has implControl ic1. -inflow has implControl ic2. +inflow has implConnControl ic1. +inflow has implConnControl ic2. // Rule to identify threats Rule Vul-CAPEC-148 diff --git a/tests/test_nodegroups.py b/tests/test_nodegroups.py index c52dbd53..abef43a0 100644 --- a/tests/test_nodegroups.py +++ b/tests/test_nodegroups.py @@ -10,13 +10,13 @@ @pytest.mark.xfail(reason="See discussion on RACK#193") def test_invariant_nodegroups(rack_url: str) -> None: # There is some duplication here with rack.run_count_query, but not a lot. - semtk3.SEMTK3_CONN_OVERRIDE = rack.sparql_connection(rack.Url(rack_url), rack.DEFAULT_DATA_GRAPH, [], None, None) + semtk3.SEMTK3_CONN_OVERRIDE = rack.sparql_connection(rack.Url(rack_url), None, None, [], None, None) semtk_table = semtk3.count_by_id("query nonuniqueIdentifiers") assert 0 == int(semtk_table.get_rows()[0][0]) def test_query_nodegroups(rack_url: str) -> None: - conn = rack.sparql_connection(rack.Url(rack_url), rack.DEFAULT_DATA_GRAPH, [], None, None) + conn = rack.sparql_connection(rack.Url(rack_url), None, None, [], None, None) for nodegroupJsonPath in glob("../nodegroups/queries/*.json"): name = Path(nodegroupJsonPath).with_suffix("").name # Just check that this doesn't raise an exception