Skip to content
Snippets Groups Projects
  1. Dec 05, 2013
  2. Aug 23, 2013
  3. Jun 12, 2013
  4. Jun 11, 2013
  5. Jun 10, 2013
    • alvaro's avatar
      Added support for CONSTRUCT queries in LODSPeaKr · aced42bc
      alvaro authored
      - If Query is a CONSTRUCT and client requests RDF/XML, TTL, NT, JSON -> works as usual
      - if query is a CONSTRUCT and client requests HTML
      -- Results hang from 'rdf', similar to 'models'
      
      ```
      {%for s in rdf.subjects%}
        <li>{{s.value}}</li>
      {%endfor%}
      ```
      
      Returns all the subjects. `{{s.value}}`, `{{s.curie}}`, etc.  work the same way as in models
      
      ```
      {%for p in rdf.ex__alvaro%}
        {{p.value}}
      {%endfor%}
      
      ```
      
      Returns all the predicates from `ex:alvaro` (the colon is translated to `__`). Assuming the namespace for `ex` is `http://example.org/`, this means all the rpedicates from `http://example.org/alvaro`.
      
      ```
      {%for o in rdf.ex__alvaro.rdfs__label%}
        {{o.value}}
      {%endfor%}
      
      ```
      
      returns all the objects from triples <http://example.org/alvaro> rdfs:label ?o
      
      TODO:
      
      - Blank nodes is unclear that are working now
      - Language, datatypes, etc. non-existant
      - Discussion: Combine all the models into one graph? or name them similar to 'models'? Currently adding more queries crashes
      - Probably a bunch of bugs
      aced42bc
  6. May 12, 2013
  7. Mar 27, 2013
  8. Feb 16, 2013
  9. Feb 08, 2013
  10. Dec 07, 2012
  11. Dec 03, 2012
  12. Nov 27, 2012
  13. Nov 03, 2012
  14. Oct 30, 2012
  15. Oct 29, 2012
  16. Oct 15, 2012
  17. Sep 30, 2012
  18. Sep 21, 2012
  19. Sep 06, 2012
  20. Aug 20, 2012
  21. Jul 04, 2012
  22. Jun 30, 2012
  23. Jun 25, 2012
  24. May 08, 2012
  25. Apr 20, 2012
  26. Apr 12, 2012
    • alvaro's avatar
      Adding .type and .lang to literal results · 1875d396
      alvaro authored
      For example
      
      ```
      {% for i in models.main%}
      Language tag of "{{i.variable.value}}" is "{{i.variable.lang}}"
      Datatype of "{{i.variable.value" is "{{i.variable.type}}"
      {%endfor%}
      ```
      
      This solves #105
      1875d396
Loading