I have a set of triples and can also draw a "graph" by them using some codes, but how to convert it into a RDF version like real knowledge graphs like fb15k or so.
Asked
Active
Viewed 94 times
1
-
1you have a "set of triples" in which form? If you have triples, just generate N-Triples format of of them. Sorry, but you should provide more details - "having a set of triples" is to vague. And generating N-Triples out of e.g. a CSV with 3 columns just needs a target ontology and a script which can process CSV and generate a text file where each line denotes one RDF triple in N-Triples syntax. – UninformedUser Sep 04 '22 at 06:47
-
It's just literal that generated by a Relation Extraction Model, as I heard that N-Triple need to have a url-format relation, so I am not sure whether it's feasible.Or should I align them with existing ontologies? – WalterW Sep 04 '22 at 08:07
-
it depends on what you want to achieve. Yes, in RDF you need URIs for entities and properties, for literals sometime a datatype assigned to the literal string. The question is what you want to do with your automatically extracted data. If you just want to query your own data, feel free to use your own namespace and generate the URIs. But for interlinking - and that's one big advantage of RDF, making use of other existing knowledge graph, at some point you have to align your data with external data – UninformedUser Sep 04 '22 at 12:27