Replies: 2 comments 6 replies
-
Hey @ffes - looks like it is an implementation detail of Schema.NET. In the That said, it doesn't seem that it is a requirement of schema.org to parse URLs that way. I'll need to investigate a little more but if I'm correct, it should be a fairly easy fix. |
Beta Was this translation helpful? Give feedback.
-
Sounds great to me.
As always,,. It depends. For my project absolute paths would be a nightmare. My source images are on Dropbox and they sit in another place on Linux and Windows (yep, I use them both). And the images are copied to the generated website and embedded in an epub. So relative paths (just filenames as in the examples I referred to) are ideal in my case. But for other uses, relative paths could indeed be difficult to handle. |
Beta Was this translation helpful? Give feedback.
-
I recently utilized https://schema.org/Recipe to create an epub and (internal) website of all our favorite recipes from a collection of local files.
Now I run into an issue with the
image
property. .In the example on https://schema.org/Recipe there is a line in the JSON that says:
"image": "bananabread.jpg"
And on https://schema.org/ImageObject there is a similar example:
"contentUrl": "mexico-beach.jpg"
But these values are not recognized when I parse this with
SchemaSerializer.DeserializeObject<Recipe>("JSON");
.All the other properties in the JSON work as expected. Only the
image
property is not recognized.I played a bit with it. When I add
file:///
in front to it, it is recognized (obviously), but that is not what I need. I want to enter a relative filename that I can use to generate my HTML (used on the webpage). Both the examples suggests that those values are allowed.Not sure if it is an implementation in Schema.NET, or that I am I doing something wrong.
Beta Was this translation helpful? Give feedback.
All reactions