| { | |
| "@context": { | |
| "@language": "en", | |
| "@vocab": "https://schema.org/", | |
| "citeAs": "cr:citeAs", | |
| "column": "cr:column", | |
| "conformsTo": "dct:conformsTo", | |
| "cr": "http://mlcommons.org/croissant/", | |
| "rai": "http://mlcommons.org/croissant/RAI/", | |
| "data": { | |
| "@id": "cr:data", | |
| "@type": "@json" | |
| }, | |
| "dataType": { | |
| "@id": "cr:dataType", | |
| "@type": "@vocab" | |
| }, | |
| "dct": "http://purl.org/dc/terms/", | |
| "examples": { | |
| "@id": "cr:examples", | |
| "@type": "@json" | |
| }, | |
| "extract": "cr:extract", | |
| "field": "cr:field", | |
| "fileProperty": "cr:fileProperty", | |
| "fileObject": "cr:fileObject", | |
| "fileSet": "cr:fileSet", | |
| "format": "cr:format", | |
| "includes": "cr:includes", | |
| "isLiveDataset": "cr:isLiveDataset", | |
| "jsonPath": "cr:jsonPath", | |
| "key": "cr:key", | |
| "md5": "cr:md5", | |
| "parentField": "cr:parentField", | |
| "path": "cr:path", | |
| "recordSet": "cr:recordSet", | |
| "references": "cr:references", | |
| "regex": "cr:regex", | |
| "repeated": "cr:repeated", | |
| "replace": "cr:replace", | |
| "sc": "https://schema.org/", | |
| "separator": "cr:separator", | |
| "source": "cr:source", | |
| "subField": "cr:subField", | |
| "transform": "cr:transform" | |
| }, | |
| "@type": "sc:Dataset", | |
| "name": "NL-DIR", | |
| "description": "Natural Language-Based Document Image Retrieval", | |
| "conformsTo": "http://mlcommons.org/croissant/1.0", | |
| "license": "https://choosealicense.com/licenses/cc-by-nc-sa-4.0/", | |
| "url": "https://huggingface.co/datasets/nianbing/NL-DIR-sample", | |
| "distribution": [ | |
| { | |
| "@type": "cr:FileObject", | |
| "@id": "sample", | |
| "name": "sample.json", | |
| "description": "The JSON file containing the queries and image paths", | |
| "contentUrl": "sample.json", | |
| "encodingFormat": "application/json", | |
| "sha256": "2c08bb77f504e79515b4245f4fc931335770a07b2c4479c9066bee005ce38031" | |
| } | |
| ], | |
| "recordSet": [ | |
| { | |
| "@type": "cr:RecordSet", | |
| "@id": "NL-DIR", | |
| "name": "NL-DIR", | |
| "description": "Natural Language-Based Document Image Retrieval", | |
| "field": [ | |
| { | |
| "@type": "cr:Field", | |
| "@id": "NL-DIR/image_path", | |
| "name": "image_path", | |
| "description": "The path to the image associated with the queries", | |
| "dataType": "sc:Text", | |
| "source": { | |
| "fileObject": { | |
| "@id": "sample" | |
| }, | |
| "extract": { | |
| "jsonPath": "$.image_path" | |
| } | |
| } | |
| }, | |
| { | |
| "@type": "cr:Field", | |
| "@id": "NL-DIR/queries", | |
| "name": "queries", | |
| "description": "queries text", | |
| "dataType": "sc:Text", | |
| "source": { | |
| "fileObject": { | |
| "@id": "sample" | |
| }, | |
| "extract": { | |
| "jsonPath": "$.queries[*]" | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| ] | |
| } |