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

Error with example on readme #4

Open
akevalion opened this issue Nov 28, 2022 · 1 comment
Open

Error with example on readme #4

akevalion opened this issue Nov 28, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@akevalion
Copy link

I have tried the example of readme, in pharo11 macos (ventura)

  • First I got an error about file does not exists
  • Then I have cloned the project of fireset-example
  • and use one file validation.ttl
firesatClient := PBSPARQL new
    datastore: '/Users/lse/Documents/GitHub/firesat-example/src/shacl/validation.ttl';
    query: 'PREFIX fse:   <http://opencaesar.io/examples/firesat/disciplines/fse/fse#>
PREFIX base:   <http://imce.jpl.nasa.gov/foundation/base#>

SELECT ?assembly ?subassembly

WHERE {
	?assembly base:contains ?subassembly
}'.

Expected result: the script of readme should work after the installation of the project

@capsulecorplab capsulecorplab added the documentation Improvements or additions to documentation label Jan 4, 2023
@capsulecorplab
Copy link
Owner

capsulecorplab commented Jan 4, 2023

@akevalion Sorry, I somehow didn't see this issue until just now! The working fix at the moment is to clone and run ./gradlew build in the firesat-example repo, then grab the absolute file path as a string for the Turtle (TTL) file generated at build/owl/opencaesar.io/examples/firesat/bundle/individuals.ttl for the keyword argument for PBSPARQL>>datastore:.

The firesat-example in the README needs to be replaced by a reference model that's easier to build IMO, since that project sort of assumes you'll be working with an Apache Fuseki server to load and query the RDF datastore, as opposed to reading/writing from/to RDF data directly on the local filesystem, which is more so the use case that the PatternBuffer project is trying to accommodate.

I also haven't discovered a more clever means of specifying the datastore, other than just having the user provide an absolute path as a string (perhaps a FileReference object as per #3 as an alternative option?), so any idea/suggestions in this area would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants