Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
edit.module
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Jan 2013 at 12:12 UTC
Updated:
29 Jul 2014 at 21:43 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedI mentioned this on Twitter, but I think this is a D9 issue. There's a lot to unpack when it comes to relying on RDFa and JSON-LD here.
As I mention in the fix rdf issue that you included, the RDFa in Drupal 7 is unreliable. It doesn't work for compound fields such as AddressField and Fivestar. It gives bogus data for some fields which add links to their data, such as Field Collection and Relation. It doesn't work if you use Views or Panels, or if you move fields outside of the entity div using something like hook_page_alter.
So we need to fix this. It is difficult to find people who can fix these issues because you fist need to understand the RDF triple model, which devs don't seem to. You then need to understand the RDFa processing model enough to make sure that you aren't creating brittle RDFa, like using hanging-rel chaining in the wrong place... which very few people in the world do (that's not a jab, I'm pretty sure Manu would agree with that statement).
In addition, we need to implement the JSON-LD. As I mentioned in Two JSON-LDs for Drupal, the data structure we will use for content deployment is different than the one CreateJS needs. CreateJS needs to align with the data in RDFa, which needs to align with external vocabularies like Schema.org.
We have high aspirations for these technologies, but we don't have enough devs digging into the details to make it work in a short timeframe.
Comment #2
scor commentedIndeed we first need to have better RDFa support in core, which is tracked in #1778226: [META] Fix RDF module. For the case of Edit, we should use the site schema which was introduced in #1852812: Use cache to get entity type/bundle metadata from JSON-LD @type URI, and which gives each field its own URI. We should also use the Drupal-specific model in RDFa/JSON-LD used in the context of content deployment, see example at #1831286: Provide machine-readable description of entity/field/property. That way JSON-LD entities mirrored in VIE from the RDFa in the page can be sent pretty much as is to Drupal to be saved by the Entity API. I'm picturing an ideal situation here, but I hope we can get there :)
Comment #3
Anonymous (not verified) commentedHmmm... so the site schema that was introduced is actually TWO site schemas. Are you suggesting that we include both in the page? FYI, that would actually be impossible to do unless we duplicate content in invisible meta tags since they model things in such a different way.
Comment #4
effulgentsia commentedPer #1924854-6: [META] Hypertext Application Language (HAL) support, we'll likely need to rethink this based on HAL, but probably makes sense to keep this postponed until that meta issue is further along.
Comment #5
wim leers#1979784: Factor Create.js and VIE.js out of the Edit module removed Create.js and VIE.js, so this was implicitly fixed there.