| { |
| "@context": { |
| "@language": "en", |
| "@vocab": "https://schema.org/", |
| "cr": "http://mlcommons.org/croissant/", |
| "sc": "https://schema.org/", |
| "conformsTo": "cr:conformsTo", |
| "dataType": { "@id": "cr:dataType", "@type": "@vocab" }, |
| "extract": "cr:extract", |
| "fileObject": "cr:fileObject", |
| "field": "cr:field", |
| "jsonPath": "cr:jsonPath", |
| "recordSet": "cr:recordSet", |
| "source": "cr:source" |
| }, |
| "@type": "sc:Dataset", |
| "name": "InverseRelationsBenchmark", |
| "description": "Benchmark based on FewRel with original entity mentions and synthetic substitutions for robustness testing.", |
| "conformsTo": "http://mlcommons.org/croissant/1.0", |
| "distribution": [ |
| { |
| "@type": "cr:FileObject", |
| "@id": "#original_fewrel", |
| "name": "original_fewrel_inverse.json", |
| "contentUrl": "original_fewrel_inverse.json", |
| "encodingFormat": "application/json" |
| }, |
| { |
| "@type": "cr:FileObject", |
| "@id": "#synthetic_fewrel", |
| "name": "synthetic_fewrel_inverse.json", |
| "contentUrl": "synthetic_fewrel_inverse.json", |
| "encodingFormat": "application/json" |
| }, |
| { |
| "@type": "cr:FileObject", |
| "@id": "#fewrel_meta", |
| "name": "fewrel_inverse_relation_descriptions", |
| "contentUrl": "fewrel_inverse_relations.json", |
| "encodingFormat": "application/json" |
| } |
| ], |
| "recordSet": [ |
| { |
| "@type": "cr:RecordSet", |
| "name": "fewrel_records", |
| "description": "Records from the FewRel dataset distribution.", |
| "field": [ |
| { |
| "@type": "cr:Field", |
| "name": "head_to_tail", |
| "description": "The relation ID from head to tail.", |
| "dataType": "sc:Text", |
| "source": { |
| "fileObject": { "@id": "#original_fewrel" }, |
| "extract": { "jsonPath": "$[*].head_to_tail" } |
| } |
| }, |
| { |
| "@type": "cr:Field", |
| "name": "tail_to_head", |
| "description": "The inverse relation ID.", |
| "dataType": "sc:Text", |
| "source": { |
| "fileObject": { "@id": "#original_fewrel" }, |
| "extract": { "jsonPath": "$[*].tail_to_head" } |
| } |
| }, |
| { |
| "@type": "cr:Field", |
| "name": "tokens", |
| "description": "Tokenized sentence representation.", |
| "dataType": "sc:Text", |
| "source": { |
| "fileObject": { "@id": "#original_fewrel" }, |
| "extract": { "jsonPath": "$[*].tokens" } |
| } |
| }, |
| { |
| "@type": "cr:Field", |
| "name": "head", |
| "description": "Array containing [label, Wikidata ID, token indices] for the head entity.", |
| "dataType": "sc:Text", |
| "source": { |
| "fileObject": { "@id": "#original_fewrel" }, |
| "extract": { "jsonPath": "$[*].head" } |
| } |
| }, |
| { |
| "@type": "cr:Field", |
| "name": "tail", |
| "description": "Array containing [label, Wikidata ID, token indices] for the tail entity.", |
| "dataType": "sc:Text", |
| "source": { |
| "fileObject": { "@id": "#original_fewrel" }, |
| "extract": { "jsonPath": "$[*].tail" } |
| } |
| }, |
| { |
| "@type": "cr:Field", |
| "name": "artificial_data", |
| "description": "Mapping of original to synthetic entity names.", |
| "dataType": "sc:Text", |
| "source": { |
| "fileObject": { "@id": "#synthetic_fewrel" }, |
| "extract": { "jsonPath": "$[*].artificial_data" } |
| } |
| } |
| ] |
| }, |
| { |
| "@type": "cr:RecordSet", |
| "name": "relation_metadata", |
| "description": "Metadata for FewRel property IDs.", |
| "field": [ |
| { |
| "@type": "cr:Field", |
| "name": "pid", |
| "description": "The Wikidata property ID for the FewRel relation.", |
| "dataType": "sc:Text", |
| "source": { |
| "fileObject": { "@id": "#fewrel_meta" }, |
| "extract": { "jsonPath": "$[*].pid" } |
| } |
| }, |
| { |
| "@type": "cr:Field", |
| "name": "name", |
| "description": "The name of the relation.", |
| "dataType": "sc:Text", |
| "source": { |
| "fileObject": { "@id": "#fewrel_meta" }, |
| "extract": { "jsonPath": "$[*].name" } |
| } |
| }, |
| { |
| "@type": "cr:Field", |
| "name": "definition", |
| "description": "Semantic definition of the relation.", |
| "dataType": "sc:Text", |
| "source": { |
| "fileObject": { "@id": "#fewrel_meta" }, |
| "extract": { "jsonPath": "$[*].definition" } |
| } |
| } |
| ] |
| } |
| ] |
| } |