diff --git a/index.html b/index.html index 6cce8279..e059e25b 100644 --- a/index.html +++ b/index.html @@ -151,6 +151,52 @@ color: green; background-color: inherit; } + aside.example { + overflow-y: hidden; + } + /* example tab selection */ + .ds-selector-tabs { + padding-bottom: 2em; + } + .ds-selector-tabs .selectors { + padding: 0; + border-bottom: 1px solid #ccc; + height: 28px; + } + .ds-selector-tabs .selectors button { + display: inline-block; + min-width: 54px; + text-align: center; + font-size: 11px; + font-weight: bold; + height: 27px; + padding: 0 8px; + line-height: 27px; + transition: all,0.218s; + border-top-right-radius: 2px; + border-top-left-radius: 2px; + color: #666; + border: 1px solid transparent; + } + .ds-selector-tabs .selectors button:first-child { + margin-left: 2px; + } + .ds-selector-tabs .selectors button.selected { + color: #202020 !important; + border: 1px solid #ccc; + border-bottom: 1px solid #fff !important; + } + .ds-selector-tabs .selectors button:hover { + background-color: transparent; + color: #202020; + cursor: pointer; + } + .ds-selector-tabs pre, .ds-selector-tabs table { + display: none; + } + .ds-selector-tabs pre.selected, .ds-selector-tabs table.selected { + display: block; + } @@ -351,43 +397,64 @@

Expansion

here is an example of JSON-LD that uses only terms and is fairly compact:

-
-    
-    
- - +

The next input example uses one IRI to express a property and an array to encapsulate another, but @@ -582,9 +649,7 @@

Flattening

"@id": "http://me.markus-lanthaler.com/", "name": "Markus Lanthaler", "knows": [ - { - "name": "Dave Longley" - } + {"name": "Dave Longley"} ] } --> @@ -600,23 +665,20 @@

Flattening

data-flatten title="Flattened sample document in expanded form"> @@ -645,16 +707,14 @@

Flattening

"name": "http://xmlns.com/foaf/0.1/name", "knows": "http://xmlns.com/foaf/0.1/knows" }, - "@graph": [ - { - "@id": "_:b0", - "name": "Dave Longley" - }, { - "@id": "http://me.markus-lanthaler.com/", - "name": "Markus Lanthaler", - "knows": { "@id": "_:b0" } - } - ] + "@graph": [{ + "@id": "http://me.markus-lanthaler.com/", + "name": "Markus Lanthaler", + "knows": { "@id": "_:b0" } + }, { + "@id": "_:b0", + "name": "Dave Longley" + }] } --> @@ -3205,21 +3265,31 @@

Examples

Language Map Term

If the term definition has "@container": "@language", it will only match a value object having no @type.

-
+
+