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
| <?xml version="1.0"?> | |
| <rdf:RDF xmlns="http://www.w3.org/2002/07/owl#" | |
| xml:base="http://www.w3.org/2002/07/owl" | |
| xmlns:ex="http://www.example.org/" | |
| xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | |
| xmlns:owl="http://www.w3.org/2002/07/owl#" | |
| xmlns:xsd="http://www.w3.org/2001/XMLSchema#" | |
| xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
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
| try { | |
| $save = drupal_write_record(); | |
| } | |
| catch (Exception $e) { | |
| watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL); | |
| } | |
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
| Return-Path: lsu01@email.wm.edu | |
| Received: from zfront2.inria.fr (LHLO zfront2.inria.fr) (193.51.193.148) by | |
| zmbs4.inria.fr with LMTP; Wed, 30 Apr 2014 13:46:31 +0200 (CEST) | |
| Received: from zfront2.inria.fr (localhost [127.0.0.1]) | |
| by zfront2.inria.fr (Postfix) with ESMTP id F2617A12F9; | |
| Wed, 30 Apr 2014 13:46:30 +0200 (CEST) | |
| Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) | |
| by zfront2.inria.fr (Postfix) with ESMTPS id E7341A12BB | |
| for <sancheza@zimbra.inria.fr>; Wed, 30 Apr 2014 13:46:30 +0200 (CEST) | |
| Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender |
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
| #!/usr/bin/env ruby | |
| # | |
| # Locates and removes Homebrew installation | |
| # http://brew.sh/ | |
| # | |
| # Author: Stephen Benner | |
| # https://github.com/SteveBenner | |
| # | |
| # Contributors: | |
| # - @AaronKulick |
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
| $query = db_select('node', 'n'); | |
| $query->fields('n', array('nid', 'title')); | |
| $query->addField('n', 'nid', 'A'); | |
| $query->addField('n', 'title', 'B'); | |
| $query->leftJoin('field_data_field_nombre_event', 'namev', 'n.nid = namev.entity_id'); | |
| $query->fields('namev', array('field_nombre_event_value')); | |
| $query->addField('namev', 'field_nombre_event_value', 'C'); |
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
| <?php | |
| class ActualidadMigration extends DrupalNode6Migration { | |
| public function __construct(array $arguments) { | |
| parent::__construct($arguments); | |
| $this->addFieldMapping('field_image', 'field_actualidad_foto'); | |
| $this->addFieldMapping('field_image:source_dir', 'field_actualidad_foto_source_dir'); |
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
| SELECT evento_title, SUM(sexo='Femenino') AS femenino, SUM(sexo='Masculino') AS masculino, (COUNT(*) - SUM(sexo='Masculino') - SUM(sexo='Femenino')) as indefinidos, COUNT(*) as total FROM total GROUP BY evento_title LIMIT 0,10 |
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
| SELECT evento.nid AS evento_nid, evento.title AS evento_title, r.registration_id AS registration_id, persona.nid AS persona_nid, apellidos.field_apellidos_value AS apellidos, nombre.field_nombre_value AS nombres, t1.name AS year, t2.name AS quarter, t3.name AS sexo, t4.name AS etnia, GROUP_CONCAT(DISTINCT t5.name ORDER BY t5.name) AS tema_trans, GROUP_CONCAT(DISTINCT t6.name ORDER BY t6.tid DESC) AS place FROM node persona | |
| INNER JOIN registration r | |
| ON persona.nid = r.user_uid | |
| INNER JOIN node evento | |
| ON evento.nid = r.entity_id | |
| INNER JOIN field_data_field_apellidos apellidos | |
| ON apellidos.entity_id = persona.nid |
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
| CONSTRUCT {?s ?p ?o} | |
| WHERE {GRAPH <http://dbpedia.org> { | |
| ?s ?p ?o. | |
| } | |
| } | |
| LIMIT 10 | |
| --- | |
| CONSTRUCT {<http://xlore.org/concept/150> owl:InstanceOf ?count} |
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
| #pip install var_dump | |
| from SPARQLWrapper import SPARQLWrapper, JSON | |
| from var_dump import var_dump | |
| sparql = SPARQLWrapper("http://37.187.148.108:8890/sparql") | |
| sparql.setQuery(""" | |
| SELECT ?s ?p ?o | |
| WHERE { ?s ?p ?o.} LIMIT 10 | |
| """) | |
| sparql.setReturnFormat(JSON) |
OlderNewer