Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  _:aggregation edm:provider "Moomin Valley Historical Society" .

 


Info
titlerdf:type

Most ActiveTriples models automatically insert an rdf:type statement, giving a configured class (e.g. ore:Aggregation). These are omitted from the example graphs here for brevity.

Info
titleLiteral Types

Property Declarations handle typed values through RDF::Literal's type system, converting Ruby Date, true, false, Symbol, and others to their applicable literal data types in generated RDF.

...


Child Declarations

Child (Node) Declarations extend the language with tools for specifying nested graph structure. Rather than specifying a value to set on the property, they create new RDF resource.

...

  _:agent dpla:providedLabel "Moomin Valley Historical Society" .

...


Because the declaration block can accept its own Child Declarations, it is possible to create deeply nested structures.

...

  _:littleMy dpla:providedLabel "Little My" .

...


Info
titleRooted Directed Graphs
 Abstractly, a Krikri::Mapping is a tree of declarations. The declarations themselves can be seen as rules for generating a rooted RDF graph from parsed records. The Aggregation constitutes the root node, and each additional Child Declaration creates a descendent node.

...

Code Block
languageruby
title#uri examples
Krikri::Mapper.define(:my_mapping) do
  uri 'this'
  sourceResource class: DPLA::MAP::SourceResource do
    uri 'http://example.org/source_resource'
  end
end

 


Value Methods

 

...

Info

Current and version specific documentation for Value methods is in Parser::ValueArray on RubyDoc.