Customizing Appearance

106 views
Skip to first unread message

Jeff

unread,
Apr 4, 2012, 5:33:32 PM4/4/12
to OntoWiki User Discussion
Hi all,

I am wondering how to customize the appearance of my OntoWiki page.
For example, can I replace the "News" feed that is normally located on
the homepage?

I know this might be a very trivial question, but I'm new to OntoWiki
and web editing in general.

Thanks,
-Jeff

Sebastian Tramp

unread,
Apr 5, 2012, 8:40:38 AM4/5/12
to ontowi...@googlegroups.com
On Wed, Apr 04, 2012 at 02:33:32PM -0700, Jeff wrote:
> I am wondering how to customize the appearance of my OntoWiki page. For
> example, can I replace the "News" feed that is normally located on the
> homepage?

OntoWiki is organized in terms of controllers which provide actions.The news
feed is provided by the action `news` from the controller `index`. You can
change the start screen by configuring a new action/controller in `config.ini`
by adding the following section:

index.default.controller = "[controllername]"
index.default.action = "[actionname]"

You can add any controller/action you want here but if you want to create
a simple custom start screen, you can use the page extension [1]. This
extensions provides a generic `page` controller, which can be used to display
pages (= actions) which are created in its subdirectory `page`. After
installation only an example page exists so you can test the extension with:

index.default.controller = "page"
index.default.action = "example"

Best regards

Sebastian Tramp

1. https://github.com/AKSW/page.ontowiki
--
WebID: http://sebastian.tramp.name

Jeff

unread,
Jun 5, 2012, 11:49:12 AM6/5/12
to ontowi...@googlegroups.com
I am looking to further customize the appearance of my Ontowiki page. Is it possible to have Ontowiki run in the background of an HTML page so that the appearance is nicer? How would this be done if it is possible?

Thanks,
-Jeff

Sebastian Tramp

unread,
Jun 5, 2012, 3:59:36 PM6/5/12
to ontowi...@googlegroups.com
On Tue, Jun 05, 2012 at 08:49:12AM -0700, Jeff wrote:

Jeff,

you clearly should have a look at the site extension:
https://github.com/AKSW/site.ontowiki

Best regards

Sebastian Tramp
--
WebID: http://sebastian.tramp.name

Jeff

unread,
Jun 11, 2012, 2:37:51 PM6/11/12
to OntoWiki User Discussion
I downloaded the site extension but now I'm having trouble configuring
it. I followed the instructions here:
https://github.com/AKSW/site.ontowiki/wiki/Setup

When I follow the instructions and then try to load "localhost/
ontowiki" in my browser, I get:
"The resource you are trying to reach does not exist. Do you want to
create it?"

I think I'm having trouble with the step that says: "First you have to
create a model e.g. model = "http://example.com/" in OntoWiki which
will hold the contents of your new site." What does this mean? I know
that the content that I want to use is not located at http://example.com",
so how do I point it in the right direction? I tried pointing it to
localhost/ontowiki/extensions/site/sites/example, but have gotten the
same error.

Thanks,
-Jeff

On Jun 5, 3:59 pm, Sebastian Tramp <tr...@informatik.uni-leipzig.de>
wrote:
> > >   1.https://github.com/AKSW/page.ontowiki
> > > --
> > > WebID:http://sebastian.tramp.name
>
> --
> WebID:http://sebastian.tramp.name
>
>  application_pgp-signature_part
> < 1KViewDownload

Natanael Arndt

unread,
Jun 11, 2012, 6:50:34 PM6/11/12
to ontowi...@googlegroups.com
Hello Jeff,
we are still working on this wikipage and a tutorial for an easy
introduction to the site extension. Meanwhile you should use the
feature/new-example [1] branch which contains a better to use example.
I assume you are running you OntoWiki at http://localhost/OntoWiki and
you want to create a site at http://localhost/OntoWiki/Site
You should import the model from site/sites/example/data/model.n3 into
your OntoWiki.

If you now enable the site extension you should see a page like in the
attachment.

Please note also that this example depends on the feeds extension [2].

I hope this works, I'm curious about the result.

[1] https://github.com/AKSW/site.ontowiki/commits/feature/new-example
[2] https://github.com/AKSW/feeds.ontowiki

Kind regards
Natanael
example1.png

Sebastian Tramp

unread,
Jun 12, 2012, 3:32:16 AM6/12/12
to ontowi...@googlegroups.com
On Mon, Jun 11, 2012 at 11:37:51AM -0700, Jeff wrote:
> When I follow the instructions and then try to load "localhost/ ontowiki" in
> my browser, I get: "The resource you are trying to reach does not exist. Do
> you want to create it?"

Hi Jeff, a good starter here is to enable the debug mode and / or have a look
in the log files. After enabling the debug mode, OntoWiki will not only log
errors and also show errors online for more information.

Best regards

Sebastian Tramp

--
WebID: http://sebastian.tramp.name

Jeff

unread,
Jun 14, 2012, 12:33:49 PM6/14/12
to OntoWiki User Discussion
Hi all,




I am running my OntoWiki at localhost\ontowiki.




I've tried following the instructions, but am still having trouble:




I downloaded the feature/new-example branch and placed it in localhost
\ontowiki\extensions\site\sites\example.
I then copied model.n3 to localhost\ontowiki\Site. This is the step I
was most unsure about. I don't know what "You should import the model
from site/sites/example/data/model.n3 into
your OntoWiki" means. Is it simply pasting the model.n3 file into
localost\ontowiki\Site?
I enabled the site extension.
I downloaded and enabled the feeds extension.




I enabled debug mode and saw the following error report:
Erfurt_Store_Exception: Model 'http://localhost/OntoWiki/Site' is not
available.
C:\xampp\htdocs\ontowiki\libraries\Erfurt\Erfurt\Store.php@816
Stacktrace:
#0 C:\xampp\htdocs\ontowiki\extensions\site\SiteHelper.php(150):
Erfurt_Store->getModel('http://localhos...')
#1 [internal function]: SiteHelper-
>onIsDispatchable(Object(Erfurt_Event))
#2 C:\xampp\htdocs\ontowiki\libraries\Erfurt\Erfurt\Event
\Dispatcher.php(179): ReflectionMethod->invoke(Object(SiteHelper),
Object(Erfurt_Event))
#3 C:\xampp\htdocs\ontowiki\libraries\Erfurt\Erfurt\Event.php(178):
Erfurt_Event_Dispatcher->trigger(Object(Erfurt_Event))
#4 C:\xampp\htdocs\ontowiki\application\classes\OntoWiki
\Dispatcher.php(159): Erfurt_Event->trigger()
#5 C:\xampp\htdocs\ontowiki\libraries\Zend\Controller\Dispatcher
\Standard.php(244): OntoWiki_Dispatcher-
>isDispatchable(Object(OntoWiki_Request))
#6 C:\xampp\htdocs\ontowiki\libraries\Zend\Controller\Front.php(954):
Zend_Controller_Dispatcher_Standard-
>dispatch(Object(OntoWiki_Request),
Object(Zend_Controller_Response_Http))
#7 C:\xampp\htdocs\ontowiki\libraries\Zend\Application\Bootstrap
\Bootstrap.php(97): Zend_Controller_Front->dispatch()
#8 C:\xampp\htdocs\ontowiki\libraries\Zend\Application.php(366):
Zend_Application_Bootstrap_Bootstrap->run()
#9 C:\xampp\htdocs\ontowiki\index.php(157): Zend_Application->run()
#10 {main} (0)




I am guessing that it is still not finding the site model, but I'm not
sure what to do here. Any ideas? Do I need to add anything to the
ontowiki config.ini file?




Thanks a lot for all of the help,
-Jeff

On Jun 12, 3:32 am, Sebastian Tramp <tr...@informatik.uni-leipzig.de>
wrote:
>  application_pgp-signature_part
> < 1KViewDownload

Natanael Arndt

unread,
Jun 15, 2012, 12:42:39 PM6/15/12
to ontowi...@googlegroups.com
Hey Jeff,

Am 14.06.2012 18:33, schrieb Jeff:
> I am running my OntoWiki at localhost\ontowiki.
I don't know if Windows will be case sensitive for this but it might be
better if you rename the directory to "OntoWiki" with capital O and W.
> I've tried following the instructions, but am still having trouble:
I will try to help you.
> I downloaded the feature/new-example branch and placed it in localhost
> \ontowiki\extensions\site\sites\example.
It is a substitute for the site extension. You should place it in

localhost\OntoWiki\extensions\site

> I then copied model.n3 to localhost\ontowiki\Site. This is the step I
> was most unsure about. I don't know what "You should import the model
> from site/sites/example/data/model.n3 into
> your OntoWiki" means. Is it simply pasting the model.n3 file into
> localost\ontowiki\Site?
Sorry that I haven't been clear in this point. By importing the model
I've meant, that you should:
1. Open your OntoWiki with your browser e.g. http://localhost/OntoWiki/Index
2. Login (default: user: "Admin" (capital A), password: empty)
3. In the Box "Knowledge Bases" on the left side open the menu "Edit" >
"Create Knowledge Base"
4. In the new page:
4.a enter as "Knowledge Base URI": "http://localhost/OntoWiki/Site"
4.b select "Upload a File"
4.c Leave the Filetype as it is
4.d select the "model.n3" file from your filesystem (should be at
localhost\OntoWiki\extensions\site\sites\example\data)
4.e click the button "Create Knowledge Base" in the upper right corner

Now you should see a new Model called "Site" in the Box "Knowledge
Bases" on the left side.
> I enabled the site extension.
> I downloaded and enabled the feeds extension.
If you have them both in the extensions directory that is fine.
I hope this error will not come again after you have imported the model :-)
> I am guessing that it is still not finding the site model, but I'm not
> sure what to do here. Any ideas? Do I need to add anything to the
> ontowiki config.ini file?
I hope the model was the problem.

Kind regards
Nate

Jeff

unread,
Jun 15, 2012, 1:38:34 PM6/15/12
to OntoWiki User Discussion
Hi,

I think I followed the directions properly, and I am getting a
different screen. I typed http://localhost/OntoWiki into my browser,
and it redirects to http://localhost/OntoWiki/Site/Welcome.html

A page is loaded that says:

OntoWiki Site Extension
renderx(); ?>
partial('example/types/feed.phtml', $this->templateData) ?>
© AKSW 2012

Any ideas? OntoWiki Site Extension is displayed as a link, but does
not lead anywhere.

Thanks again for all of the help!!
-Jeff

On Jun 15, 12:42 pm, Natanael Arndt <arn...@gmail.com> wrote:
> Hey Jeff,
>
> Am 14.06.2012 18:33, schrieb Jeff:> I am running my OntoWiki at localhost\ontowiki.
>
> I don't know if Windows will be case sensitive for this but it might be
> better if you rename the directory to "OntoWiki" with capital O and W.> I've tried following the instructions, but am still having trouble:
>
> I will try to help you.> I downloaded the feature/new-example branch and placed it in localhost
> > \ontowiki\extensions\site\sites\example.
>
> It is a substitute for the site extension. You should place it in
>
> localhost\OntoWiki\extensions\site
>
> > I then copied model.n3 to localhost\ontowiki\Site. This is the step I
> > was most unsure about. I don't know what "You should import the model
> > from site/sites/example/data/model.n3 into
> > your OntoWiki" means. Is it simply pasting the model.n3 file into
> > localost\ontowiki\Site?
>
> Sorry that I haven't been clear in this point. By importing the model
> I've meant, that you should:
> 1. Open your OntoWiki with your browser e.g.http://localhost/OntoWiki/Index

Natanael Arndt

unread,
Jun 16, 2012, 4:53:14 AM6/16/12
to ontowi...@googlegroups.com
Hi Jeff,
Sorry that is a mistake by me, I've been using short open tags while
they should be disabled for OntoWiki. If you make a "git pull" in the
site extension you should get the latest version and hopefully it works.

Nate

Am 15.06.2012 19:38, schrieb Jeff:
> Hi,
>
> I think I followed the directions properly, and I am getting a
> different screen. I typed http://localhost/OntoWiki into my browser,
> and it redirects to http://localhost/OntoWiki/Site/Welcome.html
>
> A page is loaded that says:
>
> OntoWiki Site Extension
> renderx(); ?>
> partial('example/types/feed.phtml', $this->templateData) ?>
> ᅵ AKSW 2012

Jeff

unread,
Jun 18, 2012, 11:54:41 AM6/18/12
to OntoWiki User Discussion
Hi Nate,

I updated the site extension to the latest version and am still
getting the same screen. First I was redirected to
http://localhost/~natanael/OntoWiki/Site/Welcome in my address bar,
but after fixing the config.ini file, I got the same screen as
before.

Again, it reads:
OntoWiki Site Extension
renderx(); ?>
partial('example/types/feed.phtml', $this->templateData) ?>
© AKSW 2012

Is there something that I may be messing up?

Thanks a lot for the help,
-Jeff

On Jun 16, 4:53 am, Natanael Arndt <arn...@gmail.com> wrote:
> Hi Jeff,
> Sorry that is a mistake by me, I've been using short open tags while
> they should be disabled for OntoWiki. If you make a "git pull" in the
> site extension you should get the latest version and hopefully it works.
>
> Nate
>
> Am 15.06.2012 19:38, schrieb Jeff:
>
>
>
>
>
>
>
> > Hi,
>
> > I think I followed the directions properly, and I am getting a
> > different screen. I typedhttp://localhost/OntoWikiinto my browser,
> > and it redirects tohttp://localhost/OntoWiki/Site/Welcome.html
>
> > A page is loaded that says:
>
> > OntoWiki Site Extension
> > renderx(); ?>
> > partial('example/types/feed.phtml', $this->templateData) ?>

Natanael Arndt

unread,
Jun 18, 2012, 11:57:10 AM6/18/12
to ontowi...@googlegroups.com
Hi Jeff,
could you maybe send a screen shot of the output?

Nate

Natanael Arndt

unread,
Jun 18, 2012, 11:59:29 AM6/18/12
to ontowi...@googlegroups.com
And could you maybe also attache 'layout.phtml' from
'extensions/site/sites/example'

Nate

Jeff

unread,
Jun 18, 2012, 12:59:39 PM6/18/12
to OntoWiki User Discussion
I sent you an email so that I could include the attachments.
-Jeff

On Jun 18, 11:59 am, Natanael Arndt <arn...@gmail.com> wrote:
> And could you maybe also attache 'layout.phtml' from
> 'extensions/site/sites/example'
>
> Nate
>
> Am 18.06.2012 17:57, schrieb Natanael Arndt:
>
>
>
>
>
>
>
> > Hi Jeff,
> > could you maybe send a screen shot of the output?
>
> > Nate
>
> > Am 18.06.2012 17:54, schrieb Jeff:
> >> Hi Nate,
>
> >> I updated the site extension to the latest version and am still
> >> getting the same screen. First I was redirected to
> >>http://localhost/~natanael/OntoWiki/Site/Welcomein my address bar,
> >> but after fixing the config.ini file, I got the same screen as
> >> before.
>
> >> Again, it reads:
> >> OntoWiki Site Extension
> >> renderx(); ?>
> >> partial('example/types/feed.phtml', $this->templateData) ?>
> >> � AKSW 2012

Natanael Arndt

unread,
Jun 18, 2012, 5:41:34 PM6/18/12
to OntoWiki User Discussion
Some how it seams as your Apache doesn't interpret the php in this phtml file. Maybe you have to add the phtml file-extension somewhere in your configuration.
I will get back to you with further information tomorrow.

Nate
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



Jeff <jdmc...@gmail.com> schrieb:

Natanael Arndt

unread,
Jun 19, 2012, 7:18:24 PM6/19/12
to OntoWiki User Discussion
Hi Jeff,
Could you maybe also send me the HTML code of Welcome.html as it appears in your browser?

The only thing I could find is, that you should try to enable short open tags:

http://stackoverflow.com/questions/2251065/xampp-zend-framework-phtml-files-dont-render

even if we recommend to disable this we should try if this solves the problem at least temporarily.
Please don't forget to restart your Apache after changing the configuration.

Kind regards
Nate

Jeff

unread,
Jun 20, 2012, 2:01:29 PM6/20/12
to OntoWiki User Discussion
Hi Nate,

I've pasted the source code below that I get when I load localhost/
OntoWiki/Site/Welcome.html in my browser.

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xmlns:dc="http://
purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
    <meta charset="UTF-8">
    <title>Welcome &mdash; Example Seite</title>
    <meta name="viewport" content="width=device-width, initial-
scale=1.0">
    <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="generator" content="OntoWiki 0.9.5" />
  <link rel="alternate" type="application/rdf+xml" href="http://
localhost/OntoWiki/Site/Welcome.rdf" />
    <link rel="pingback" href="http://localhost/OntoWiki/pingback/
ping" />
    <link rel="foaf:primaryTopic" href="http://localhost/OntoWiki/Site/
Welcome" />
    <link rel="stylesheet" type="text/css" media="all" href="http://
localhost/OntoWiki/extensions/site/sites/example/css/all.dev.css"
title="Standard" />
    <link type="text/css" href="<?= $this->baseUri ?>/css/
bootstrap.css" rel="stylesheet" />
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
    </style>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/
html5.js"></script>
    <![endif]-->
</head>
<body xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://
www.w3.org/2002/07/owl#" xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:ns0="http://localhost/OntoWiki/Site/Class/" xmlns:ns2="http://
open.vocab.org/terms/" xmlns:ns3="http://aksw.org/schema/"
xmlns:site="http://ns.ontowiki.net/SysOnt/Site/" xmlns:sysont="http://
ns.ontowiki.net/SysOnt/">
<div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-
target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="#">OntoWiki Site Extension</a>
              <!-- TODO build menu -->
              <nav class="nav-collapse" id="nav-main"><ul class="nav"
>
</ul>
<!-- /#nav-main --></nav>
        </div>
      </div>
    </div>
    <div class="container">
      <?= $this->renderx(); ?>
<!-- Example row of columns for a Feed -->
<div class="row">
<?= $this->partial('example/types/feed.phtml', $this->templateData) ?>
</div>
      <hr>
      <footer>
        <p>&copy; AKSW 2012</p>
      </footer>
    </div> <!-- /container -->
    <script type="text/javascript" src="<?= $this->baseUri ?>/js/
jquery.js"></script>
    <script type="text/javascript" src="<?= $this->baseUri ?>/js/
bootstrap.js"></script>
</body>
</html>

I also had tried enabling short open tags and that seemed to make no
difference.

Thanks again,
-Jeff

On Jun 19, 7:18 pm, Natanael Arndt <arn...@gmail.com> wrote:
> Hi Jeff,
> Could you maybe also send me the HTML code of Welcome.html as it appears
> in your browser?
>
> The only thing I could find is, that you should try to enable short open
> tags:
>
> http://stackoverflow.com/questions/2251065/xampp-zend-framework-phtml...
>
> even if we recommend to disable this we should try if this solves the
> problem at least temporarily.
> Please don't forget to restart your Apache after changing the configuration.
>
> Kind regards
> Nate
>
> Am 18.06.2012 23:41, schrieb Natanael Arndt:
>
>
>
>
>
>
>
> > Some how it seams as your Apache doesn't interpret the php in this
> > phtml file. Maybe you have to add the phtml file-extension somewhere
> > in your configuration.
> > I will get back to you with further information tomorrow.
>
> > Nate
> > --
> > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
> > gesendet.
>
> > Jeff <jdmcp...@gmail.com> schrieb:
>
> >     I sent you an email so that I could include the attachments.
> >     -Jeff
>
> >     On Jun 18, 11:59 am, Natanael Arndt <arn...@gmail.com> wrote:
> >     > And could you maybe also attache 'layout.phtml' from
> >     > 'extensions/site/sites/example'
>
> >     > Nate
>
> >     > Am 18.06.2012 17:57, schrieb Natanael Arndt:
>
> >     > > Hi Jeff,
> >     > > could you maybe send a screen shot of the output?
>
> >     > > Nate
>
> >     > > Am 18.06.2012 17:54, schrieb Jeff:
> >     > >> Hi Nate,
>
> >     > >> I updated the site extension to the latest version and am still
> >     > >> getting the same screen. First I was redirected to
> >     > >>http://localhost/~natanael/OntoWiki/Site/Welcomeinmy address bar,

Natanael Arndt

unread,
Jun 20, 2012, 4:52:34 PM6/20/12
to ontowi...@googlegroups.com
As is seams it still gives you the short open tags, which I removed in
the last commit. Maybe you should try to delete all contents of the
cache folder in OntoWiki and clear your browser cache.
This should help you to load the correct page.

Kind regards
Nate
>>> > >> � AKSW 2012

Jeff

unread,
Jun 22, 2012, 10:46:06 AM6/22/12
to OntoWiki User Discussion
Hi Nate,

I deleted the contents of the cache folder and cleared all browsing
data. The problem still persisted. I tried another browser (IE 9) and
still had the same problem. Do you think that reinstalling OntoWiki
completely would be worth trying?

Thanks,
-Jeff
> >>>     > >>http://localhost/~natanael/OntoWiki/Site/Welcomeinmyaddress bar,

Natanael Arndt

unread,
Jun 26, 2012, 4:13:13 PM6/26/12
to ontowi...@googlegroups.com
Hi Jeff,
sorry for the late replay. I couldn't reproduce your problem with a
xampp setup on windows since I had other problems with xampp.

But I think reinstalling OntoWiki could be worth trying.

I will ask somebody else with a windows system to try your setup and
reproduce the problem.

Thank you
Nate

Am 22.06.2012 16:46, schrieb Jeff:
> Hi Nate,
>

Jeff

unread,
Jul 2, 2012, 3:45:13 PM7/2/12
to OntoWiki User Discussion
Hi Nate,

I tried reinstalling OntoWiki and still get the same error.

Thanks again for all the help,
-Jeff

Natanael Arndt

unread,
Jul 2, 2012, 3:52:50 PM7/2/12
to ontowi...@googlegroups.com
Hey Jeff,
sorry for all the trouble. Does the HTML source code still show the
opening <?= and closing ?> with the not executed php code?
Because I have removed all of the in commit
https://github.com/AKSW/site.ontowiki/commit/694103e69105416151363850051d7b9ea251794f

does "git log -1" in the site extension folder show the following output?

$ git log -1
commit 694103e69105416151363850051d7b9ea251794f
Author: Natanael Arndt <arn...@gmail.com>
Date: Sat Jun 16 10:48:44 2012 +0200

fix short open tags


Nate

Am 02.07.2012 21:45, schrieb Jeff:
> Hi Nate,
>

Natanael Arndt

unread,
Jul 2, 2012, 3:59:05 PM7/2/12
to ontowi...@googlegroups.com
I have just realized that I have messed up something with the config.ini
of the example site.

git log -2 should show now a second commit:

----snippet----
$ git log -2
commit 1c06310bffc7d7b401f205dcb41751b72af88c6d
Author: Natanael Arndt <arn...@gmail.com>
Date: Mon Jul 2 21:54:40 2012 +0200

fix config.ini with generic path

commit 694103e69105416151363850051d7b9ea251794f
Author: Natanael Arndt <arn...@gmail.com>
Date: Sat Jun 16 10:48:44 2012 +0200

fix short open tags

----snippet----

And please make sure that your "OntoWiki/extensions/site.ini" looks like
this:

----snippet----
enabled = true
[private]
defaultSite = "example"
----snippet----

Nate

Jeff

unread,
Jul 3, 2012, 10:22:59 AM7/3/12
to OntoWiki User Discussion
Hi Nate,

No problem! The trouble is half of the fun!

I'm still having the same trouble after updating the files. I have
made sure that there are no short tags in my files, but when I load
localhost/OntoWiki and view the page source, I still see the short
tags on the failed php code: <?= $this->renderx(); ?>

I noticed something else very interesting: When I edit the site name
or the text for the copyright, they still load the original content. I
made sure to clear my browser cache and history as well as the
OntoWiki cache folder. I also restarted xampp, and still saw the same
text. This suggests that none of the updates being done are getting
through. Could this be possible?

Thanks again for the help,
-Jeff
> >https://github.com/AKSW/site.ontowiki/commit/694103e69105416151363850...

Natanael Arndt

unread,
Jul 3, 2012, 12:32:10 PM7/3/12
to ontowi...@googlegroups.com
Hey Jeff,
maybe you have two different installations of OntoWiki in two different places on your System. If you open http://localhost/xampp/ in your browser you can see phpinfo(), which shows you the document root of you search for "DOCUMENT_ROOT". An other hint is the log window in the XAMPP Control Panel Application, which says: "Current Directory: ...".

If this doesn't work you could try the search function of your Operating System.

Kind regards

Nate
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



Jeff <jdmc...@gmail.com> schrieb:

Jeff

unread,
Jul 7, 2012, 10:41:59 AM7/7/12
to OntoWiki User Discussion
Everything seems fine there. When I looked at phpinfo() I see "C:/
xampp/htdocs" for "DOCUMENT_ROOT". The log window in the XAMPP Control
Panel says "Current Directory: c:\xampp".

Thanks,
-Jeff

On Jul 3, 12:32 pm, Natanael Arndt <arn...@gmail.com> wrote:
> Hey Jeff,
> maybe you have two different installations of OntoWiki in two different places on your System. If you openhttp://localhost/xampp/in your browser you can see phpinfo(), which shows you the document root of you search for "DOCUMENT_ROOT". An other hint is the log window in the XAMPP Control Panel Application, which says: "Current Directory: ...".
>
> If this doesn't work you could try the search function of your Operating System.
>
> Kind regards
> Nate
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
>
> Jeff <jdmcp...@gmail.com> schrieb:

Jeff

unread,
Jul 10, 2012, 5:44:44 PM7/10/12
to OntoWiki User Discussion
Hi Nate,

Please see my recent email as I think I have gotten something to work
properly.

Thanks,
-Jeff

On Jul 7, 10:41 am, Jeff <jdmcp...@gmail.com> wrote:
> Everything seems fine there. When I looked at phpinfo() I see "C:/
> xampp/htdocs" for "DOCUMENT_ROOT". The log window in the XAMPP Control
> Panel says "Current Directory: c:\xampp".
>
> Thanks,
> -Jeff
>
> On Jul 3, 12:32 pm, Natanael Arndt <arn...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hey Jeff,
> > maybe you have two different installations of OntoWiki in two different places on your System. If you openhttp://localhost/xampp/inyour browser you can see phpinfo(), which shows you the document root of you search for "DOCUMENT_ROOT". An other hint is the log window in the XAMPP Control Panel Application, which says: "Current Directory: ...".

Natanael Arndt

unread,
Jul 11, 2012, 10:44:31 AM7/11/12
to ontowi...@googlegroups.com
Hi Jeff,
the screenshot you have sent me looks very good the site extension seems
to work on you system.
The only things which don't work in this specific example is the Navigation:
look in your OntoWiki (http://localhost/OntoWiki/Index) if there is a
resource "http://localhost/OntoWiki/Site/Navigation/Main" which looks
like this and if the Welcome, Map and About resources exist:

<http://localhost/OntoWiki/Site/Navigation/Main> a site:Navigation ;
rdf:_1
<http://localhost/OntoWiki/Site/Welcome> ;
rdf:_2
<http://localhost/OntoWiki/Site/Map> ;
rdf:_3
<http://localhost/OntoWiki/Site/About> ;
rdfs:label
"Main Navigation" .

and the feed doesn't seam to be loaded correctly please make sure it is
enabled. extensions/feeds.ini should contain "enabled = true" in the
first line.

Now you can start to build your own site which can display any resource
in a way you define it to.

Kind regards
Nate

Jeff

unread,
Jul 11, 2012, 3:12:31 PM7/11/12
to ontowi...@googlegroups.com
Hi Nate,

The feeds extension is now on and the resources you mentioned all appear when I navigate to them in the Site knowledge base. However, when I try to click on any of them (or click on any other resource for that matter, even a resource from the OntoWiki System Configuration model), I get the error message shown below. Could this be why they are not loading properly?

Exception: need an URN string as second parameter

C:\xampp\htdocs\OntoWiki\libraries\Erfurt\Erfurt\Rdf\MemoryModel.php@59
Stacktrace:
#0 C:\xampp\htdocs\OntoWiki\libraries\Erfurt\Erfurt\Rdf\MemoryModel.php(149): Erfurt_Rdf_MemoryModel->hasSP('http://www.w3.o...', 0)
#1 C:\xampp\htdocs\OntoWiki\extensions\feeds\FeedsModule.php(68): Erfurt_Rdf_MemoryModel->getValues('http://www.w3.o...', 0)
#2 C:\xampp\htdocs\OntoWiki\application\classes\OntoWiki\Module.php(139): FeedsModule->init()
#3 C:\xampp\htdocs\OntoWiki\application\classes\OntoWiki\Module\Registry.php(248): OntoWiki_Module->__construct('feeds', 'main.window.pro...', Object(Zend_Config_Ini))
#4 C:\xampp\htdocs\OntoWiki\application\classes\OntoWiki\View.php(201): OntoWiki_Module_Registry->getModule('feeds', 'main.window.pro...')
#5 C:\xampp\htdocs\OntoWiki\application\classes\OntoWiki\View.php(150): OntoWiki_View->module('feeds', NULL, 'main.window.pro...')
#6 C:\xampp\htdocs\OntoWiki\application\classes\OntoWiki\Controller\Base.php(249): OntoWiki_View->modules('main.window.pro...')
#7 C:\xampp\htdocs\OntoWiki\application\controllers\ResourceController.php(192): OntoWiki_Controller_Base->addModuleContext('main.window.pro...')
#8 C:\xampp\htdocs\OntoWiki\libraries\Zend\Controller\Action.php(516): ResourceController->propertiesAction()
#9 C:\xampp\htdocs\OntoWiki\libraries\Zend\Controller\Dispatcher\Standard.php(295): Zend_Controller_Action->dispatch('propertiesActio...')
#10 C:\xampp\htdocs\OntoWiki\libraries\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(OntoWiki_Request), Object(Zend_Controller_Response_Http))
#11 C:\xampp\htdocs\OntoWiki\libraries\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch()
#12 C:\xampp\htdocs\OntoWiki\libraries\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#13 C:\xampp\htdocs\OntoWiki\index.php(157): Zend_Application->run()
#14 {main} (0) 
Reply all
Reply to author
Forward
0 new messages