Open gjwgit opened 10 months ago
void parseTurtle(String fileContent)
Parses a valid turtle file read into a string [fileContent]. Updates [Graph.ctx], [Graph.groups] and [Graph.triples] in the process.
bool inNamespace(Namespace ns)
Checks if a full URIRef contains the namespace.
Set objects(URIRef sub, URIRef pre)
Finds all objects which have a certain subject and predicate.
URIRef withAttr(String attr)
This is used to further shorten the namespace binding.
void parseTurtle(String fileContent)
Parses a valid turtle file read into a string [fileContent]. Updates [Graph.ctx], [Graph.groups] and [Graph.triples] in the process.
bool inNamespace(Namespace ns)
Checks if a full URIRef contains the namespace.
Set objects(URIRef sub, URIRef pre)
Finds all objects which have a certain subject and predicate.
URIRef withAttr(String attr)
This is used to further shorten the namespace binding.
bool addNamedIndividualToGroups(dynamic s)
Adds named individual to graph: void addTripleToGroups(dynamic s, dynamic p, dynamic o)
Adds a triple to group using its string forms.
void addObjectProperty(URIRef obj, URIRef relation, URIRef prop)
Adds object property to link two triple subjects together.
void bind(String name, Namespace ns)
Binds a namespace to a prefix for better readability when serializing.
void serialize({String format = 'ttl', String? dest, String? abbr})
Serializes the graph to certain format and export to file.
void parseTurtle(String fileContent)
Parses a valid turtle file read into a string [fileContent]. Updates [Graph.ctx], [Graph.groups] and [Graph.triples] in the process.
Description
Review the current API and propose new API that will support common RDF operations that we have used throughout our flutter apps.
Why
So that we can have a simplified interface to make it really easy for the flutter app developer to process RDF data.