-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
What has been done
- 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: rdf:type owl:NamedIndividual.
- 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.
What is the next
- Add blank node integration
- Delete a triple in the Graph
- Matching triples of certain criteria
- parseTurtle gives more information of error, such as pointing out which line is the error
- SPARQL query integration
- Read remote turtle files (e.g. from web link)
- Support Graph operations like merging, intersection of different Graphs
Metadata
Metadata
Assignees
Labels
No labels