Skip to content

Commit

Permalink
Update yard docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 29, 2021
1 parent 9798d9f commit 9dbf716
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
16 changes: 16 additions & 0 deletions example-files/frame-title-frame.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"@context": [
{
"@language": "en"
},
{
"title": {
"@id": "dct:title"
},
"titles": {
"@id": "dct:title",
"@container": "@language"
}
}
]
}
17 changes: 17 additions & 0 deletions example-files/frame-title.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": [
{
"@language": "en"
},
{
"title": {
"@id": "dct:title"
},
"titles": {
"@id": "dct:title",
"@container": "@language"
}
}
],
"title": "myTitle"
}
2 changes: 1 addition & 1 deletion lib/json/ld/flatten.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def create_node_map(element, graph_map,
# * Deserialize the key into a map, and re-serialize the value of `@id`.
# * If the map contains an entry with that value (after re-canonicalizing, as appropriate), and the associated antry has a item which matches the non-`@id` item from the map, the node is used to create an `@annotation` entry within that value.
#
# @param [Hash{String => Hash}] input
# @param [Hash{String => Hash}] node_map
# @return [Hash{String => Hash}]
def create_annotations(node_map)
node_map.keys.
Expand Down

0 comments on commit 9dbf716

Please sign in to comment.