A simple example on how to combine YASQE and YASR. Any SPARQL result received via YASQE are passed on to YASR. YASR, uses any prefixes defined in YASQE to prettify the SPARQL results.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adds method arg to the Drupal object for grabbing url args | |
* | |
* @author Aaron Klump, In the Loft Studios, LLC | |
* @see http://www.intheloftstudios.com | |
* @see http://gist.github.com/3078482 | |
* | |
* For use in a theme or module add the following to your .info file | |
* @code | |
* scripts[] = [path to js dir]/drupal.arg.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.commons.csv.CSVPrinter | |
import org.apache.commons.csv.CSVFormat | |
CSVPrinter printer = new CSVPrinter( | |
new PrintWriter("test.csv"), | |
CSVFormat.DEFAULT | |
) | |
answer = [ [5,6,"asdf",7],[9,10,"a b","z,x",12]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MYMODULE_views_pre_view(&$view, &$display_id, &$args){ | |
if ($view->name == 'VIEWNAME' && $display_id == 'DISPLAYNAME'){ | |
$header = 'MYCODE'; | |
$options = array( | |
'empty' => 1, | |
'content' => $header, | |
'label' => NULL, | |
); | |
$view->add_item('DISPLAYNAME', 'header', 'views','area_text_custom', $options); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rdf:RDF xml:base="http://dbpedia.org/ontology/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:owl="http://www.w3.org/2002/07/owl#"> | |
<owl:Ontology rdf:about=""> | |
<owl:versionInfo xml:lang="en">Version 3.9</owl:versionInfo> | |
<comment xml:lang="en">DBpedia 3.9 ontology stripped of all domains, and object property ranges</comment> | |
</owl:Ontology> | |
<owl:Class rdf:about="http://dbpedia.org/ontology/BasketballLeague"> | |
<rdfs:label xml:lang="el">Ομοσπονδία Καλαθοσφαίρισης</rdfs:label> |
OlderNewer