Skip to content

Commit

Permalink
improving example and fix uri
Browse files Browse the repository at this point in the history
  • Loading branch information
EmidioStani committed Jun 19, 2024
1 parent b702f2f commit 7c6d396
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 24 deletions.
2 changes: 1 addition & 1 deletion releases/2.0.0/context/mldcat-ap.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
"Catalogue.keyword": {
"@container": "@set",
"@id": "https://www.w3.org/ns/dcat#keyword"
"@id": "http://www.w3.org/ns/dcat#keyword"
},
"Catalogue.licence": {
"@id": "http://purl.org/dc/terms/license",
Expand Down
2 changes: 1 addition & 1 deletion releases/2.0.0/context/mldcat-ap_en.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
"Catalogue.keyword": {
"@container": "@set",
"@id": "https://www.w3.org/ns/dcat#keyword"
"@id": "http://www.w3.org/ns/dcat#keyword"
},
"Catalogue.licence": {
"@id": "http://purl.org/dc/terms/license",
Expand Down
39 changes: 31 additions & 8 deletions releases/2.0.0/html/examples/example-machinelearningmodel.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"cv" : "http://data.europa.eu/m8g/",
"openml" : "http://openml.org/openml#",
"lpwc" : "https://linkedpaperswithcode.com/class/",
"Xsd" : "http://www.w3.org/2001/XMLSchema#",
"spdx" : "http://spdx.org/rdf/terms#",
"xsd" : "http://www.w3.org/2001/XMLSchema#",
}
],
"@graph": [
Expand All @@ -15,9 +16,9 @@
"@type": "MachineLearningModel",
"MachineLearningModel.created" : {
"@value": "2024-02-22T09:05:04",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
"@type": "xsd:dateTime"
},
"MachineLearningModel.hasOutputFilePrediction" : "https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors",
"MachineLearningModel.hasOutputFilePrediction" : ["https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors","https://huggingface.co/bigscience/bloomz-7b1/blob/main/pytorch_model.bin"],
"MachineLearningModel.hasRepository" : "https://huggingface.co/bigscience/bloomz-7b1/tree/main",
"MachineLearningModel.hasBibliographicReference" : "http://example.com/BibliographicReference/1",
"MachineLearningModel.hasUploader" : "https://huggingface.co/Muennighoff",
Expand All @@ -32,14 +33,36 @@
"@id" : "https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors",
"@type": "OutputFilePrediction",
"OutputFilePrediction.format": "http://example.com/format/safetensors",
"OutputFilePrediction.identifier" : "bloomz-7b1-safetensors",
"OutputFilePrediction.title" : "model.safetensors",
"OutputFilePrediction.url" : "https://huggingface.co/bigscience/bloomz-7b1/resolve/main/model.safetensors"
"OutputFilePrediction.identifier" : "bloomz-7b1.safetensors",
"OutputFilePrediction.title" : "bloomz-7b1 safetensors format",
"OutputFilePrediction.url" : "https://huggingface.co/bigscience/bloomz-7b1/resolve/main/model.safetensors",
"OutputFilePrediction.checksum" : "http://example.com/Checksum/1"
},
{
"@id": "http://example.com/Checksum/1",
"@type": "Checksum",
"Checksum.checksumValue" : "4e1e2bdcc97ec356cc92130d3802c81a324e9840b0ed417a9342ea728aa1d369",
"Checksum.algorithm" : "http://spdx.org/rdf/terms#checksumAlgorithm_sha256"
},
{
"@id" : "https://huggingface.co/bigscience/bloomz-7b1/blob/main/pytorch_model.bin",
"@type": "OutputFilePrediction",
"OutputFilePrediction.format": "http://example.com/format/pytorch",
"OutputFilePrediction.identifier" : "bloomz-7b1-pytorch",
"OutputFilePrediction.title" : "bloomz-7b1 pytorch format",
"OutputFilePrediction.url" : "https://huggingface.co/bigscience/bloomz-7b1/resolve/main/pytorch_model.bin",
"OutputFilePrediction.checksum" : "http://example.com/Checksum/2"
},
{
"@id": "http://example.com/Checksum/2",
"@type": "Checksum",
"Checksum.checksumValue" : "d1f5d9fc449dd5fbe045f62c609e2b70f63d2e63faf74d7e0adb895dc294f28e",
"Checksum.algorithm" : "http://spdx.org/rdf/terms#checksumAlgorithm_sha256"
},
{
"@id": "https://huggingface.co/bigscience/bloomz-7b1/tree/main",
"@type": "Repository",
"Repository.hasFile" : "https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors"
"Repository.hasFile" : ["https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors","https://huggingface.co/bigscience/bloomz-7b1/blob/main/pytorch_model.bin"]
},
{
"@id": "http://example.com/BibliographicReference/1",
Expand All @@ -53,7 +76,7 @@
"@type": "Paper",
"Paper.date" : {
"@value": "2023-05-29",
"@type": "http://www.w3.org/2001/XMLSchema#date"
"@type": "xsd:date"
},
"Paper.hasDocument" : "https://arxiv.org/pdf/2211.01786",
"Paper.title" : "Crosslingual Generalization through Multitask Finetuning"
Expand Down
31 changes: 24 additions & 7 deletions releases/2.0.0/html/examples/example-machinelearningmodel.ttl
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix biro: <http://purl.org/spar/biro/> .
@prefix cv: <http://data.europa.eu/m8g/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix cv: <http://data.europa.eu/m8g/> .
@prefix openml: <http://openml.org/openml#> .
@prefix lpwc: <https://linkedpaperswithcode.com/class/> .
@prefix biro: <http://purl.org/spar/biro/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix spdx: <http://spdx.org/rdf/terms#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://huggingface.co/bigscience/bloomz-7b1> dcterms:created "2024-02-22T09:05:04"^^xsd:dateTime ;
openml:hasOutputFilePrediction <https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors> ;
openml:hasOutputFilePrediction <https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors>, <https://huggingface.co/bigscience/bloomz-7b1/blob/main/pytorch_model.bin> ;
cv:hasRepository <https://huggingface.co/bigscience/bloomz-7b1/tree/main> ;
cv:hasBibliographicReference <http://example.com/BibliographicReference/1> ;
openml:hasUploader <https://huggingface.co/Muennighoff> ;
Expand All @@ -26,11 +27,26 @@ Feel free to share your generations in the Community tab!""" ;
a cv:MachineLearningModel .

<https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors> dcterms:format <http://example.com/format/safetensors> ;
dcterms:title "model.safetensors" ;
dcterms:title "bloomz-7b1 safetensors format" ;
openml:url <https://huggingface.co/bigscience/bloomz-7b1/resolve/main/model.safetensors> ;
spdx:checksum <http://example.com/Checksum/1> ;
a openml:OutputFilePrediction .

<http://example.com/Checksum/1> spdx:checksumValue "4e1e2bdcc97ec356cc92130d3802c81a324e9840b0ed417a9342ea728aa1d369"^^xsd:hexBinary ;
spdx:algorithm spdx:checksumAlgorithm_sha256 ;
a spdx:Checksum .

<https://huggingface.co/bigscience/bloomz-7b1/blob/main/pytorch_model.bin> dcterms:format <http://example.com/format/pytorch> ;
dcterms:title "bloomz-7b1 pytorch format" ;
openml:url <https://huggingface.co/bigscience/bloomz-7b1/resolve/main/pytorch_model.bin> ;
spdx:checksum <http://example.com/Checksum/2> ;
a openml:OutputFilePrediction .

<https://huggingface.co/bigscience/bloomz-7b1/tree/main> cv:hasFile <https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors> ;
<http://example.com/Checksum/2> spdx:checksumValue "d1f5d9fc449dd5fbe045f62c609e2b70f63d2e63faf74d7e0adb895dc294f28e"^^xsd:hexBinary ;
spdx:algorithm spdx:checksumAlgorithm_sha256 ;
a spdx:Checksum .

<https://huggingface.co/bigscience/bloomz-7b1/tree/main> cv:hasFile <https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors>, <https://huggingface.co/bigscience/bloomz-7b1/blob/main/pytorch_model.bin> ;
a lpwc:repository .

<http://example.com/BibliographicReference/1> dcterms:bibliographicCitation """@article{muennighoff2022crosslingual,
Expand All @@ -49,3 +65,4 @@ year={2022}}""" ;

<https://huggingface.co/Muennighoff> foaf:name "Niklas Muennighoff" ;
a foaf:Agent .

Binary file modified releases/2.0.0/html/overview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions releases/2.0.0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ <h3 id="Catalogue">

<tr id="Catalogue.keyword"
typeof="rdfs:Property"
resource="https://www.w3.org/ns/dcat#keyword"
resource="http://www.w3.org/ns/dcat#keyword"
class="class mandatory">
<td>
<a href="https://github.com/SEMICeu/MLDCAT-AP/issues/new?title=Issue%20for%20keyword%20in%20Catalogue&body=Explain%20your%20issue%20for%20https://semiceu.github.io/MLDCAT-AP/releases/2.0.0%23Catalogue.keyword" target="_blank" rel="noopener noreferrer" >
Expand All @@ -935,9 +935,9 @@ <h3 id="Catalogue">
</a>
</td>
<td>
<a href="https://www.w3.org/ns/dcat#keyword"
<a href="http://www.w3.org/ns/dcat#keyword"
data-toggle="tooltip"
data-content="https://www.w3.org/ns/dcat#keyword"
data-content="http://www.w3.org/ns/dcat#keyword"
data-placement="right">
keyword</a>
</td>
Expand Down Expand Up @@ -14712,7 +14712,7 @@ <h2>Quick Reference of Classes and Properties</h2>
<td><div class="shorten">http://www.w3.org/ns/dcat#Catalog</div></td>
<td></td>
<td><a href="#Catalogue.keyword">keyword </a></td>
<td><div class="shorten">https://www.w3.org/ns/dcat#keyword</div></td>
<td><div class="shorten">http://www.w3.org/ns/dcat#keyword</div></td>
</tr>


Expand Down
2 changes: 1 addition & 1 deletion releases/2.0.0/shacl/mldcat-ap-SHACL.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -4606,7 +4606,7 @@
"en": "keyword"
},
"sh:nodeKind": "sh:Literal",
"sh:path": "https://www.w3.org/ns/dcat#keyword"
"sh:path": "http://www.w3.org/ns/dcat#keyword"
},
{
"@id": "https://semiceu.github.io/MLDCAT-AP/releases/2.0.0/shacl/mldcat-ap-SHACL.ttl#CatalogShape/67dcdb36167ca7969c0532898e11a98e9c2a80f5",
Expand Down
2 changes: 1 addition & 1 deletion releases/2.0.0/shacl/mldcat-ap-SHACL.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
shacl:description "A keyword or tag describing the resource."@en;
shacl:name "keyword"@en;
shacl:nodeKind shacl:Literal;
shacl:path <https://www.w3.org/ns/dcat#keyword> .
shacl:path dcat:keyword .

<https://semiceu.github.io/MLDCAT-AP/releases/2.0.0/shacl/mldcat-ap-SHACL.ttl#CatalogShape/67dcdb36167ca7969c0532898e11a98e9c2a80f5> rdfs:seeAlso "https://semiceu.github.io/MLDCAT-AP/releases/2.0.0#Catalogue.publisher";
shacl:description "This property refers to an entity (organisation) responsible for making the resource available."@en;
Expand Down
2 changes: 1 addition & 1 deletion releases/2.0.0/shacl/mldcat-ap-SHACL_en.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -4606,7 +4606,7 @@
"en": "keyword"
},
"sh:nodeKind": "sh:Literal",
"sh:path": "https://www.w3.org/ns/dcat#keyword"
"sh:path": "http://www.w3.org/ns/dcat#keyword"
},
{
"@id": "https://semiceu.github.io/MLDCAT-AP/releases/2.0.0/shacl/mldcat-ap-SHACL.ttl#CatalogShape/67dcdb36167ca7969c0532898e11a98e9c2a80f5",
Expand Down

0 comments on commit 7c6d396

Please sign in to comment.