Giter VIP home page Giter VIP logo

ontowiki's Introduction

OntoWiki

Note: This project is not under active development anymore. See this issue for more details.

Travis CI Build Status Latest Stable Version Total Downloads License composer.lock

OntoWiki User Documentation OntoWiki API Documentation

Introduction

is a tool providing support for agile, distributed knowledge engineering scenarios. OntoWiki facilitates the visual presentation of a knowledge base as an information map, with different views on instance data. It enables intuitive authoring of semantic content. It fosters social collaboration aspects by keeping track of changes, allowing to comment and discuss every single part of a knowledge base.

Other remarkable features are:

  • OntoWiki is a Linked Data Server for you data as well as a Linked Data client to fetch additional data from the web
  • OntoWiki is a Semantic Pingback Client in order to receive and send back-linking request as known from the blogosphere.
  • OntoWiki is backend independent, which means you can save your data on a MySQL database as well as on a Virtuoso Triple Store.
  • OntoWiki is easily extendible by you, since it features a sophisticated Extension System.

Installation/Update

If you are updating OntoWiki, please don't forget to run make install. If make install fails, you might also have to run make getcomposer once before run make deploy again.

For further installation instructions please have a look at our wiki (might be outdated in some parts).

Screenshot / Webinar

Below is a screenshot showing OntoWiki in editing mode.

For a longer visual presentation you can watch our webinar@youtube (thanks to Phil and the Semantic Web company).

Screenshot

Documentation

The Documentation is hosted at https://docs.ontowiki.net/ . If you find errors or think we should add something to it you are free to fork https://github.com/AKSW/docs.ontowiki.net and send us a pull requst with your changes.

License

OntoWiki is licensed under the GNU General Public License Version 2, June 1991 (license document is in the application subfolder).

ontowiki's People

Contributors

0xfeedface avatar cannelony avatar criess avatar cupakob avatar florianagsten avatar frodeseverin avatar haschek avatar hknochi avatar jbrekle avatar jischebeck avatar k00ni avatar konradhoeffner avatar kriss0r avatar kurtjx avatar larseidam avatar matthimatiker avatar michaelmartin avatar nareike avatar pfrischmuth avatar quafzi avatar seebi avatar shinobu avatar splattater avatar tpluscode avatar triechert avatar white-gecko avatar yamalight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ontowiki's Issues

Unable to get History upon import

Hi,

We are still unable to get history upon importing a data source. This has worked in the past on MySQL, but not successfully on Virtuoso.

We have a cloned version of ASKW (non-edited) running on our machines. We have commented out line 532 of ModelController; tried setting the variable to "true". In all the debugging, it appears that the variable
is set to "true", but we still don't see any history.

Here are some details from debugging:

ModelController.php commented line#532

$versioning = $this->_erfurt->getVersioning();

$oldValue = $versioning->isVersioningEnabled(); //$versioning-

enableVersioning(false);

            $this->_handleImport($post, true);

When I debug this functionality I found :

Call Stack:

  1. ModelController->createAction
  2. ModelController->_handleImport
  3. $this->_erfurt->getStore()->getNewModel
    a. $this->_backendAdapter->createModel
    b. $this->getModel
  4. $this->_erfurt->getStore()->importRdf
    a. $this->_backendAdapter->importRdf
    i. $importSql = $this->_getImportSql;
    ii. $this->_execSql('CALL
    DB.DBA.RDF_LOAD_RDFXML(XML_URI_GET_AND_CACHE('http://localhost/
    Ontologies/classtest.owl'), 'http://localhost/OntoWiki/classtest/',
    'http://localhost/OntoWiki/classtest/')');
    b. $this->_backendAdapter->init()

We had originally reported this on the google group, but thought I would report it here.

We need to have this functionality work for our release next week. Ideas on what can be done?

thanks in advance!
Lisa

http://groups.google.com/group/ontowiki-user/browse_thread/thread/4e516fdcd0520d18

Extconf: Removing navigation config fails

To get around the URL limit in #34 I removed the faun and go configurations and saved. After saving, and getting the "config sucessfully changed" message, faun and go are there again with all their subproperties.

OntoWiki git from 2012-02-18.

Adding a new namespace doesn't work

Hi All,

Adding a new namespace to the list of namespaces and a corresponding prefix doesn't work properly.

Only when new files are added in OntoWiki, a correct prefix is visible for those new files. For old files the old prefix (like ns0) is still visible. Even when you clear the Erfurt Cache.

add instance: type not preselected

hi @cannelony - when I add an instance, the service does not preselect the type of the new resource.
ideally

  • the type is preselected and the user should not need to edit / modify that
  • the widget of the type is hidden

Receive Knowledge bases with SPARQL Query

Hi All,

I tried to modify the getAvailableModels() method in the ModelList extension. (in Erfurt/Store/Adapter/Virtuoso.php)

I changed the SQL query to a SPARQL query. But it doesn't work.

my code:
public function getAvailableModels()
{
if (null === $this->_graphs) {
$this->_graphs = array();
$rid = $this->_execSparql('SELECT DISTINCT ?resourceUri FROM http://mde.wolterskluwer.de/wkdDocument/wkd.nt WHERE{ ?resourceUri rdf:type http://mde.wolterskluwer.de/wkdDocument }');
if ($rid) {
$graphs = $this->_odbcResultToArray($rid);
$this->_graphs = array();
foreach ($graphs as $graph) {
$this->_graphs[$graph] = array('modelIri' => $graph);
}
}
}

At the moment my program crashes when I run this. But when I comment the line '$this->_graphs[$graph] = array('modelIri' => $graph);' the program doesn't crash anymore.

(When i do the SPARQL query in Virtuoso i get back:

resourceUri
http://schema.wolterskluwer.de/resource/abn.rdf

So my SPARQL query is correct.)

LinkedDataServer

The LinkedDataServer extension doesn't work.
You can try it with
wget -q -O - --header="Accept: application/rdf+xml" http://people.comiles.eu/natanael

On Thu, Nov 24, 2011 at 12:09:34AM +0100, Natanael Arndt wrote:

Hello,
is anybody able to verify, that the LinkedDataServer plugin for OntoWiki is
working, because I can't. Maybe it is caused by my strange setup and old
PHP.
you are right, it currently only works in combination with the site plugin ...
strange. please file an issue and assign Norm ...

Best regards

Sebastian Tramp

cs-check-intensive details

If I run "make cs-check-intensive" I get an overview of the files with the amount of Errors and Warnings and a second overview which violations are how often. (similar to cs-check but with warnings)

How can I see in which lines I commit the violations? Is there an option similar to "make cs-check-full" also for "intensive"?

Documentation scattered on many places

The documentation is at tooooo many places:

I know that putting everything at one place takes much time, but at least give an overview with links to the docs at a central place.

Big Files gives sql/sparql error

When using big files as model,

  • An sql error is returned when going to the history. : Expression recursion is too deep () in query:

Solved by changing:
model = '' . $graphUri . '' AND ( resource = '' . implode ('' OR resource = '' ,$resources) .
INTO
model = '' . $graphUri . '' AND ( resource IN ('' . implode ('' , '' ,$resources) . '' ))

  • An SPARQL error is returned when you want to see all instances.

Solved by changing the list of sameTerm in the sparql query to a construction like this one:

SELECT DISTINCT ?resourceUri ?__TYPE WHERE{?resourceUri http://www.w3.org/1999/02/22-rdf-syntax-ns#type ?__TYPE. FILTER(?resourceUri IN(http://resource.wolterskluwer.de/legislation/bd_kwg , http://vocabulary.wolterskluwer.de/stw/Befreiung , http://vocabulary.wolterskluwer.de/stw/Verbriefungen))}

(This also leads to an performance gain if you remove OPTIONAL in the query also.)

OpenID login glitches

Registering a new user from an openid ("cweiske.de") worked fine. Logging in with OpenID "cweiske.de' did not work, though. Logging in with "http://cweiske.de/" as OpenID works.

This is because the URL does not get expanded automatically to "http://cweiske.de/" as it did in the registration.

The protocol should be added automatically, and the trailing slash after the hostname, too - when it's missing.

some codesniffer niceups

Hi,

i just tested the cs stuff, and i really like it!

I had already installed the CodeSniffer pear library, and cs-install says it fails, because of that, but actually succeeds. maybe you ignore that error there. (should also occur when cs-uninstalling and then cs-install again - because the uninstall doesnt uninstalls the pear stuff)

and if i add a var_dump or print_r (and also exit and echo), i would like cs to complain about that. is there a simple way to disable cs for one(current) commit? for example: i fix all cs errors that i can, but some remain (for example a print_r to the log).

@seebi also suggested that you could make something that prevents us from commiting to the master branch.

what do you think?

regards,
Jonas

content negotiation fails for IE

@haschek tested IE7 and IE8. the linkeddataserver has problems with the mimetype requests IE7+8 sends (this is known also for lod2.eu)

Here is the german issue description: "Desweiteren funzt die Content Negotiation nicht wirklich, entweder schickt der IE keinen korrekten accept header zwecks accept type, es gibt einen Bug beim auswerten, oder die Content Negotiation ist zu hart eingestellt, was die relativen Werte angeht. Also ein Aufruf von aksw.org/Resource führt im IE irgendwie immer zu aksw.org/Resource.ttl - das Problem existiert sicher auch auf anderen Seiten, die mit der OW site extension betrieben werden."

phpCS does not work

I get following message, when I run any cs command:

$ make cs-check
/home/natanael/public_html/ontowiki/extensions/map/../../application/tests/CodeSniffer/cs-scripts.sh -c "-s --report=summary    "*""
PHP Warning:  Missing argument 3 for PHP_CodeSniffer_CLI::processUnknownArgument(), called in /usr/share/php/PHP/CodeSniffer/CLI.php on line 240 and defined in /usr/share/php/PHP/CodeSniffer/CLI.php on line 263
ERROR: option "--severity=5" not known.

Usage: phpcs [-nwlvi] [--report=<report>] [--standard=<standard>]
    [--config-set key value] [--config-delete key] [--config-show]
    [--generator=<generator>] [--extensions=<extensions>]
    [--ignore=<patterns>] [--tab-width=<width>] <file> ...
        -n           Do not print warnings
        -w           Print both warnings and errors (on by default)
        -l           Local directory only, no recursion
        -v[v][v]     Print verbose output
        -i           Show a list of installed coding standards
        --help       Print this help message
        --version    Print version information
        <file>       One or more files and/or directories to check
        <extensions> A comma separated list of file extensions to check
                     (only valid if checking a directory)
        <patterns>   A comma separated list of patterns that are used
                     to ignore directories and files
        <standard>   The name of the coding standard to use
        <width>      The number of spaces each tab represents
        <generator>  The name of a doc generator to use
                     (forces doc generation instead of checking)
        <report>     Print either the "full", "xml", "checkstyle",
                     "csv" or "summary" report
                     (the "full" report is printed by default)

I'm using Linux Mint which is based on Ubuntu and I have installed php-pear and php-codesniffer.

make cs-install tells me

chmod ugo+x "application/tests/CodeSniffer/cs-scripts.sh"
application/tests/CodeSniffer/cs-scripts.sh -i
 CodeSniffer PEAR Package already installed.

defaultmodel plugin broken

hi jonas, can you check and fix the functionality of the defaultmodel extension please? It seems to be broken ...

Suggested properties: Show URL in title attribute

The "suggested properties" window shows:

In use elsewhere (3)
address Address Opening Hours

I cannot distinguish between address and Address, and Ontowiki does not give any indication what each property exactly is.

I'd like to see the properties URL when hovering the property. This can be achieved with a title attribute.

feature-request: Easily create child nodes without specifying URIs

I'm trying to use OntoWiki as address book with the vCard schema[1]. In this schema, addresses are not string properties on the vcard/person but properties of child nodes that are linked with the http://www.w3.org/2006/vcard/ns#adr property.

Adding such an address child node in ontowiki is not easy, because when clicking "add property" you may choose the address type, but have to provide an URI. I'd rather have that URI autogenerated by selecting the type of the child node.

Short: When adding a property, I'd like to be able to specify the type of the resource instead of its URI. The URI should be autogenerated then depending on the type.

[1] http://www.w3.org/TR/vcard-rdf

light-ui: preps for merge

  • extract php-code to template
  • add extension ini private switches
  • add an overwriting config for the theme
  • split theme independent javascript
  • add two contexts to the old theme
  • add module option for popover vs. modal module in light
  • prepend menu to the module bar
  • add tab switcher

Wondering where is view and update controller

hi :) I know that when one clicks an instance it gets redirected to the viewController (with no Action parameter). I also know that when one updates its instance through RDFAuthor the updateURI to which data gets sent is redirected to updateController. Only trouble is I can't seem to find it anywhere. So far I found the 'view' part of MVC for the view in properties.phtml .

Where are controllers located?

Thanks for any help.

Allowed memory size exhausted

Again and again I get a
Fatal error: Allowed memory size of XXXXXXXXX bytes exhausted (tried to allocate XX bytes)
after a while clicking around. I think we have some kind of (memory) leak in the session. After destroying the session everything works again.
Maybe somebody wants to track the memory usage with a profiler.

Troubles with configuration of Linked Data Gathering extension

hi, I am trying to use data from dbpedia with instances that I have in database. For the sake of simplicity let say I have a list of buildings (the instances). Each of these buildings has many properties one of which is the country where it is built. I tried adding property "http://dbpedia.org/ontology/country" and for value a resource "http://dbpedia.org/page/France" but for some reason when I click on (+)(expand) it says "No predicates found". The desired effect would be to show the data like on the page "http://dbpedia.org/page/France".
I did not make any changes to the configuration of datagathering extension since I wasn't able to find any manual on how to do it.

Would you be so helpfull and help me configure the extension. Your help would be greatly appreciated.

latency with 'transitive' owl:imports - regarding import issue #4

Hi,
I'm having an issue with imports.

That is:

Ontology A defines two classes

Ontology B defines instances of those classes
Ontology B owl:imports Ontology A.

Ontology C owl:imports Ontology B.
nothing newly defined (yet)

When I load A, then B and click on B, I do see the instances defined in B.
However, when I then load C, I see nothing.

I would expect, when I load C, to see the classes from A and the instances defined in B.

I tried again with C owl:imports B and C owl:imports A, but had the same problem.

I need to integrate multiple data sources from different ontologies.

Any ideas what could be causing this issue?

Here is the source.
From Ontology A (schema) (as resource):
http://localhost/OntoWiki/schema a owl:Ontology .

From Ontology B (externalsource1) (as resource):
http://localhost/OntoWiki/externalsource1 a owl:Ontology ;
owl:imports http://localhost/OntoWiki/schema .

From Ontology C (reg-instance) (as resource):
http://localhost/OntoWiki/reg-instance a owl:Ontology ;
owl:imports http://localhost/OntoWiki/externalsource1, http://localhost/OntoWiki/schema .

I have made sure that the appropriate prefixes were defined in the "configure KB".

Kind Regards,
Lisa

code sniffer: avoid commit to remote master branch

  1. look for remote repo (darf nicht auf AKSW/OntoWiki.git enden)
    git config remote.git config branch.$(git rev-parse --abbrev-ref HEAD).remote.url
  2. look for remote tracking branch (muss ungleich master sein)
    git config branch.$(git rev-parse --abbrev-ref HEAD).merge | cut -d "/" -f 3-

Semantic <- [sparql] <- OntoWiki possible?

Hello guys,

I've got only two questions :-)

I want to send SPARQL-request to OntoWiki and then I want to recieve the result in the Typo3-Semantic-extension.

  1. Is there a SPARQL-interface so Semantic can fetch the data?
  2. Have you got a technical documentation or something?

Jens from FH Hannover

ORDER BY error

Hi,
We were using the ordering module to add ORDERY BY ascending clauses to our queries and received this error:

Erfurt_Sparql_ParserException: missing ")" in ORDER BY clause.
C:\wamp\www\AKSW\OntoWiki\libraries\Erfurt\Erfurt\Sparql\Parser.php@1338

We were trying to debug by looking at the Erfurt_Sparql_Query2 object to see how the ORDER BY clause is constructed in the array.

We ran across the "add" function, but couldn't find it elsewhere in the code. There are other "add*" functions, but not "add" on its own that we found.

Any ideas on how to debug this? We really need ordering :)

thanks,
lisa

show properties feature is broken

after clicking a property in the "show property" module, different errors occur:

  • types and attribute values are not shown
  • different errors are shown

e.g. Warning: mysqli_stmt::close() [mysqli-stmt.close]: Couldn't fetch mysqli_stmt in /home/seebi/var/www/ow/aksw.org/libraries/Zend/Db/Statement/Mysqli.php on line 105

since @cannelony wants to enhance the table view with edit widgets, it would be great to have a working "show properties" feature ...

list of private member variables not recognized

The code sniffer handles the second variable in a list as public.

In the following example both variables are private, but the code sniffers recognizes $_onMap as private, but $_inCluster as public.

 private $_onMap, $_inCluster;

I get following sniffer error:

| ERROR | Public member variable "_inCluster" must not contain a leading
|       | underscore
|       | (Zend.NamingConventions.ValidVariableName.PublicHasUnderscore)

code sniffer: file header

Hier die header für die PHP files (nach dem docblock immer noch eine leerzeile)

Für Erfurt:

<?php
/**
 * This file is part of the {@link http://erfurt-framework.org Erfurt} project.
 *
 * @copyright Copyright (c) 2011, {@link http://aksw.org AKSW}
 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
 */

Für OntoWiki:

<?php
/**
 * This file is part of the {@link http://ontowiki.net OntoWiki} project.
 *
 * @copyright Copyright (c) 2011, {@link http://aksw.org AKSW}
 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
 */

`make erfurt` fails

$ make erfurt
rm -rf libraries/Erfurt
Cloning Erfurt into libraries/Erfurt ...
git clone [email protected]:AKSW/Erfurt.git libraries/Erfurt
Cloning into libraries/Erfurt...
The authenticity of host 'github.com (207.97.227.239)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
make: *** [erfurt] Fehler 128

add property: no return on empty resources

hi canellony,

if I try to add a property to an empty resource (no statements exists), I do not get back an UI.

  1. turn on the location bar (resource -> toggle location bar)
  2. type a new URI in and return
  3. click on Add Property

G.F.FCAS.TooMuchSpaceAfterComma should allow argument alignment

I get following sniff error

239 | ERROR | Expected 1 space after comma in function call; 2 found
| | (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma)
241 | ERROR | Expected 1 space after comma in function call; 3 found
| | (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma)
242 | ERROR | Expected 1 space after comma in function call; 2 found
| | (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma)

for following code

$bnd['top'] = new Erfurt_Sparql_Query2_Smaller('?lat',  $bnd['top']);
$bnd['rgt'] = new Erfurt_Sparql_Query2_Smaller('?long', $bnd['rgt']);
$bnd['btm'] = new Erfurt_Sparql_Query2_Larger('?lat',   $bnd['btm']);
$bnd['lft'] = new Erfurt_Sparql_Query2_Larger('?long',  $bnd['lft']);
$dttyps[]   = new Erfurt_Sparql_Query2_ConditionalAndExpression($bnd);

We only want a check that at least one space exists but argument alignment should be possible

semantic extensions ini2n3 improvements

hi jonas,

I just reviewed a view new n3 files.
can you fix the following easy issues which would help me in my review work:

  • the private namespace without a prefix (:) should end with an slash
  • add a statement owconfig:privateNamespace <.the namespace.>
  • change :caching -> owconfig:caching
  • change :priority -> owconfig:prority
  • use 4 spaces indention instead of 2
  • add an empty line after the prefix declarations
  • add a "<> foaf:primaryTopic :xxx ." statement
  • generate a statement for each context: owconfig:context <..> (subject the extension not the module)
  • remove rdfs:comment "fixme"; lines
  • add URIs as <..> instead of "..." (use regexp from Util class)

can you generate than all doap.n3 files new please?

form data lost on registration error

When registering a new user on application/register, a form validation error (e.g. password too short) leaves you with an empty form. All data have to be input again.

ListAction in HistoryController resets instances limit

Hi all,

When you are in the instances view of a model and you go to the history of this model.
Then returning back to the instances view will reset the limit.

Problem is solved by removing the line :

$query->setLimit(0);

in ListAction().

open codesniffer niceups

this are the open issues from the old issues-thread:

  • wikipage for sniff explanation
  • CS integration for Vim
  • install CS on all submodules/extensions

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.