# Auto generated from activitypub.yaml by pythongen.py version: 0.0.1 # Generation date: 2024-01-14T21:53:08 # Schema: linkml-activitypub # # id: https://github.com/p2p_ld/linkml-activitypub # description: Extension of ActivityStreams2 schema to include ActivityPub Actor and other definitions # license: GNU GPL v3.0 import dataclasses import re from jsonasobj2 import JsonObj, as_dict from typing import Optional, List, Union, Dict, ClassVar, Any from dataclasses import dataclass from linkml_runtime.linkml_model.meta import EnumDefinition, PermissibleValue, PvFormulaOptions from linkml_runtime.utils.slot import Slot from linkml_runtime.utils.metamodelcore import empty_list, empty_dict, bnode from linkml_runtime.utils.yamlutils import YAMLRoot, extended_str, extended_float, extended_int from linkml_runtime.utils.dataclass_extensions_376 import dataclasses_init_fn_with_kwargs from linkml_runtime.utils.formatutils import camelcase, underscore, sfx from linkml_runtime.utils.enumerations import EnumDefinitionImpl from rdflib import Namespace, URIRef from linkml_runtime.utils.curienamespace import CurieNamespace metamodel_version = "1.7.0" version = None # Overwrite dataclasses _init_fn to add **kwargs in __init__ dataclasses._init_fn = dataclasses_init_fn_with_kwargs # Namespaces AP = CurieNamespace('ap', 'http://www.w3.org/ns/activitystreams#') AS = CurieNamespace('as', 'http://www.w3.org/ns/activitystreams#') LINKML = CurieNamespace('linkml', 'https://w3id.org/linkml/') OWL = CurieNamespace('owl', 'http://www.w3.org/2002/07/owl#') RDF = CurieNamespace('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#') RDFS = CurieNamespace('rdfs', 'http://www.w3.org/2000/01/rdf-schema#') XML = CurieNamespace('xml', 'http://www.w3.org/XML/1998/namespace') XSD = CurieNamespace('xsd', 'http://www.w3.org/2001/XMLSchema#') DEFAULT_ = AP # Types # Class references # Enumerations # Slots class slots: pass