Skip to content

Commit

Permalink
added relations and example
Browse files Browse the repository at this point in the history
  • Loading branch information
EmidioStani committed Jun 18, 2024
1 parent c030497 commit 1930d74
Show file tree
Hide file tree
Showing 11 changed files with 7,118 additions and 18,327 deletions.
19 changes: 15 additions & 4 deletions releases/2.0.0/context/mldcat-ap.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@
"@id": "http://purl.org/dc/terms/type",
"@type": "@id"
},
"HexBinary": "http://www.w3.org/2001/XMLSchema#hexBinary",
"ImageObject": "http://data.europa.eu/m8g/ImageObject",
"Integer": "http://www.w3.org/2001/XMLSchema#integer",
"Library": "http://openml.org/openml#Library",
"Library.title": {
"@id": "http://purl.org/dc/terms/title"
Expand Down Expand Up @@ -532,6 +534,11 @@
"@id": "http://openml.org/openml#hasOutputFilePrediction",
"@type": "@id"
},
"MachineLearningModel.hasPrediction": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/hasPrediction",
"@type": "@id"
},
"MachineLearningModel.hasProvider": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/hasProvider",
Expand Down Expand Up @@ -587,12 +594,18 @@
"MachineLearningModel.name": {
"@id": "http://purl.org/dc/terms/title"
},
"MachineLearningModel.runnedOn": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/runnedOn",
"@type": "@id"
},
"MachineLearningModel.testedOn": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/testedOn",
"@type": "@id"
},
"MachineLearningModel.trainedOn": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/trainedOn",
"@type": "@id"
},
Expand All @@ -614,6 +627,7 @@
},
"Measure": "http://openml.org/openml#Measure",
"MediaTypeOrExtent": "http://purl.org/dc/terms/MediaTypeOrExtent",
"NonNegativeInteger": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
"OutputFileDescription": "http://openml.org/openml#OutputFileDescription",
"OutputFileDescription.id": {
"@id": "http://purl.org/dc/terms/identifier"
Expand Down Expand Up @@ -906,9 +920,6 @@
"TaskType.title": {
"@id": "http://purl.org/dc/terms/title"
},
"TemporalLiteral": "http://www.w3.org/2000/01/rdf-schema#Literal",
"Xsd:hexBinary": "http://www.w3.org/2001/XMLSchema#hexBinary",
"Xsd:integer": "http://www.w3.org/2001/XMLSchema#integer",
"Xsd:nonNegativeInteger": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
"TemporalLiteral": "http://www.w3.org/2000/01/rdf-schema#Literal"
}
}
19 changes: 15 additions & 4 deletions releases/2.0.0/context/mldcat-ap_en.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@
"@id": "http://purl.org/dc/terms/type",
"@type": "@id"
},
"HexBinary": "http://www.w3.org/2001/XMLSchema#hexBinary",
"ImageObject": "http://data.europa.eu/m8g/ImageObject",
"Integer": "http://www.w3.org/2001/XMLSchema#integer",
"Library": "http://openml.org/openml#Library",
"Library.title": {
"@id": "http://purl.org/dc/terms/title"
Expand Down Expand Up @@ -532,6 +534,11 @@
"@id": "http://openml.org/openml#hasOutputFilePrediction",
"@type": "@id"
},
"MachineLearningModel.hasPrediction": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/hasPrediction",
"@type": "@id"
},
"MachineLearningModel.hasProvider": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/hasProvider",
Expand Down Expand Up @@ -587,12 +594,18 @@
"MachineLearningModel.name": {
"@id": "http://purl.org/dc/terms/title"
},
"MachineLearningModel.runnedOn": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/runnedOn",
"@type": "@id"
},
"MachineLearningModel.testedOn": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/testedOn",
"@type": "@id"
},
"MachineLearningModel.trainedOn": {
"@container": "@set",
"@id": "http://data.europa.eu/m8g/trainedOn",
"@type": "@id"
},
Expand All @@ -614,6 +627,7 @@
},
"Measure": "http://openml.org/openml#Measure",
"MediaTypeOrExtent": "http://purl.org/dc/terms/MediaTypeOrExtent",
"NonNegativeInteger": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
"OutputFileDescription": "http://openml.org/openml#OutputFileDescription",
"OutputFileDescription.id": {
"@id": "http://purl.org/dc/terms/identifier"
Expand Down Expand Up @@ -906,9 +920,6 @@
"TaskType.title": {
"@id": "http://purl.org/dc/terms/title"
},
"TemporalLiteral": "http://www.w3.org/2000/01/rdf-schema#Literal",
"Xsd:hexBinary": "http://www.w3.org/2001/XMLSchema#hexBinary",
"Xsd:integer": "http://www.w3.org/2001/XMLSchema#integer",
"Xsd:nonNegativeInteger": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
"TemporalLiteral": "http://www.w3.org/2000/01/rdf-schema#Literal"
}
}
2 changes: 1 addition & 1 deletion releases/2.0.0/html/examples/example-dataset.jsonld
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@context": "https://semiceu.github.io/MLDCAT-AP/releases/1.0.0/context/mldcat-ap.jsonld",
"@context": "https://semiceu.github.io/MLDCAT-AP/releases/2.0.0/context/mldcat-ap.jsonld",
"@graph": [
{
"@id": "http://openml.org/openml/dataset/31",
Expand Down
67 changes: 67 additions & 0 deletions releases/2.0.0/html/examples/example-machinelearningmodel.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"@context": [
"https://semiceu.github.io/MLDCAT-AP/releases/2.0.0/context/mldcat-ap.jsonld",
{
"biro" : "http://purl.org/spar/biro/",
"cv" : "http://data.europa.eu/m8g/",
"openml" : "http://openml.org/openml#",
"lpwc" : "https://linkedpaperswithcode.com/class/",
"Xsd" : "http://www.w3.org/2001/XMLSchema#",
}
],
"@graph": [
{
"@id": "https://huggingface.co/bigscience/bloomz-7b1",
"@type": "MachineLearningModel",
"MachineLearningModel.created" : {
"@value": "2024-02-22T09:05:04",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"MachineLearningModel.hasOutputFilePrediction" : "https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors",
"MachineLearningModel.hasRepository" : "https://huggingface.co/bigscience/bloomz-7b1/tree/main",
"MachineLearningModel.hasBibliographicReference" : "http://example.com/BibliographicReference/1",
"MachineLearningModel.hasUploader" : "https://huggingface.co/Muennighoff",
"MachineLearningModel.intendedUse" : "We recommend using the model to perform tasks expressed in natural language. For example, given the prompt \"Translate to English: Je t’aime.\", the model will most likely answer \"I love you.\". Some prompt ideas from our paper:\n一个传奇的开端,一个不灭的神话,这不仅仅是一部电影,而是作为一个走进新时代的标签,永远彪炳史册。你认为这句话的立场是赞扬、中立还是批评?\nSuggest at least five related search terms to \"Mạng neural nhân tạo\".\nWrite a fairy tale about a troll saving a princess from a dangerous dragon. The fairy tale is a masterpiece that has achieved praise worldwide and its moral is \"Heroes Come in All Shapes and Sizes\". Story (in Spanish):\nExplain in a sentence in Telugu what is backpropagation in neural networks.\nFeel free to share your generations in the Community tab!",
"MachineLearningModel.licence" : "https://huggingface.co/spaces/bigscience/license",
"MachineLearningModel.limitations" : "Prompt Engineering: The performance may vary depending on the prompt. For BLOOMZ models, we recommend making it very clear when the input stops to avoid the model trying to continue it. For example, the prompt \"Translate to English: Je t'aime\" without the full stop (.) at the end, may result in the model trying to continue the French sentence. Better prompts are e.g. \"Translate to English: Je t'aime.\", \"Translate to English: Je t'aime. Translation:\" \"What is \"Je t'aime.\" in English?\", where it is clear for the model when it should answer. Further, we recommend providing the model as much context as possible. For example, if you want it to answer in Telugu, then tell the model, e.g. \"Explain in a sentence in Telugu what is backpropagation in neural networks.\".",
"MachineLearningModel.name": "bloomz-7b1",
"MachineLearningModel.trainedOn" : ["https://huggingface.co/datasets/bigscience/xP3","https://huggingface.co/datasets/bigscience/xP3all"],
"MachineLearningModel.version": "1.0.0"
},
{
"@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"
},
{
"@id": "https://huggingface.co/bigscience/bloomz-7b1/tree/main",
"@type": "Repository",
"Repository.hasFile" : "https://huggingface.co/bigscience/bloomz-7b1/blob/main/model.safetensors"
},
{
"@id": "http://example.com/BibliographicReference/1",
"@type": "BibliographicReference",
"BibliographicReference.bibliographicCitation" : "@article{muennighoff2022crosslingual,\ntitle={Crosslingual generalization through multitask finetuning},\nauthor={Muennighoff, Niklas and Wang, Thomas and Sutawika, Lintang and Roberts, Adam and Biderman, Stella and Scao, Teven Le and Bari, M Saiful and Shen, Sheng and Yong, Zheng-Xin and Schoelkopf, Hailey and others},\njournal={arXiv preprint arXiv:2211.01786},\nyear={2022}}",
"BibliographicReference.format" : "http://example.com/format/BibTeX",
"BibliographicReference.references" : "https://arxiv.org/abs/2211.01786"
},
{
"@id": "https://arxiv.org/abs/2211.01786",
"@type": "Paper",
"Paper.date" : {
"@value": "2023-05-29",
"@type": "http://www.w3.org/2001/XMLSchema#date"
},
"Paper.hasDocument" : "https://arxiv.org/pdf/2211.01786",
"Paper.title" : "Crosslingual Generalization through Multitask Finetuning"
},
{
"@id" : "https://huggingface.co/Muennighoff",
"@type": "Agent",
"Agent.name": "Niklas Muennighoff"
}
]
}
51 changes: 51 additions & 0 deletions releases/2.0.0/html/examples/example-machinelearningmodel.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@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/> .

<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> ;
cv:hasRepository <https://huggingface.co/bigscience/bloomz-7b1/tree/main> ;
cv:hasBibliographicReference <http://example.com/BibliographicReference/1> ;
openml:hasUploader <https://huggingface.co/Muennighoff> ;
openml:intendedUse """We recommend using the model to perform tasks expressed in natural language. For example, given the prompt "Translate to English: Je t’aime.", the model will most likely answer "I love you.". Some prompt ideas from our paper:
一个传奇的开端,一个不灭的神话,这不仅仅是一部电影,而是作为一个走进新时代的标签,永远彪炳史册。你认为这句话的立场是赞扬、中立还是批评?
Suggest at least five related search terms to "Mạng neural nhân tạo".
Write a fairy tale about a troll saving a princess from a dangerous dragon. The fairy tale is a masterpiece that has achieved praise worldwide and its moral is "Heroes Come in All Shapes and Sizes". Story (in Spanish):
Explain in a sentence in Telugu what is backpropagation in neural networks.
Feel free to share your generations in the Community tab!""" ;
dcterms:license <https://huggingface.co/spaces/bigscience/license> ;
openml:limitations "Prompt Engineering: The performance may vary depending on the prompt. For BLOOMZ models, we recommend making it very clear when the input stops to avoid the model trying to continue it. For example, the prompt \"Translate to English: Je t'aime\" without the full stop (.) at the end, may result in the model trying to continue the French sentence. Better prompts are e.g. \"Translate to English: Je t'aime.\", \"Translate to English: Je t'aime. Translation:\" \"What is \"Je t'aime.\" in English?\", where it is clear for the model when it should answer. Further, we recommend providing the model as much context as possible. For example, if you want it to answer in Telugu, then tell the model, e.g. \"Explain in a sentence in Telugu what is backpropagation in neural networks.\"." ;
dcterms:title "bloomz-7b1" ;
cv:trainedOn <https://huggingface.co/datasets/bigscience/xP3>, <https://huggingface.co/datasets/bigscience/xP3all> ;
openml:version "1.0.0" ;
a cv:MachineLearningModel .

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

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

<http://example.com/BibliographicReference/1> dcterms:bibliographicCitation """@article{muennighoff2022crosslingual,
title={Crosslingual generalization through multitask finetuning},
author={Muennighoff, Niklas and Wang, Thomas and Sutawika, Lintang and Roberts, Adam and Biderman, Stella and Scao, Teven Le and Bari, M Saiful and Shen, Sheng and Yong, Zheng-Xin and Schoelkopf, Hailey and others},
journal={arXiv preprint arXiv:2211.01786},
year={2022}}""" ;
dcterms:format "http://example.com/format/BibTeX" ;
dcterms:references <https://arxiv.org/abs/2211.01786> ;
a biro:BibliographicReference .

<https://arxiv.org/abs/2211.01786> dcterms:date "2023-05-29"^^xsd:date ;
cv:hasDocument <https://arxiv.org/pdf/2211.01786> ;
dcterms:title "Crosslingual Generalization through Multitask Finetuning" ;
a lpwc:paper .

<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.
Loading

0 comments on commit 1930d74

Please sign in to comment.