Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zheyxu opened this issue Jul 3, 2024 · 0 comments
Open

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

zheyxu opened this issue Jul 3, 2024 · 0 comments
Assignees

Comments

@zheyxu
Copy link
Collaborator

zheyxu commented Jul 3, 2024

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
@zheyxu zheyxu self-assigned this Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant