Skip to content

Commit

Permalink
Merge pull request #92 from linkml/rdflib_shim
Browse files Browse the repository at this point in the history
Added rdflib-shim.
  • Loading branch information
cmungall authored Dec 17, 2021
2 parents 325131a + a12c69b commit 0492f3d
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 87 deletions.
2 changes: 2 additions & 0 deletions linkml_runtime/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from linkml_runtime.utils.curienamespace import CurieNamespace
from rdflib import RDF, RDFS, SKOS, XSD, OWL
import rdflib_shim
shim = rdflib_shim.RDFLIB_SHIM

LINKML = CurieNamespace('linkml', 'https://w3id.org/linkml/')
TCCM = CurieNamespace('tccm', 'https://ontologies.r.us/tccm/')
Expand Down
4 changes: 2 additions & 2 deletions linkml_runtime/utils/dataclass_extensions_376.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
_create_fn

def dataclasses_init_fn_with_kwargs(fields, std_fields, kw_only_fields, frozen, has_post_init,
self_name, globals):
self_name, globals, slots):
# fields contains both real fields and InitVar pseudo-fields.

# Make sure we don't have fields without defaults following fields
Expand All @@ -34,7 +34,7 @@ def dataclasses_init_fn_with_kwargs(fields, std_fields, kw_only_fields, frozen,

body_lines = []
for f in fields:
line = _field_init(f, frozen, locals, self_name)
line = _field_init(f, frozen, locals, self_name, slots)
# line is None means that this field doesn't require
# initialization (it's a pseudo-field). Just skip it.
if line:
Expand Down
Loading

0 comments on commit 0492f3d

Please sign in to comment.