|
| 1 | +#!/usr/bin/env python3 |
| 2 | + |
| 3 | +# This software was developed at the National Institute of Standards |
| 4 | +# and Technology by employees of the Federal Government in the course |
| 5 | +# of their official duties. Pursuant to title 17 Section 105 of the |
| 6 | +# United States Code this software is not subject to copyright |
| 7 | +# protection and is in the public domain. NIST assumes no |
| 8 | +# responsibility whatsoever for its use by other parties, and makes |
| 9 | +# no guarantees, expressed or implied, about its quality, |
| 10 | +# reliability, or any other characteristic. |
| 11 | +# |
| 12 | +# We would appreciate acknowledgement if the software is used. |
| 13 | + |
| 14 | +""" |
| 15 | +This module provides importable constants for namespaces. |
| 16 | +
|
| 17 | +To use, add "from case_utils.namespace import *". Namespace variables starting with "NS_" are imported. As needs are demonstrated in CASE tooling (both in case_utils and from downstream requests), namespaces will also be imported from rdflib for a consistent "NS_*" spelling. |
| 18 | +""" |
| 19 | + |
| 20 | +import rdflib # type: ignore |
| 21 | + |
| 22 | +NS_SH = rdflib.SH |
| 23 | +NS_RDF = rdflib.RDF |
| 24 | +NS_XSD = rdflib.XSD |
| 25 | + |
| 26 | +NS_CASE_INVESTIGATION = rdflib.Namespace( |
| 27 | + "https://ontology.caseontology.org/case/investigation/" |
| 28 | +) |
| 29 | +NS_CASE_VOCABULARY = rdflib.Namespace( |
| 30 | + "https://ontology.caseontology.org/case/vocabulary/" |
| 31 | +) |
| 32 | +NS_UCO_ACTION = rdflib.Namespace( |
| 33 | + "https://ontology.unifiedcyberontology.org/uco/action/" |
| 34 | +) |
| 35 | +NS_UCO_CORE = rdflib.Namespace("https://ontology.unifiedcyberontology.org/uco/core/") |
| 36 | +NS_UCO_IDENTITY = rdflib.Namespace( |
| 37 | + "https://ontology.unifiedcyberontology.org/uco/identity/" |
| 38 | +) |
| 39 | +NS_UCO_LOCATION = rdflib.Namespace( |
| 40 | + "https://ontology.unifiedcyberontology.org/uco/location/" |
| 41 | +) |
| 42 | +NS_UCO_MARKING = rdflib.Namespace( |
| 43 | + "https://ontology.unifiedcyberontology.org/uco/marking/" |
| 44 | +) |
| 45 | +NS_UCO_OBSERVABLE = rdflib.Namespace( |
| 46 | + "https://ontology.unifiedcyberontology.org/uco/observable/" |
| 47 | +) |
| 48 | +NS_UCO_PATTERN = rdflib.Namespace( |
| 49 | + "https://ontology.unifiedcyberontology.org/uco/pattern/" |
| 50 | +) |
| 51 | +NS_UCO_ROLE = rdflib.Namespace("https://ontology.unifiedcyberontology.org/uco/role/") |
| 52 | +NS_UCO_TIME = rdflib.Namespace("https://ontology.unifiedcyberontology.org/uco/time/") |
| 53 | +NS_UCO_TOOL = rdflib.Namespace("https://ontology.unifiedcyberontology.org/uco/tool/") |
| 54 | +NS_UCO_TYPES = rdflib.Namespace("https://ontology.unifiedcyberontology.org/uco/types/") |
| 55 | +NS_UCO_VICTIM = rdflib.Namespace( |
| 56 | + "https://ontology.unifiedcyberontology.org/uco/victim/" |
| 57 | +) |
| 58 | +NS_UCO_VOCABULARY = rdflib.Namespace( |
| 59 | + "https://ontology.unifiedcyberontology.org/uco/vocabulary/" |
| 60 | +) |
0 commit comments