Skip to content

Commit

Permalink
Merge pull request #120 from juanjemdIos/Fair_Ontologies_New_Test
Browse files Browse the repository at this point in the history
template catalogue and readme
  • Loading branch information
dgarijo authored Oct 16, 2024
2 parents 77f7f17 + af82b99 commit 851d0d9
Show file tree
Hide file tree
Showing 4 changed files with 284 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
Files created by script "https://github.com/oeg-upm/foops_documentation_scripts/ttl_transformation.py".
The source is always the TTL file, and the result is a HTML file and a JSON-LD file, both with the same name as TTL file.

The main page displays the tests and metrics created from the ttl_transformation.py process, which are stored in doc/test.
This main page is generated by "https://github.com/oeg-upm/foops_documentation_scripts/ttl_catalog.py"
195 changes: 195 additions & 0 deletions doc/catalog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
<!DOCTYPE html>
<html>
<head>
<title>Foops catalogue</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<style>
.row {
margin-bottom: 10px;
}
.well {
margin: 0px;
padding: 10px 0;
padding-left: 10px;
}
.tag_div {
border-right: 10px solid white;
}
</style>
<script>
$(document).ready(function(){
$("#div_metric").hide();

$("#btn_metric").click(function(){
$("#div_test").hide();
$("#div_metric").show();
});

$("#btn_test").click(function(){
$("#div_metric").hide();
$("#div_test").show();
});
});
</script>
</head>
<body>
<div style="margin-top: 20px;">
<div class="row">
<div class="col-md-12" style="display: flex; justify-content: flex-end; margin-bottom: 10px;">
<button id="btn_test" type="button" class="btn btn-primary" style="margin-right: 10px;"">Test</button>
<button id="btn_metric" type="button" class="btn btn-primary" style="margin-right: 10px;"">Metric</button>
<button id="btn_about" type="button" class="btn btn-primary" style="margin-right: 10px;"">About</button>
</div>
</div>
<div id = "div_test" class="container">
<div class="row text-center">
<div class="col-md-12"> <h1>TEST CATALOGUE</h1>
<p style="text-align: center;"><h4> Here you can find the list of test that <a href="https://foops.linkeddata.es/FAIR_validator.html#"> FOOPS </a> of <a href="https://oeg.fi.upm.es"> Ontology Engineering Group (OEG) </a> is developing and publishing on the web.</h4></p>
</div>
</div>
<table class="table" style="margin-top: 30px;">
<thead>
<tr>
<th>Uri</th>
<th>Name</th>
<th>Title</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://w3id.org/foops/test/RDF1">https://w3id.org/foops/test/RDF1</a></td>
<td><strong>CN1</strong></td>
<td>Content negotiation for RDF</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/DOC1">https://w3id.org/foops/test/DOC1</a></td>
<td><strong>DOC1</strong></td>
<td>HTML availability</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/FIND1">https://w3id.org/foops/test/FIND1</a></td>
<td><strong>FIND1</strong></td>
<td>Ontology prefix</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/FIND2">https://w3id.org/foops/test/FIND2</a></td>
<td><strong>FIND2</strong></td>
<td>Prefix is in registry</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/FIND3">https://w3id.org/foops/test/FIND3</a></td>
<td><strong>FIND3</strong></td>
<td>Ontology in metadata registry</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/FIND_3_BIS">https://w3id.org/foops/test/FIND_3_BIS</a></td>
<td><strong>FIND_3_BIS</strong></td>
<td>Metadata are accessible, even when ontology is not</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/HTTP1">https://w3id.org/foops/test/HTTP1</a></td>
<td><strong>HTTP1</strong></td>
<td>Open protocol</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/OM1">https://w3id.org/foops/test/OM1</a></td>
<td><strong>OM1</strong></td>
<td>Minimum metadata</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/OM2">https://w3id.org/foops/test/OM2</a></td>
<td><strong>OM2</strong></td>
<td>Recommended metadata</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/OM3">https://w3id.org/foops/test/OM3</a></td>
<td><strong>OM3</strong></td>
<td>Detailed metadata</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/OM4.1">https://w3id.org/foops/test/OM4.1</a></td>
<td><strong>OM4.1</strong></td>
<td>License availability</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/OM4.2">https://w3id.org/foops/test/OM4.2</a></td>
<td><strong>OM4.2</strong></td>
<td>License is resolvable</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/OM5_1">https://w3id.org/foops/test/OM5_1</a></td>
<td><strong>OM5_1</strong></td>
<td>Basic provenance metadata</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/OM5_2">https://w3id.org/foops/test/OM5_2</a></td>
<td><strong>OM5_2</strong></td>
<td>Detailed provenance metadata</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/PURL1">https://w3id.org/foops/test/PURL1</a></td>
<td><strong>PURL1</strong></td>
<td>Persistent URL</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/URI1">https://w3id.org/foops/test/URI1</a></td>
<td><strong>URI1</strong></td>
<td>Ontology URI is resolvable</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/URI2">https://w3id.org/foops/test/URI2</a></td>
<td><strong>URI2</strong></td>
<td>Consistent ontology IDs</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/VER1">https://w3id.org/foops/test/VER1</a></td>
<td><strong>VER1</strong></td>
<td>Version IRI</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/VER2">https://w3id.org/foops/test/VER2</a></td>
<td><strong>VER2</strong></td>
<td>Version IRI resolves</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/VOC1">https://w3id.org/foops/test/VOC1</a></td>
<td><strong>VOC1</strong></td>
<td>Vocabulary reuse (metadata)</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/VOC2">https://w3id.org/foops/test/VOC2</a></td>
<td><strong>VOC2</strong></td>
<td>Vocabulary reuse</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/VOC3">https://w3id.org/foops/test/VOC3</a></td>
<td><strong>VOC3</strong></td>
<td>Documentation: labels</td>
</tr>
<tr>
<td><a href="https://w3id.org/foops/test/VOC4">https://w3id.org/foops/test/VOC4</a></td>
<td><strong>VOC4</strong></td>
<td>Documentation: definitions</td>
</tr>
</tbody>
</table>
</div>
<div id = "div_metric" class="container">
<div class="row text-center">
<div class="col-md-12"> <h1>TEST METRICS</h1>
<p style="text-align: center;"> <h4>Here you can find the list of metrics that the <a href="https://oeg.fi.upm.es"> Ontology Engineering Group (OEG) </a> is developing and publishing on the web.</h4></p>
</div>
</div>
</div>
</div>

<div id="pie" class="row" style="margin-top: 30px;">
<div class="col-md-12 text-center"">
Ontology Engineer Group
<a href="https://oeg.fi.upm.es" target="_blank">https://oeg.fi.upm.es</a>
</div>
</div>
</body>
</html>
87 changes: 87 additions & 0 deletions doc/template_catalog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<!DOCTYPE html>
<html>
<head>
<title>Foops catalogue</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<style>
.row {
margin-bottom: 10px;
}
.well {
margin: 0px;
padding: 10px 0;
padding-left: 10px;
}
.tag_div {
border-right: 10px solid white;
}
</style>
<script>
$(document).ready(function(){
$("#div_metric").hide();

$("#btn_metric").click(function(){
$("#div_test").hide();
$("#div_metric").show();
});

$("#btn_test").click(function(){
$("#div_metric").hide();
$("#div_test").show();
});
});
</script>
</head>
<body>
<div style="margin-top: 20px;">
<div class="row">
<div class="col-md-12" style="display: flex; justify-content: flex-end; margin-bottom: 10px;">
<button id="btn_test" type="button" class="btn btn-primary" style="margin-right: 10px;"">Test</button>
<button id="btn_metric" type="button" class="btn btn-primary" style="margin-right: 10px;"">Metric</button>
<button id="btn_about" type="button" class="btn btn-primary" style="margin-right: 10px;"">About</button>
</div>
</div>
<div id = "div_test" class="container">
<div class="row text-center">
<div class="col-md-12"> <h1>TEST CATALOGUE</h1>
<p style="text-align: center;"><h4> Here you can find the list of test that <a href="https://foops.linkeddata.es/FAIR_validator.html#"> FOOPS </a> of <a href="https://oeg.fi.upm.es"> Ontology Engineering Group (OEG) </a> is developing and publishing on the web.</h4></p>
</div>
</div>
<table class="table" style="margin-top: 30px;">
<thead>
<tr>
<th>Uri</th>
<th>Name</th>
<th>Title</th>
</tr>
</thead>
<tbody>
{{#tests}}
<tr>
<td><a href="{{identifier}}">{{identifier}}</a></td>
<td><strong>{{name}}</strong></td>
<td>{{title}}</td>
</tr>
{{/tests}}
</tbody>
</table>
</div>
<div id = "div_metric" class="container">
<div class="row text-center">
<div class="col-md-12"> <h1>TEST METRICS</h1>
<p style="text-align: center;"> <h4>Here you can find the list of metrics that the <a href="https://oeg.fi.upm.es"> Ontology Engineering Group (OEG) </a> is developing and publishing on the web.</h4></p>
</div>
</div>
</div>
</div>

<div id="pie" class="row" style="margin-top: 30px;">
<div class="col-md-12 text-center"">
Ontology Engineer Group
<a href="https://oeg.fi.upm.es" target="_blank">https://oeg.fi.upm.es</a>
</div>
</div>
</body>
</html>
File renamed without changes.

0 comments on commit 851d0d9

Please sign in to comment.