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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"@context": {
|
| 3 |
+
"@language": "en",
|
| 4 |
+
"@vocab": "https://schema.org/",
|
| 5 |
+
"citeas": "cr:citeAs",
|
| 6 |
+
"column": "cr:column",
|
| 7 |
+
"conformsTo": "cr:conformsTo",
|
| 8 |
+
"cr": "http://mlcommons.org/croissant/",
|
| 9 |
+
"data": { "@id": "cr:data", "@type": "@json" },
|
| 10 |
+
"dataType": { "@id": "cr:dataType", "@type": "@vocab" },
|
| 11 |
+
"extract": "cr:extract",
|
| 12 |
+
"field": "cr:field",
|
| 13 |
+
"fileObject": "cr:fileObject",
|
| 14 |
+
"fileSet": "cr:fileSet",
|
| 15 |
+
"format": "cr:format",
|
| 16 |
+
"includes": "cr:includes",
|
| 17 |
+
"isLiveDataset": "cr:isLiveDataset",
|
| 18 |
+
"jsonPath": "cr:jsonPath",
|
| 19 |
+
"key": "cr:key",
|
| 20 |
+
"md5": "cr:md5",
|
| 21 |
+
"parentField": "cr:parentField",
|
| 22 |
+
"path": "cr:path",
|
| 23 |
+
"recordSet": "cr:recordSet",
|
| 24 |
+
"references": "cr:references",
|
| 25 |
+
"reltype": "cr:reltype",
|
| 26 |
+
"sc": "https://schema.org/",
|
| 27 |
+
"source": "cr:source",
|
| 28 |
+
"structure": "cr:structure",
|
| 29 |
+
"variable": "cr:variable"
|
| 30 |
+
},
|
| 31 |
+
"@type": "sc:Dataset",
|
| 32 |
+
"name": "InverseRelationsBenchmark",
|
| 33 |
+
"description": "Comprehensive benchmark including FewRel and TekGen datasets with original entity mentions and artificial substitutions for robustness testing.",
|
| 34 |
+
"conformsTo": "http://mlcommons.org/croissant/1.0",
|
| 35 |
+
"distribution": [
|
| 36 |
+
{
|
| 37 |
+
"@type": "cr:FileObject",
|
| 38 |
+
"@id": "original_fewrel",
|
| 39 |
+
"name": "original_fewrel_inverse.json",
|
| 40 |
+
"contentUrl": "original_fewrel_inverse.json",
|
| 41 |
+
"encodingFormat": "application/json"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"@type": "cr:FileObject",
|
| 45 |
+
"@id": "artificial_fewrel",
|
| 46 |
+
"name": "artificial_fewrel_inverse.json",
|
| 47 |
+
"contentUrl": "artificial_fewrel_inverse.json",
|
| 48 |
+
"encodingFormat": "application/json"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"@type": "cr:FileObject",
|
| 52 |
+
"@id": "original_tekgen",
|
| 53 |
+
"name": "original_tekgen_inverse.json",
|
| 54 |
+
"contentUrl": "original_tekgen_inverse.json",
|
| 55 |
+
"encodingFormat": "application/json"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"@type": "cr:FileObject",
|
| 59 |
+
"@id": "artificial_tekgen",
|
| 60 |
+
"name": "artificial_tekgen_inverse.json",
|
| 61 |
+
"contentUrl": "artificial_tekgen_inverse.json",
|
| 62 |
+
"encodingFormat": "application/json"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"@type": "cr:FileObject",
|
| 66 |
+
"@id": "fewrel_meta",
|
| 67 |
+
"name": "fewrel_inverse_relations.json",
|
| 68 |
+
"contentUrl": "fewrel_inverse_relations.json",
|
| 69 |
+
"encodingFormat": "application/json"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"@type": "cr:FileObject",
|
| 73 |
+
"@id": "tekgen_meta",
|
| 74 |
+
"name": "tekgen_relations.json",
|
| 75 |
+
"contentUrl": "tekgen_relations.json",
|
| 76 |
+
"encodingFormat": "application/json"
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"recordSet": [
|
| 80 |
+
{
|
| 81 |
+
"@type": "cr:RecordSet",
|
| 82 |
+
"name": "fewrel_records",
|
| 83 |
+
"description": "Records from the FewRel dataset distribution.",
|
| 84 |
+
"field": [
|
| 85 |
+
{
|
| 86 |
+
"@type": "cr:Field",
|
| 87 |
+
"name": "head_to_tail",
|
| 88 |
+
"description": "The relation ID from head to tail.",
|
| 89 |
+
"dataType": "sc:Text",
|
| 90 |
+
"source": { "fileObject": { "@id": "original_fewrel" }, "extract": { "jsonPath": "$[*].head_to_tail" } }
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"@type": "cr:Field",
|
| 94 |
+
"name": "tail_to_head",
|
| 95 |
+
"description": "The inverse relation ID.",
|
| 96 |
+
"dataType": "sc:Text",
|
| 97 |
+
"source": { "fileObject": { "@id": "original_fewrel" }, "extract": { "jsonPath": "$[*].tail_to_head" } }
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"@type": "cr:Field",
|
| 101 |
+
"name": "tokens",
|
| 102 |
+
"description": "Tokenized sentence representation.",
|
| 103 |
+
"dataType": "sc:Text",
|
| 104 |
+
"source": { "fileObject": { "@id": "original_fewrel" }, "extract": { "jsonPath": "$[*].tokens" } }
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"@type": "cr:Field",
|
| 108 |
+
"name": "head",
|
| 109 |
+
"description": "Array containing [label, Wikidata ID, token indices] for the head entity.",
|
| 110 |
+
"dataType": "sc:Text",
|
| 111 |
+
"source": { "fileObject": { "@id": "original_fewrel" }, "extract": { "jsonPath": "$[*].head" } }
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"@type": "cr:Field",
|
| 115 |
+
"name": "tail",
|
| 116 |
+
"description": "Array containing [label, Wikidata ID, token indices] for the tail entity.",
|
| 117 |
+
"dataType": "sc:Text",
|
| 118 |
+
"source": { "fileObject": { "@id": "original_fewrel" }, "extract": { "jsonPath": "$[*].tail" } }
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"@type": "cr:Field",
|
| 122 |
+
"name": "relation_prop_wiki",
|
| 123 |
+
"description": "Full Wikidata URI properties for the relation.",
|
| 124 |
+
"dataType": "sc:Text",
|
| 125 |
+
"source": { "fileObject": { "@id": "original_fewrel" }, "extract": { "jsonPath": "$[*].relation_prop_wiki" } }
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"@type": "cr:Field",
|
| 129 |
+
"name": "artificial_data",
|
| 130 |
+
"description": "Mapping of Original to Artifical entity names.",
|
| 131 |
+
"dataType": "sc:Text",
|
| 132 |
+
"source": { "fileObject": { "@id": "artificial_fewrel" }, "extract": { "jsonPath": "$[*].artificial_data" } }
|
| 133 |
+
}
|
| 134 |
+
]
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"@type": "cr:RecordSet",
|
| 138 |
+
"name": "tekgen_records",
|
| 139 |
+
"description": "Records from the TekGen dataset distribution.",
|
| 140 |
+
"field": [
|
| 141 |
+
{
|
| 142 |
+
"@type": "cr:Field",
|
| 143 |
+
"name": "id",
|
| 144 |
+
"description": "Unique record identifier.",
|
| 145 |
+
"dataType": "sc:Text",
|
| 146 |
+
"source": { "fileObject": { "@id": "original_tekgen" }, "extract": { "jsonPath": "$[*].id" } }
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"@type": "cr:Field",
|
| 150 |
+
"name": "head_to_tail",
|
| 151 |
+
"description": "Relation string (e.g., 'creator').",
|
| 152 |
+
"dataType": "sc:Text",
|
| 153 |
+
"source": { "fileObject": { "@id": "original_tekgen" }, "extract": { "jsonPath": "$[*].head_to_tail" } }
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"@type": "cr:Field",
|
| 157 |
+
"name": "tail_to_head",
|
| 158 |
+
"description": "Inverse relation string.",
|
| 159 |
+
"dataType": "sc:Text",
|
| 160 |
+
"source": { "fileObject": { "@id": "original_tekgen" }, "extract": { "jsonPath": "$[*].tail_to_head" } }
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"@type": "cr:Field",
|
| 164 |
+
"name": "sent",
|
| 165 |
+
"description": "Full sentence string.",
|
| 166 |
+
"dataType": "sc:Text",
|
| 167 |
+
"source": { "fileObject": { "@id": "original_tekgen" }, "extract": { "jsonPath": "$[*].sent" } }
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"@type": "cr:Field",
|
| 171 |
+
"name": "head",
|
| 172 |
+
"description": "Head entity name.",
|
| 173 |
+
"dataType": "sc:Text",
|
| 174 |
+
"source": { "fileObject": { "@id": "original_tekgen" }, "extract": { "jsonPath": "$[*].head" } }
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"@type": "cr:Field",
|
| 178 |
+
"name": "tail",
|
| 179 |
+
"description": "Tail entity name.",
|
| 180 |
+
"dataType": "sc:Text",
|
| 181 |
+
"source": { "fileObject": { "@id": "original_tekgen" }, "extract": { "jsonPath": "$[*].tail" } }
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"@type": "cr:Field",
|
| 185 |
+
"name": "artificial_data",
|
| 186 |
+
"description": "Substituted entity names for TekGen.",
|
| 187 |
+
"dataType": "sc:Text",
|
| 188 |
+
"source": { "fileObject": { "@id": "artificial_tekgen" }, "extract": { "jsonPath": "$[*].artificial_data" } }
|
| 189 |
+
}
|
| 190 |
+
]
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"@type": "cr:RecordSet",
|
| 194 |
+
"name": "relation_metadata",
|
| 195 |
+
"description": "Merged metadata for FewRel property IDs and TekGen relation strings.",
|
| 196 |
+
"field": [
|
| 197 |
+
{
|
| 198 |
+
"@type": "cr:Field",
|
| 199 |
+
"name": "relation_identifier",
|
| 200 |
+
"description": "The P-ID for FewRel or the name for TekGen.",
|
| 201 |
+
"dataType": "sc:Text",
|
| 202 |
+
"source": { "fileObject": { "@id": "fewrel_meta" }, "extract": { "jsonPath": "$[*].pid" } }
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"@type": "cr:Field",
|
| 206 |
+
"name": "description",
|
| 207 |
+
"description": "Semantic definition of the relation.",
|
| 208 |
+
"dataType": "sc:Text",
|
| 209 |
+
"source": { "fileObject": { "@id": "tekgen_meta" }, "extract": { "jsonPath": "$.*.[inverse].description" } }
|
| 210 |
+
}
|
| 211 |
+
]
|
| 212 |
+
}
|
| 213 |
+
]
|
| 214 |
+
}
|