anusii / rdflib

A pure Dart package for working with RDF (resource description framework).
https://pub.dev/packages/rdflib
GNU General Public License v3.0
15 stars 3 forks source link

RDFLIB: add getFileContent in rdfLib package. #33

Open zheyxu opened 4 months ago

cdawei commented 4 months ago

It seems we also have another function (similar to getFileContent) that parses a TTL string and returns a map: Map<String, dynamic> parseTTL(String ttlContent)

gjwgit commented 4 months ago

... and more logically named too!

gjwgit commented 2 months ago

The aim here is to remove duplicated code from the package, clean it up, use sensible function names.

Is this now in a PR? once merged can be closed.

cdawei commented 2 months ago

I personally think this is not a good fit for rdflib which represents a turtle document using a graph that is more versatile than using a map (as done by getFileContent()).

If representing triples using a map is a common requirement in solid apps we develop, then perhaps adding and exporting a utility function in solidpod to do it.