Closed createmycookbook closed 3 years ago
This gem forms the core data model for describing RDF/Linked Data. As such, it only natively parses core formats N-Triples and N-Quads. There is a whole ecosystem including other parsers, query engines and data storage models.
Try installing the “linkeddata” gem, which includes this and may others. You can then either use the programmatic reader interface, or the “rdf” cli which is also installed.
These are all used in a couple of online services, including rdf.greggkellogg.net, which basically uses the internals of the “rdf” cli, which will likely do what you want.
How could one use this library to parse basic JSON-LD/Microdata from a webpage in such a way that data is constructed consistently? For example (parsing a recipe. e.g. https://www.allrecipes.com/recipe/16670/crostini-demily):
Looking for a result like:
from a query
Ideas? sorry newbie