You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now all MgdSchema types reside in the Midgard root namespace, so my_article becomes a my_article class in PHP, or midgard.mgdschema.my_article in Python. But we could support namespaced types, and that would also fit JCR compatibility better.
Also note that namespaces used should have a valid xmlns definition in the file (the URI there doesn't need to point anywhere real, though). If they're not there, Midgard should throw an error.
On some API level Midgard should then understand that my:foo and http://example.net/myschema/foo are the same.
Oh, and since MgdSchemas have a default namespace, Midgard should also know that midgard_attachment and http://www.midgard-project.org/repligard/1.4/midgard_attachment are the same.
Now all MgdSchema types reside in the Midgard root namespace, so
my_article
becomes amy_article
class in PHP, ormidgard.mgdschema.my_article
in Python. But we could support namespaced types, and that would also fit JCR compatibility better.So:
Would map as
\my\article
in PHP, andmidgard.mgdschema.my.article
in Python. JCR mapping would obviously bemy:article
.The text was updated successfully, but these errors were encountered: