hermes.model.types.pyld_util
============================

.. py:module:: hermes.model.types.pyld_util


Attributes
----------

.. autoapisummary::

   hermes.model.types.pyld_util.bundled_loader


Classes
-------

.. autoapisummary::

   hermes.model.types.pyld_util.BundledLoader
   hermes.model.types.pyld_util.JsonLdProcessor


Module Contents
---------------

.. py:class:: BundledLoader(schema_path: Optional[pathlib.Path] = None, base_loader: Any = None, preload: Union[bool, List[str], None] = None)

   Loader that retrieves schemas that come bundled with the software.


   .. py:method:: _load_json(source, base_url)


   .. py:method:: _load_rdflib(source, base_url)


   .. py:method:: load_schema(url)


   .. py:method:: __call__(url, options=None)


.. py:data:: bundled_loader

.. py:class:: JsonLdProcessor(on_property_dropped: OnPropertyDropped = noop)

   Bases: :py:obj:`pyld.jsonld.JsonLdProcessor`


   Custom JsonLdProcessor to get access to the inner functionality.


   .. py:method:: expand_iri(active_ctx: Any, short_iri: str, vocab: bool = True) -> str


   .. py:method:: compact_iri(active_ctx: Any, long_iri: str, vocab: bool = True, value: dict = None) -> str


   .. py:method:: initial_ctx(local_ctx, options=None)


   .. py:method:: register_typemap(typecheck, **conversions)
      :classmethod:



   .. py:method:: apply_typemap(value, *option, **kwargs)
      :classmethod:



