x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<div class='hide-if-loading concept_details_component'>
<div class='card'>
<div data-controller='table-component'>
<table class='table-content table-content-stripped table-auto-layout' id=''>
<thead>
</thead>
<tbody id='_table_body'>
<tr class='' id=''>
<th>ID</th>
<td>http://opendata.inrae.fr/thesaurusINRAE/d_1</td>
</tr>
<tr class='' id=''>
<th>Preferred Name</th>
<td>01. ENVIRONMENT [domain]</td>
</tr>
<tr class='' id=''>
<th>Type</th>
<td>http://www.w3.org/2004/02/skos/core#Concept</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class='my-3'></div>
<div class='raw-table'>
<div class='dropdown-container'>
<div class='dropdown-title-bar' data-target='#accordion-concept-details' data-toggle='collapse'>
<div class="header-component">
<p>Raw data</p>
</div>
<img class="ml-2" src="/assets/summary/arrow-down-4c6468ed1706ac763539206a8dbb59606a781b3a2778515bd15907bf7796c68c.svg" />
</div>
<div class='collapse' id='accordion-concept-details'>
<div data-controller='table-component'>
<table class='table-content table-content-stripped table-auto-layout' id=''>
<thead>
</thead>
<tbody id='_table_body'>
<tr class='' id=''>
<th><span title="http://www.w3.org/2004/02/skos/core#narrower" data-controller="tooltip">skos:narrower</span></th>
<td><span><span class="mx-1">
<div class='chip-button-component-container' data-controller='tooltip'>
<a class='chip_button_container_clickable' data-controller='label-ajax' data-label-ajax-ajax-url-value='/ajax/classes/label' data-label-ajax-cls-id-url-value='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fd_0101' data-label-ajax-cls-id-value='http://opendata.inrae.fr/thesaurusINRAE/d_0101' data-label-ajax-ontology-acronym-value='Ontology' href='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fd_0101&language=EN' target='_blank'>
http://opendata.inrae.fr/thesaurusINRAE/d_0101
</a>
</div>
</span><span class="mx-1">
<div class='chip-button-component-container' data-controller='tooltip'>
<a class='chip_button_container_clickable' data-controller='label-ajax' data-label-ajax-ajax-url-value='/ajax/classes/label' data-label-ajax-cls-id-url-value='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fd_0103' data-label-ajax-cls-id-value='http://opendata.inrae.fr/thesaurusINRAE/d_0103' data-label-ajax-ontology-acronym-value='Ontology' href='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fd_0103&language=EN' target='_blank'>
http://opendata.inrae.fr/thesaurusINRAE/d_0103
</a>
</div>
</span><span class="mx-1">
<div class='chip-button-component-container' data-controller='tooltip'>
<a class='chip_button_container_clickable' data-controller='label-ajax' data-label-ajax-ajax-url-value='/ajax/classes/label' data-label-ajax-cls-id-url-value='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fd_0102' data-label-ajax-cls-id-value='http://opendata.inrae.fr/thesaurusINRAE/d_0102' data-label-ajax-ontology-acronym-value='Ontology' href='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fd_0102&language=EN' target='_blank'>
http://opendata.inrae.fr/thesaurusINRAE/d_0102
</a>
</div>
</span><span class="mx-1">
<div class='chip-button-component-container' data-controller='tooltip'>
<a class='chip_button_container_clickable' data-controller='label-ajax' data-label-ajax-ajax-url-value='/ajax/classes/label' data-label-ajax-cls-id-url-value='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fd_0104' data-label-ajax-cls-id-value='http://opendata.inrae.fr/thesaurusINRAE/d_0104' data-label-ajax-ontology-acronym-value='Ontology' href='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fd_0104&language=EN' target='_blank'>
http://opendata.inrae.fr/thesaurusINRAE/d_0104
</a>
</div>
</span><span class="mx-1">
<div class='chip-button-component-container' data-controller='tooltip'>
<a class='chip_button_container_clickable' data-controller='label-ajax' data-label-ajax-ajax-url-value='/ajax/classes/label' data-label-ajax-cls-id-url-value='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fd_0105' data-label-ajax-cls-id-value='http://opendata.inrae.fr/thesaurusINRAE/d_0105' data-label-ajax-ontology-acronym-value='Ontology' href='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fd_0105&language=EN' target='_blank'>
http://opendata.inrae.fr/thesaurusINRAE/d_0105
</a>
</div>
</span></span></td>
</tr>
<tr class='' id=''>
<th><span title="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" data-controller="tooltip">rdf:type</span></th>
<td><span><span class="mx-1">
<div class='chip-button-component-container' data-controller='tooltip'>
<a class='chip_button_container_clickable' data-controller='label-ajax' data-label-ajax-ajax-url-value='/ajax/classes/label' data-label-ajax-cls-id-url-value='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23Concept' data-label-ajax-cls-id-value='http://www.w3.org/2004/02/skos/core#Concept' data-label-ajax-ontology-acronym-value='Ontology' href='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23Concept&language=EN' target='_blank'>
http://www.w3.org/2004/02/skos/core#Concept
</a>
</div>
</span><span class="mx-1">
<div class='chip-button-component-container' data-controller='tooltip'>
<a class='chip_button_container_clickable' data-controller='label-ajax' data-label-ajax-ajax-url-value='/ajax/classes/label' data-label-ajax-cls-id-url-value='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23NamedIndividual' data-label-ajax-cls-id-value='http://www.w3.org/2002/07/owl#NamedIndividual' data-label-ajax-ontology-acronym-value='Ontology' href='/ontologies/Ontology?p=classes&conceptid=http%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23NamedIndividual&language=EN' target='_blank'>
http://www.w3.org/2002/07/owl#NamedIndividual
</a>
</div>
</span></span></td>
</tr>
<tr class='' id=''>
<th><span title="http://www.w3.org/2004/02/skos/core#prefLabel" data-controller="tooltip">skos:prefLabel</span></th>
<td><span>
<div>01. ENVIRONMENT [domain]</div>
</span></td>
</tr>
<tr class='' id=''>
<th><span title="http://purl.org/dc/terms/modified" data-controller="tooltip">dct:modified</span></th>
<td><span>
<div>February 24, 2021</div>
</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
properties = { links: nil,
context: nil,
"http://www.w3.org/2004/02/skos/core#narrower": ["http://opendata.inrae.fr/thesaurusINRAE/d_0101",
"http://opendata.inrae.fr/thesaurusINRAE/d_0103",
"http://opendata.inrae.fr/thesaurusINRAE/d_0102",
"http://opendata.inrae.fr/thesaurusINRAE/d_0104",
"http://opendata.inrae.fr/thesaurusINRAE/d_0105"],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": ["http://www.w3.org/2004/02/skos/core#Concept",
"http://www.w3.org/2002/07/owl#NamedIndividual"],
"http://www.w3.org/2004/02/skos/core#topConceptOf": ["http://opendata.inrae.fr/thesaurusINRAE/thesaurusINRAE"],
"http://www.w3.org/2004/02/skos/core#prefLabel": ["01. ENVIRONMENT [domain]"],
"http://www.w3.org/2004/02/skos/core#inScheme": ["http://opendata.inrae.fr/thesaurusINRAE/thesaurusINRAE"],
"http://purl.org/dc/terms/modified": ["2021-02-24T15:25:56"]
}
schemes_keys = %w[hasTopConcept topConceptOf]
label_xl_set = %w[skos-xl#prefLabel skos-xl#altLabel skos-xl#hiddenLabel]
render ConceptDetailsComponent.new(id: 'concept-details', acronym: "Ontology",
properties: OpenStruct.new(properties),
top_keys: %w[description comment],
bottom_keys: %w[disjoint subclass is_a has_part],
exclude_keys: schemes_keys + label_xl_set + ['inScheme']) do |c|
c.header(stripped: true) do |table|
table.add_row({ th: 'ID' }, { td: "http://opendata.inrae.fr/thesaurusINRAE/d_1" })
table.add_row({ th: 'Preferred Name' }, { td: "01. ENVIRONMENT [domain]" })
table.add_row({ th: 'Type' }, { td: "http://www.w3.org/2004/02/skos/core#Concept" })
end
end