-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schema.org repo has dropped most RDFa files #133
Comments
@sebastiandedeyne do you have any opinions/favorites/ideas? Or should I simply recreate the whole generator with, my favorite RDF, plus other breaking changes and tag a new major version? |
Just an update: I could only see schema.ttl file |
@boospot thanks for letting us know! 🙂 |
Is it final that this package shall not receive any updates or is there any chance the team will update once they find time? |
The decision is final that right now no maintainer is available upgrading the generator to a newer version. If @spatie itself or I should need v8 or v9 we will upgrade it. So if you are in need of v8 or v9 types we would welcome a PR. 🙂 |
I wonder how complex/hard it would be to update from My goal would be simply switching to the |
@mallardduck Good one - after a quick check it shouldn't be too hard. Parsing JSON is implemented by default and the structure and keys are very similar/the same. Thanks for taking a look! 🙂 If you need any help/feedback just ask. I'm still here. 😉 |
@Gummibeer wondering your thoughts on the 'constants' - are those required to preserve, do the serve as simply informational? If they are simply informational, then do they provide enough value that they should be required? I ask because it seems these are not included in the Other than this aspect of the parser things were moving pretty smoothly! So curious if the simple option of simply dropping the constants makes sense? |
Hey, do you mean the enums like And they shouldn't be dropped because they are required to use for example in One "improvement" for them could be to switch to https://github.com/spatie/enum - but this would be a future improvement/change. |
That wasn't the specific example I was considering - so it seems that there's a mixed bag. Thankfully you're right those examples are included in the JSON-LD version too. The specific example I was thinking of would be from schema-org/src/Organization.php Line 23 in 645a3bb
schema-org/src/Organization.php Line 173 in 645a3bb
(The second one was the one I was focusing on debugging with for context.) |
Thankfully since they're in the JSON-LD definitions the ones you're referring to should be easy enough to get working. 😄 |
Seems like these constants are part of wrongly imported/parsed/generated code. 🤔 They seem to be parsed from these lines: I believe that it would be okay to drop them. |
So I got things to a working point but was quite confused why so many methods were being changed around. Not just a few, but a lot of schema's loosing properties and methods. After looking into it further I've come to the conclusion that it was an "upstream" issue with how schemaorg/schemaorg was generating the RDFa file. At least that is the most simple explanation I have for so many things changing with my jsonld based generator. I examined the 7.04 release version of the files and found a few good examples of conflicts between RDFa and JSON-LD. So with that in mind there will be a lot more changes than I expected this to produce. So I understand that this will make reviewing the generated changes a less than ideal, but that's beyond our control it seems. Examples
|
So keeping that all in mind - since that makes comparing a little harder - I'll shoot a PR over soon once I've reviewed things further. 🚀 |
Hey, I would say that the JSON-LD is always right - I already had "endless" issues with the RDFa mixing different releases, listing pending types as released type of properties but not having the pending type definition and so on. Not starting with typos. PS: could be that I merge them quickly in new repo branches because it's a lot easier for me than handling forked branches.^^ |
@Gummibeer Unfortunately it looks like the JSON-LD is just as prone to them including pending type definitions. 🤦 Forgive the single commit branch, I had things in a more logical flow of commits as I worked. However I accidentally nuked the local repo I was in, so had to restore the work via PhpStorm buffers thus it's all a squashed commit now. But #140 has just the generator changes as requested. Wasn't exactly sure how you wanted the second one done and my brain was kinda mush after the panic of nuking my local repo and restoring it all. But that's #141 where things fail tests due to the inconsistent publishing. Specifically an example of the inconsistent publishing is Trying to look over that specific case now to see how that can be accounted for. Maybe I goofed up refactoring the section you have that helps with marking those as pending. |
So far I know I've flagged them as pending if the type is only used but never defined. And so far I've seen it v9 has a much more reduced file list. They only have files containing everything. So could be that v9 answers the question how we should handle extensions. 🙈 I will checkout your PRs in some hours. 🎉 |
Hello, It's been over a year. I understand you guys are very busy and all. Just want to check if it's safe to use this for an active project to generate schema (mainly for search engines) |
Hey, I'm sorry for the missing link and wrongfully open issue. |
blocking #80 and future type updates.
A benefit if this change is that the files are now part of release folders - so for us it should be easier to decide if a new update is breaking or not.
Following the latest version everything is now released as:
NQNTEven pending types seem to be versioned. So we could get rid of all the "missing XYZ type" issues.
In my opinion we should decide for the new type to use - for RDF there is a lib easyrdf and it seems similar to RDFa - both are XML, so in worst case we could parse it by our own.
During this I would introduce sub namespaces for Pending and Extensions - so we always parse all available/official types.
Because of the new namespaces, included extension, new major schema version and so on I would say that we should use a new major version for this change.
But it's also a critical one because until this is fixed we can't proceed with #80
Update 2020-08-24: @mallardduck will prepare a
JSON-LD
parser for current v7 to check if it's working and afterward upgrade it to v8 and v9 in consecutive PRs.#133 (comment)
The text was updated successfully, but these errors were encountered: