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

Prepopulating with specific resource #184

Open
semanticfire opened this issue Jan 29, 2019 · 4 comments
Open

Prepopulating with specific resource #184

semanticfire opened this issue Jan 29, 2019 · 4 comments

Comments

@semanticfire
Copy link

Is is possible to add a resource to the workspace on initialization

e.g. I would like to show a specific dbpedia resource when I initialize the workspace.

@semanticfire
Copy link
Author

Currently I use this method which seems to work:

let elm = workspace.getModel().dataProvider.elementInfo({elementIds: ['http://example.com/resource']});
elm.then(function(arg){
  workspace.getModel().createElement(arg['http://example.com/resource'])
});```

@yuricus
Copy link
Member

yuricus commented Feb 27, 2019

There’s the way of specifying the graph to visualize at the startup, see example in ontodia/src/examples/sparqlRDFGraph.ts, and you can use GraphBuilder:createGraph(), pass the single URL into elementIds and an empty array to links to specify only one element to present.

@semanticfire
Copy link
Author

okay, that is clear, do you allow forking of the wiki ? then I'll do a pull request on a wikipage

@DpavlovPavlovD
Copy link
Member

Thanks for being eager to submit a PR to wiki!

As I said here - #185 (comment) - we are reconsidering the open source support model, but still intend to continue with it in the future. It is the question of how it will be managed. Once clear on it, we will notify you and the entire community and inform on the new process.

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

3 participants