Skip to content
Snippets Groups Projects
  1. Jul 09, 2021
  2. Jun 07, 2021
  3. Dec 14, 2020
  4. Nov 04, 2020
  5. Nov 02, 2020
  6. Oct 30, 2020
  7. Oct 29, 2020
  8. Oct 27, 2020
  9. Sep 11, 2015
  10. Aug 11, 2014
  11. Dec 05, 2013
  12. Nov 19, 2013
  13. Nov 05, 2013
  14. Aug 23, 2013
  15. Jun 18, 2013
  16. Jun 12, 2013
  17. Jun 11, 2013
  18. 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
  19. May 28, 2013
  20. May 16, 2013
  21. May 14, 2013
  22. May 13, 2013
  23. May 12, 2013
Loading