Code Monkey home page Code Monkey logo

lodspeakr's People

Contributors

alangrafu avatar joernhees avatar timrdf 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

Watchers

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

lodspeakr's Issues

state which file in error message

This means that models/special.configure-epoch.model.html or views/special.configure-epoch.view.html (or both) don't exist.

state which of these three conditions is the case, so one can spend less time figuring it out.

Improve logo

LODSPKeaKr logo is fine but it can be better

Options

  • Include at least the initials (LS, LDSPK)
  • Design a brand new logo

accept full URIs into service parameters

use case:

prefix prov:   <http://www.w3.org/ns/prov-o/>
prefix select: <http://sparql.tw.rpi.edu/services/datafaqs/core/select-faqts/> 

select distinct ?input
where {
  []
     prov:wasAttributedTo {{base.args.arg0}};
     prov:used            ?input;
  .
}

where the param is some unknown URI (so it is a hassle to find a qname for it.)

why is http://lodspeakr.org/install not in your repos?

http://lodspeakr.org/install

doesn't look like it is in the repository.

#!/usr/bin/env bash
# Installation script for LODSPeaKr (http://lodspeakr.org)
# Author: Alvaro Graves ([email protected])

source ~/.bashrc
GIT=`which git`

if [ -z "$GIT" ]
then
  echo "git not found. Please add git to your \$PATH. Installation terminated"
  exit 1
fi

if [ ! -e lodspeakr ]; then
   $GIT clone https://github.com/alangrafu/lodspeakr
   cd lodspeakr
   ./install.sh
else
   echo "There is already an existing directory called 'lodspeakr'. Installation cancelled. Remove it first and try again."
fi

Syntactic sugar for first row of results

It is annoying to write

{%foreach row in r%} 
{{row.value.var}}
{%endfor%}

everytime I need only the first value. This is particularly painful when it comes to writing queries.

A simpler way should be something like

{{row.value.var.first}}

Or something similar

concerning warnings in lodspk.sh

lebot@aquarius:/var/www/datafaqs/DataFAQs-lodspeakr$ utils/lodspk.sh create service datasets html
/var/www/datafaqs/DataFAQs-lodspeakr/utils/modules/create-service.sh: line 26: warning: here-document at line 17 delimited by end-of-file (wanted `QUERY')
/var/www/datafaqs/DataFAQs-lodspeakr/utils/modules/create-service.sh: line 57: warning: here-document at line 38 delimited by end-of-file (wanted `VIEW')
/var/www/datafaqs/DataFAQs-lodspeakr/utils/modules/create-service.sh: line 48: warning: here-document at line 44 delimited by end-of-file (wanted `QUERY')
/var/www/datafaqs/DataFAQs-lodspeakr/utils/modules/create-service.sh: line 50: warning: here-document at line 48 delimited by end-of-file (wanted `QUERY')
service.datasets created/modified successfully!

matching models to instances

what if an instance has multiple types that match multiple models?
Is only one model applied? Or all of them. If the former, which takes priority?

how to call lodspeakr from javascript

It would be nice to have an example showing how to call lodspeakr from jquery. (yes, this has nothing to do with lodspeakr, but would help it get used).

e.g. how to invoke a special service such as:

http://aquarius.tw.rpi.edu/datafaqs/DataFAQs-lodspeakr/special/service-history/select-faqts:select-datasets:by-ckan-group

to get json or csv or html.

Reasoning over classes

If
A rdf:type B
and
B rdfs:subClassOf C

It should be interesting to show A as B and C

Allow multiple queries

For example, a foaf:Person may want to obtain her basic data in one query while all her friends (foaf:know) in another.

Provide certain flexibility based on other HTTP headers

For now I'm thinking on the User-Agent HTTP header to decide wether show a mobile interface or a normal one. However this could be extended to any other HTTP header (Accept-Language or referer) that could define a different layout to be displayed.

Allow define a more general identification for templating

LODSPeaKr currently allows people to specify templates for different types. That means that a resource will displayed using a particular template if it appears in the query

SELECT ?instance WHERE{
  ?instance a <CLASS>
}

From that perspective, it is possible to think other queries that allow to define templates. Several questions arise:

  • Can multiple queries be used to define which template to use?
  • If so, how to resolve that?

clarify "404" error

Not useful:

LODSPeaKr could not find http://datafaqs.tw.rpi.edu/datafaqs/epoch/2012-01-26/faqt/2/dataset/1 or information about it.

consider renaming 'base' variable

In https://github.com/alangrafu/lodspeakr/wiki/Special-URIs you show code example:

{%for h in base.header %}

perhaps it would be easier to use if it were something like:

{%for h in lodspeakr.header %}

much like how jquery is the (long-named) object you use to use jquery. It would help developers know when they are talking to lodspeakr and when they are talking to, say haanga or something.

or something shorter like lodspk so it is easier to type.

Create "special" URIs

Sometimes it is desirable to have special URIs that are not listed in the triple store nor pages generated for conneg. For example, a triple store may content several instances of class foaf:Person. Currently, it is not possible to list those entities, since that URI (most likely) won't be dereferenceable by lodspeakr.

//css

<link href="{{base.baseUrl}}/lodspeakr/css/basic.css" rel="stylesheet" type="text/css" media="screen" />

produces:

"<link href="http://aquarius.tw.rpi.edu/datafaqs//lodspeakr/css/basic.css" rel="stylesheet" type="text/css" media="screen" />"

all of the templates using this need to be hunted down.

unreassuring prints from ldspk.sh

lebot@aquarius:/var/www/datafaqs/DataFAQs-lodspeakr$ utils/ldspk.sh create class datafaqs:Epoch html
/var/www/datafaqs/DataFAQs-lodspeakr/utils/modules/create-class.sh: line 122: warning: here-document at line 71 delimited by end-of-file (wanted `VIEW')
/var/www/datafaqs/DataFAQs-lodspeakr/utils/modules/create-class.sh: line 81: warning: here-document at line 77 delimited by end-of-file (wanted `QUERY')
/var/www/datafaqs/DataFAQs-lodspeakr/utils/modules/create-class.sh: line 83: warning: here-document at line 81 delimited by end-of-file (wanted `VIEW')
WARNING: At least one model for datafaqs:Epoch exists.
WARNING: At least one view for datafaqs:Epoch exists.
class.datafaqs:Epoch created/modified successfully!

Debug mode and backup/restore in lodspk.sh

util/lodspk.sh debug on|off turns debug mode on/off

util/lodspk.sh backup storesa copy of models/views/settings.inc.php

util/lodspk.sh restore 20120120180901 restores models/views/settings from backup done in 20120120180901

add services, types, and uris to index

http://aquarius.tw.rpi.edu/datafaqs/index.html

shows

Services available

    List of classes in the triple store
    Named graphs in the triple store

even though there are three other services in there.

Also, what types can I feed this lodspeakr? These should be listed in the index by default.

find . around in the models/ to list these from php.

after running:

utils/lodspk.sh create service datasets html

the service "datasets" should appear in the index automatically.

Allow to extend values by varname.value.FUNCTIONS

Good Idea from Eric: to write a function in php and allow user to implement functionalities that can be appended in .value

Example: Return the value as an array

{{varname.value.split.tostring}}

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.