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

No parsed ontology records in AllegroGraph after ontology has been parsed #102

Closed
mdorf opened this issue Apr 2, 2020 · 1 comment
Closed
Assignees

Comments

@mdorf
Copy link
Member

mdorf commented Apr 2, 2020

There appear to be no parsed ontology records in AllegroGraph at a point in the test code, where an ontology should have been parsed. At the same point in the code, here is the content of each datastore:

4store: 4362 records, which include enum values, ontology metadata and contents
AllegroGraph: 91 record, which include only enum values and ontology metadata
@mdorf mdorf self-assigned this Apr 2, 2020
@mdorf
Copy link
Member Author

mdorf commented Apr 2, 2020

An outdated example from the AG documentation wrapped graph names with double-quotes, which resulted in request failures. After much trial-and-error, the actual working format turned out to be <graph_uri> instead of "graph_uri”:

if backend_name == BACKEND_4STORE
  params[:payload] = {
    graph: graph.to_s,
    data: data_file,
    "mime-type" => mime_type
  }
  #for some reason \\\\ breaks parsing
  params[:payload][:data] = params[:payload][:data].split("\n").map { |x| x.sub("\\\\","") }.join("\n")
else
  params[:url] << "?context=#{CGI.escape("<#{graph.to_s}>")}"
  params[:payload] = data_file
end

@mdorf mdorf closed this as completed Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant