Giter Club home page Giter Club logo

Comments (3)

JanDe avatar JanDe commented on August 24, 2024

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.

jbrekle avatar jbrekle commented on August 24, 2024

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.

JanDe avatar JanDe commented on August 24, 2024

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 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.


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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.