owmeta.neuroml module

class owmeta.neuroml.NeuroMLDocument(*args, no_type_decl=False, **kwargs)[source]

Bases: DataObject

Represents a NeuroML document

The document may be represented literally in the RDF graph using xml_content or stored elsewhere and included by reference with document_url.

Example:

>>> embedded_nml = NeuroMLDocument(key='embedded_ex', content="""\
... <?xml version="1.0" encoding="UTF-8"?>
... <neuroml xmlns="http://www.neuroml.org/schema/neuroml2"
...     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...     xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2
...     https://raw.github.com/NeuroML/NeuroML2/master/Schemas/NeuroML2/NeuroML_v2beta.xsd"
...     id="k_slow">
...     <ionChannel id="k_slow" conductance="10pS" type="ionChannelHH" species="k">
...         <notes>K slow channel from Boyle and Cohen 2008</notes>
...         <gateHHtauInf id="n" instances="1">
...             <timeCourse type="fixedTimeCourse" tau="25.0007 ms"/>
...             <steadyState type="HHSigmoidVariable" rate="1" scale="15.8512 mV" midpoint="19.8741 mV"/>
...         </gateHHtauInf>
...     </ionChannel>
... </neuroml>""")

>>> external_nml = NeuroMLDocument(ident='external_ex',
...     document_url='')
class_context = owmeta_core.context.ClassContext(ident="http://schema.openworm.org/2020/07/sci/bio")
property content

XML content for the document. Should be a complete NeuroML document rather than a fragment.

property document_url

URL where the XML content of the document can be retrieved

class owmeta.neuroml.NeuroMLProperty(*args, **kwargs)[source]

Bases: ObjectProperty

Property for attaching NeuroML documents to resources

value_type

alias of NeuroMLDocument

rdf_type_class = None