gonum.org/v1/gonum@v0.14.0/graph/formats/rdf/testdata/vocab_template.haml (about)

     1  !!! 5
     2  %html{lang: :en, prefix: "rdfn: http://json-ld.github.io/normalization/tests/vocab# mf: http://www.w3.org/2001/sw/DataAccess/tests/test-manifest# rdft: http://www.w3.org/ns/rdftest#"}
     3    %head
     4      %meta{"http-equiv" => "Content-Type", content: "text/html;charset=utf-8"}
     5      %meta{name: "viewport", content: "width=device-width, initial-scale=1.0"}
     6      %link{rel: "stylesheet", type: "text/css", href: "https://www.w3.org/StyleSheets/TR/base"}
     7      :css
     8        body: {bacground-image: none;}
     9        dt {margin-top: 2em;}
    10        dd code {display: inline;}
    11        footer {text-align: center;}
    12      %title
    13        = ontology['dc:title']
    14    %body{resource: ontology['@id'], typeof: "owl:Ontology"}
    15      %meta{property: "dc:creator", value: ontology["dc:creator"]}
    16      %link{property: "dc:identifier", href: ontology["@id"]}
    17      %p
    18        %a{href: "http://www.w3.org/"}
    19          %img{src: "http://www.w3.org/Icons/w3c_home", alt: "W3C", height: 48, width: 72}
    20      %h1{property: "dc:title rdfs:label"}<= ontology["dc:title"]
    21      %span{property: "dc:description rdfs:comment"}
    22        :markdown
    23          #{ontology["dc:description"].gsub(/^\s+/, '')}
    24  
    25          This vocabulary extends the [RDF Test Vocabulary](http://www.w3.org/ns/rdftest#)
    26          and [Test Manifest Vocabulary](http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#) with Normalization-specific tests.
    27          The URI of the vocabulary is `http://json-ld.github.io/normalization/tests/vocab#`
    28          (abbreviated by `rdfn` in this document).
    29          [Turtle](vocab.ttl) and [JSON-LD](vocab.jsonld) versions of the vocabular are also available.
    30          The vocabulary is published by the [W3C Credentials Community Group](https://www.w3.org/community/credentials/).
    31      %section
    32        %h2="Vocabulary Terms"
    33        %p="The vocabulary terms below constitute the complete RDF Dataset Normalization Test vocabulary"
    34        %section
    35          %h3#classes="Classes"
    36          %dl
    37            - classes.sort_by {|c| c['@id']}.each do |cls|
    38              %dt{about: cls['@id'], typeof: cls['@type'], property: "rdfs:label"}<~cls["@id"]
    39              %dd{about: cls['@id']}
    40                %em{property: "rdfs:label"}<~cls["rdfs:label"]
    41                %span{property: "rdfs:comment"}<
    42                  :markdown
    43                    #{cls["rdfs:comment"].to_s.gsub(/^\s+/, '')}
    44                - if cls["rdfs:subClassOf"]
    45                  %div
    46                    %strong
    47                      subClassOf:
    48                    - if cls["rdfs:subClassOf"].is_a?(Array)
    49                      %ul
    50                        - cls["rdfs:subClassOf"].each do |e|
    51                          %li
    52                            %code{property: "rdfs:subClassOf", resource: e}=e
    53                    - else
    54                      %code{property: "rdfs:subClassOf", resource: cls["rdfs:subClassOf"]}=cls["rdfs:subClassOf"]
    55        %section
    56          %h3#properties="Properties"
    57          %dl
    58            - properties.sort_by {|c| c['@id']}.each do |prop|
    59              %dt{about: prop['@id'], typeof: prop['@type'], property: "rdfs:label"}<~prop["@id"]
    60              %dd{about: prop['@id']}
    61                %em{property: "rdfs:label"}<~prop["rdfs:label"]
    62                %span{property: "rdfs:comment"}<
    63                  :markdown
    64                    #{prop["rdfs:comment"].to_s.gsub(/^\s+/, '')}
    65                - if prop["rdfs:domain"]
    66                  %div
    67                    %strong
    68                      domain:
    69                    - if prop["rdfs:domain"].is_a?(Array)
    70                      %ul
    71                        - prop["rdfs:domain"].each do |e|
    72                          %li
    73                            %code{property: "rdfs:domain", resource: e}=e
    74                    - else
    75                      %code{property: "rdfs:domain", resource: prop["rdfs:domain"]}=prop["rdfs:domain"]
    76                - if prop["rdfs:range"]
    77                  %div
    78                    %strong
    79                      range:
    80                    - if prop["rdfs:range"].is_a?(Array)
    81                      %ul
    82                        - prop["rdfs:range"].each do |e|
    83                          %li
    84                            %code{property: "rdfs:range", resource: e}=e
    85                    - else
    86                      %code{property: "rdfs:range", resource: prop["rdfs:range"]}=prop["rdfs:range"]
    87      %footer
    88        %span{property: "dc:publisher"}<= ontology["dc:publisher"]