ontocast.onto.constants¶
Attributes¶
COMMON_PREFIXES = {'xsd': '<http://www.w3.org/2001/XMLSchema#>', 'rdf': '<http://www.w3.org/1999/02/22-rdf-syntax-ns#>', 'rdfs': '<http://www.w3.org/2000/01/rdf-schema#>', 'owl': '<http://www.w3.org/2002/07/owl#>', 'dc': '<http://purl.org/dc/elements/1.1/>', 'dcterms': '<http://purl.org/dc/terms/>', 'skos': '<http://www.w3.org/2004/02/skos/core#>', 'foaf': '<http://xmlns.com/foaf/0.1/>', 'schema': '<https://schema.org/>', 'prov': '<http://www.w3.org/ns/prov#>', 'ex': '<http://example.org/>'}
module-attribute
¶
DCTERMS = Namespace('http://purl.org/dc/terms/')
module-attribute
¶
DEFAULT_CACHE_MAX_BYTES = 1024 ** 3
module-attribute
¶
DEFAULT_CACHE_PRUNE_EVERY = 256
module-attribute
¶
DEFAULT_DATASET = tenant_project_facts_name(DEFAULT_TENANT, DEFAULT_PROJECT)
module-attribute
¶
DEFAULT_DOMAIN = 'https://growgraph.dev'
module-attribute
¶
DEFAULT_IRI = f'{DEFAULT_DOMAIN}/facts/'
module-attribute
¶
DEFAULT_ONTOLOGIES_DATASET = tenant_project_ontologies_name(DEFAULT_TENANT, DEFAULT_PROJECT)
module-attribute
¶
DEFAULT_SHAPES_DATASET = tenant_project_shapes_name(DEFAULT_TENANT, DEFAULT_PROJECT)
module-attribute
¶
DOCUMENT_METADATA_TERMS = frozenset({FOAF.Document, DCTERMS.title, DCTERMS.issued, DCTERMS.source, DCTERMS.identifier, PROV.wasAttributedTo})
module-attribute
¶
FOAF = Namespace('http://xmlns.com/foaf/0.1/')
module-attribute
¶
ONTOCAST = Namespace(f'{DEFAULT_DOMAIN}/ontocast#')
module-attribute
¶
ONTOLOGY_NULL_ID = '__null__'
module-attribute
¶
ONTOLOGY_NULL_IRI = f'{DEFAULT_DOMAIN}/{ONTOLOGY_NULL_ID}/'
module-attribute
¶
PROV = Namespace('http://www.w3.org/ns/prov#')
module-attribute
¶
PROVENANCE_METADATA_TERMS = frozenset({PROV.Entity, PROV.generatedAtTime, PROV.wasDerivedFrom, SCHEMA.Text, SCHEMA.position, SCHEMA.identifier, SCHEMA.articleSection, ONTOCAST.sectionLabelSource, ONTOCAST.sectionLabelConfidence})
module-attribute
¶
RDF_REIFIES = URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies')
module-attribute
¶
SCHEMA = Namespace('https://schema.org/')
module-attribute
¶
WELL_KNOWN_PREFIXES = {'qudt': 'http://qudt.org/schema/qudt/', 'unit': 'http://qudt.org/vocab/unit/', 'quantitykind': 'http://qudt.org/vocab/quantitykind/', 'om': 'http://www.ontology-of-units-of-measure.org/resource/om-2/', 'geo': 'http://www.w3.org/2003/01/geo/wgs84_pos#', 'time': 'http://www.w3.org/2006/time#', 'sh': 'http://www.w3.org/ns/shacl#', 'dcat': 'http://www.w3.org/ns/dcat#', 'void': 'http://rdfs.org/ns/void#'}
module-attribute
¶
Functions:¶
prefix_lookup_for_ingest()
¶
Prefix map for Turtle/JSON-LD ingest repair (COMMON + WELL_KNOWN, bare URIs).