lanthaler / JsonLD

JSON-LD processor for PHP
MIT License
336 stars 61 forks source link

Framing with @explicit and @omitDefault #65

Open serwan opened 9 years ago

serwan commented 9 years ago

Hi, I saw a strange behavior (and different from "offical playground") with theses two flags. For @explicit : if my frame specify a property which is missing from my input -> my output is empty. On the playground, my output has the property I specified with "" as value

@omitDefault : isn't implemanted On the playground, my output hasn't the property I specified in my frame if she's missing from my input

bdecarne commented 9 years ago

+1 for @omitDefault

lanthaler commented 8 years ago

Yeah, framing was never completed so the various implementations differ. Mine allows you to "filter" data whereas the Digital Bazaar's implementation does things slightly differently. What behavior would you expect? Why so?