Comments (3)
Found a solution:
I created a new method with next code:
public function getSparqlResult(){
$this->_graphs = array();
$result = $this->sparqlQuery('SELECT DISTINCT ?resourceUri FROM http://mde.wolterskluwer.de/wkdDocument/wkd.nt WHERE{ ?resourceUri rdf:type http://mde.wolterskluwer.de/wkdDocument }');
if($result){
foreach($result as $test){
$this->_graphs[$test['resourceUri']] = $test['resourceUri'];
}
}
return $this->_graphs;
}
And modified the calls in other classes.
And now it works fine. If I copy past this code in the getAvailableModels-method the program still crashes although. Someone has any idea why?
from ontowiki.
I am not sure if this is a valid issue.
when you say
getAvailableModels() method in the ModelList extension. (in Erfurt/Store/Adapter/Virtuoso.php)
do you mean you want to change the behaviour of the modellist extension by changing the getAvailableModels() method in Erfurt/Store/Adapter/Virtuoso.php?
my program crashes when I run this
what is the error message?
Generally there are two problems about this issue: First (and most important) - the getAvailableModels method is not meant to be customized for use cases. It has a fixed semantic and that is to list the models that are managed by erfurt. If you alter it like that, you might get unexpected behaviour at many other points. If you want all wkdDocuments as a model, maybe you rather write a script that imports them (if there are not so many) or some other trick reusing our framework - but I dont know exactly what you plan to do. Also this is more an Erfurt issue. And second: this is neither a enhancement request nor bug report. Helping you programming with our framework is beyond our capabilities, but if you can transform it into a precise ER or BR, we might can help you.
please reopen if I misunderstood you.
from ontowiki.
Hi Jonas,
Yes, I wanted to change the behaviour of the modellist extension. But I
already solved the problem as descibed in my next comment on the issue page.
Kind Regards,
Jan
2011/12/5 Jonas Brekle <
[email protected]
I am not sure if this is a valid issue.
when you saygetAvailableModels() method in the ModelList extension. (in
Erfurt/Store/Adapter/Virtuoso.php)
do you mean you want to change the behaviour of the modellist extension by
changing the getAvailableModels() method in
Erfurt/Store/Adapter/Virtuoso.php?
my program crashes when I run this
what is the error message?Generally there are two problems about this issue: First (and most
important) - the getAvailableModels method is not meant to be customized
for use cases. It has a fixed semantic and that is to list the models that
are managed by erfurt. If you alter it like that, you might get unexpected
behaviour at many other points. If you want all wkdDocuments as a model,
maybe you rather write a script that imports them (if there are not so
many) or some other trick reusing our framework - but I dont know exactly
what you plan to do. Also this is more an Erfurt issue. And second: this is
neither a enhancement request nor bug report. Helping you programming with
our framework is beyond our capabilities, but if you can transform it into
a precise ER or BR, we might can help you.please reopen if I misunderstood you.
Reply to this email directly or view it on GitHub:
#17 (comment)
Jan Decoutere
Software Specialist
Email: :[email protected]
Office: +32 (0)16 31 48 78
Mobile: +32 (0)479 94 82 65
Skype: jan.decoutere
from ontowiki.
Related Issues (20)
- More documentation on Newbie Tasks HOT 2
- index.php line 85 HOT 17
- Reference to docs.ontowiki.net HOT 1
- Turtle parser fails on valid turtle
- Erfurt log.path not writable (CentOS 7) HOT 2
- Navigation module load a huge quantity of data HOT 4
- Erfut error: Virtuoso adapter requires the ODBC extension to be loaded. HOT 5
- MemoryModel and Adapter error for very linked instance
- Travis unable to load php odbc extension
- With Stardog, the functions `add instance` and `add property` load forever
- Several odd behaviors on a new installation HOT 5
- 'DOMDocument' HOT 1
- Stack smashing in odbctest on debian 8.10 HOT 4
- Widgets are not displayed HOT 3
- Can't add new prefix to base HOT 1
- Error on bootstrapping OntoWiki
- 'Add property' hangs completely HOT 1
- ontowiki status HOT 5
- how and why did this end? HOT 6
- ODBC problem with Docker setup with Virtuoso 7.2.6 and virtodbc.so HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ontowiki.