AKSW / site.ontowiki

HTML Content Publishing system on top of Linked Data
6 stars 7 forks source link

some enhancements for the site extension #9

Closed larseidam closed 11 years ago

larseidam commented 11 years ago

with the dispedia development i have made some enhancements for this extension, here is a little overview

http://ns.ontowiki.net/SysOnt/Site/tableContentR1C1
http://ns.ontowiki.net/SysOnt/Site/tableContentR2C1
http://ns.ontowiki.net/SysOnt/Site/tableContentR1C2

and the size will be set by

http://ns.ontowiki.net/SysOnt/Site/tableContentRows
http://ns.ontowiki.net/SysOnt/Site/tableContentColumns

With this you can generate a table and can change the content and the size dynamically. I don't know if this is a correct or good semantic representation of a table, but anyway i needed a table one the website. If you want to look at a example, look at www.dispedia.de.

Maybe you want to include some of this features, feel free to do it. :)

seebi commented 11 years ago

@larseidam This sounds really awesome for me, thank you very much.

seebi commented 11 years ago

@white-gecko regarding https://github.com/AKSW/aksw.org/issues/48 - can you merge this pull request too?

white-gecko commented 11 years ago

Regarding the language support: Does the language support read the Accept-Language header [1]?

Regarding the table feature and your question “I don't know if this is a correct or good semantic representation of a table …”: I think it would be cool if you can define a query which selects the resources to display (per row) and a list (or array) of query-variables (strings) to define which of the query-variables should be displayed and in which order (as columns). Would this also fit your desired use-case?

[1] https://en.wikipedia.org/wiki/Accept-Language#Accept-Language

seebi commented 11 years ago

regarding language: it uses OntoWiki::getInstance()->getConfig()->languages->locale which is set in bootstrap.

Since a search for Accept-Language does not reveal any hits, I think the anser is "no" ....

seebi commented 11 years ago

but using OntoWiki::getInstance()->getConfig()->languages->locale in the context of this extension I think.

seebi commented 11 years ago

So I give my merge-ok. Nate can you do that (and test it with aksw.org)