Skip to content

Instantly share code, notes, and snippets.

@Rarian
Rarian / sparql.xml.erb
Created June 6, 2016 18:46
trippi-sqarql spring config
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<bean id="org.trippi.TriplestoreConnector"
@Rarian
Rarian / Islandora Scholar Patch
Last active November 8, 2016 13:18
Hack-ish patches for Islandora 1.7 with Fedora 3 and trippi-sparql talking to Fuseki
diff --git a/modules/islandora_scholar_embargo/islandora_scholar_embargo.module b/modules/islandora_scholar_embargo/islandora_scholar_e
index a0d3bc7..36f6937 100644
--- a/modules/islandora_scholar_embargo/islandora_scholar_embargo.module
+++ b/modules/islandora_scholar_embargo/islandora_scholar_embargo.module
@@ -210,8 +210,8 @@ WHERE {
?embargoed is:$eu ?date ;
is:$np ?notify .
FILTER(
- ?notify < '$now'^^xsd:dateTime &&
- ?date > '$pre_expiry'^^xsd:dateTime) .