Skip to content

Summary of what has been done and what is the next #36

@zheyxu

Description

@zheyxu

What has been done

  1. 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.
  2. bool inNamespace(Namespace ns) Checks if a full URIRef contains the namespace.
  3. 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.
  4. bool addNamedIndividualToGroups(dynamic s) Adds named individual to graph: rdf:type owl:NamedIndividual.
  5. void addTripleToGroups(dynamic s, dynamic p, dynamic o) Adds a triple to group using its string forms.
  6. void addObjectProperty(URIRef obj, URIRef relation, URIRef prop) Adds object property to link two triple subjects together.
  7. void bind(String name, Namespace ns) Binds a namespace to a prefix for better readability when serializing.
  8. void serialize({String format = 'ttl', String? dest, String? abbr}) Serializes the graph to certain format and export to file.

What is the next

  1. Add blank node integration
  2. Delete a triple in the Graph
  3. Matching triples of certain criteria
  4. parseTurtle gives more information of error, such as pointing out which line is the error
  5. SPARQL query integration
  6. Read remote turtle files (e.g. from web link)
  7. Support Graph operations like merging, intersection of different Graphs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions