Socialwg/Social syntax
content previously on this page moved to: Social_syntax/Patterns
Overview
In expressing social data, we can distinguish different aspects
- Data model - conceptual model of data
- Serialization - concrete syntax used for sending data 'over wire'
- Vocabulary - common reference for terms used by serialization and data model
- Ontology - defines terms used as names Classes and Properties
- Enumeration - defines lists of URIs used as Values of Properties
Data model
microformats
Activity Streams 2.0
RDF
Serialization
microformats
microformats HTML
http://microformats.org/wiki/HTML
piggybacks on class attribute, possibly causing collision in work of developer teams working on data modeling and visual layout Pavlik elf (talk) 15:15, 18 February 2015 (UTC)
microformats JSON
http://microformats.org/wiki/json
microformats JSON-LD
JSON-LD spec dedicates short section to show how to use it with microformats http://www.w3.org/TR/json-ld/#microformats
elf Pavlik works on scrip (.js) to convert data serialized in microformats JSON to microformats JSON-LD
microformats Form-encoded
as used in http://indiewebcamp.com/micropub#Form-encoded_Microformats_Representation
AFAIK no tool exist to provide form-encoded data from microformats html | json — Pavlik elf (talk) 00:37, 4 March 2015 (UTC)
Activity Streams 2.0
Activity Steams 2.0 requires only JSON-LD serialization. Core and Vocabulary specifications include examples in RDFa, Turtle, Microdata and Microformats but they act only as informative reference.
Both RDFa and Turtle, just as JSON-LD serialize RDF graph, one can parse them and serialize to JSON-LD using standard RDF tools. Also all RDFa and Turtle examples in specs have automated tests to verify that they serialize exactly the same data as JSON-LD version.
Microdata provides some ways to convert it to RDF http://www.w3.org/TR/microdata-rdf/ but currently examples don't have automated tests to verify that they contain exactly same data as JSON-LD version. Microdata also doesn't support mixing vocabularies very well https://www.w3.org/wiki/Mixing_HTML_Data_Formats#Mixing_Vocabularies_in_microdata
Microformats don't provide way to convert them to RDF. Currently examples don't have automated test to verify that they contain exactly the same data as JSON-LD verison. Also microformats examples use microformats vocabulary instead of Activity Streams 2.0 Vocabulary, early work exists attempting to map them: https://www.w3.org/wiki/Activity_Streams/Microformats_Mapping
RDF
JSON-LD
RDFa
http://www.w3.org/TR/rdfa-syntax/
Turtle
Other
Microdata
http://www.w3.org/TR/microdata/
lacks support for mixing multiple vocabularies and inverse properties Pavlik elf (talk) 18:16, 18 February 2015 (UTC)
See also
Vocabulary
IANA link relations
http://www.iana.org/assignments/link-relations/link-relations.xhtml | https://tools.ietf.org/html/rfc6903
- doesn't provide stable URIs - my proposal to fix it via w3id.org Pavlik elf (talk) 08:10, 23 February 2015 (UTC)
microformats
- doesn't provide stable URIs Pavlik elf (talk) 18:55, 18 February 2015 (UTC)
- my proposal to fix it via w3id.org Pavlik elf (talk) 08:10, 23 February 2015 (UTC)
Amy Guy works on representing microformats vocabulary as RDF ontology
microformats link relations
http://microformats.org/wiki/existing-rel-values
- doesn't provide stable URIs - my proposal to fix it via w3id.org Pavlik elf (talk) 08:10, 23 February 2015 (UTC)
RDF
Activity Streams 2.0
http://www.w3.org/TR/activitystreams-vocabulary/
Schema.org
Wikidata
https://www.wikidata.org/wiki/Wikidata:List_of_properties