jonny,
@jonny@neuromatch.social avatar

My latest bad idea thats actually good: what if instead of a schema generating a python module, what if the schema was a python module by hooking into the import machinery

vrandecic,
@vrandecic@mas.to avatar

@jonny https://ceur-ws.org/Vol-135/paper4.pdf ?

(I didn't read this paper in more than ten years, so I might totally misremember it)

jonny,
@jonny@neuromatch.social avatar

@vrandecic
Yes kinda, except it'll be done and real in about an hour from now and also with contemporary python thingz :)

vrandecic,
@vrandecic@mas.to avatar

@jonny that's much better than a paper that always was merely vaporware!

jonny,
@jonny@neuromatch.social avatar
jonny,
@jonny@neuromatch.social avatar

Then theres no worrying about either getting out of sync. Detect changes and regenerate on import. If you want to directly modify the python module, no problem, its fully invertible back to the schema in a way thats totally orthogonal to any modifications youd make

SmallOther,
@SmallOther@techhub.social avatar

@jonny

I might be misunderstanding what you're looking for, but this sounds a lot like something you could accomplish with metaclasses.

jonny,
@jonny@neuromatch.social avatar

@SmallOther
Dw I basically have this finished, implementation not a question :)

jonny,
@jonny@neuromatch.social avatar

So then you dont just have code thats generated from a linked data schema, you have code that IS a linked data schema. And with our recent work with arrays you get a linked data schema that you can actually use for normal data things. And with a firmer bridge, it becomes easier to virtualize eg. Tables of values as pandas dataframes with exactly the same object youd represent an individual value.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • modclub
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • cubers
  • GTA5RPClips
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • tacticalgear
  • ethstaker
  • kavyap
  • Durango
  • anitta
  • everett
  • Leos
  • provamag3
  • mdbf
  • ngwrru68w68
  • cisconetworking
  • tester
  • osvaldo12
  • megavids
  • khanakhh
  • normalnudes
  • JUstTest
  • lostlight
  • All magazines