This file contains 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
<!-- In your demoFoxmlToSolr.xslt, do this! --> | |
<!-- Put this with the rest of your includes --> | |
<xsl:include href="/path/to/islandora_transforms/hierarchy.xslt"/> | |
<!-- Then put this in your main template --> | |
<xsl:variable name="ancestors"> | |
<xsl:call-template name="get-ancestors"> | |
<xsl:with-param name="PID" select="/foxml:digitalObject/@PID" /> | |
</xsl:call-template> |
This file contains 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
$ Xvfb :1 -screen 0 1024x768x24 & | |
$ DISPLAY=:1 ~/eclipse/eclimd -b |
This file contains 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
drush eval "field_delete_field(ISLANDORA_TN_FIELD);" | |
drush eval "field_delete_field(ISLANDORA_MODS_FIELD);" | |
drush eval "field_delete_field(ISLANDORA_BASIC_IMAGE_MEDIUM_SIZE_FIELD);" | |
drush eval "field_delete_field(ISLANDORA_DC_CONTRIBUTOR_FIELD);" | |
drush eval "field_delete_field(ISLANDORA_DC_COVERAGE_FIELD);" | |
drush eval "field_delete_field(ISLANDORA_DC_CREATOR_FIELD);" | |
drush eval "field_delete_field(ISLANDORA_DC_DATE_FIELD);" | |
drush eval "field_delete_field(ISLANDORA_DC_DESCRIPTION_FIELD);" | |
drush eval "field_delete_field(ISLANDORA_DC_FORMAT_FIELD);" | |
drush eval "field_delete_field(ISLANDORA_DC_IDENTIFIER_FIELD);" |
This file contains 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
PREFIX nt: <http://www.jcp.org/jcr/nt/1.0> | |
PREFIX pcdm: <http://pcdm.org/models#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX modsrdf: <http://www.loc.gov/mods/modsrdf/v1#> | |
PREFIX content: <http://purl.org/rss/1.0/modules/content/> | |
PREFIX sioct: <http://rdfs.org/sioc/types#> | |
PREFIX dc11: <http://purl.org/dc/elements/1.1/> | |
PREFIX islandora: <http://islandora.ca/ontology/v2/> |
This file contains 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
=== FIRST QUERY === | |
PREFIX dc: <http://purl.org/dc/terms/> | |
DELETE WHERE | |
{ | |
<> dc:title ?o0 . | |
} ; | |
INSERT DATA { | |
<> dc:title "Stuff" . |
This file contains 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
~ $ curl -X POST "http://localhost:8080/fcrepo/rest" | |
http://localhost:8080/fcrepo/rest/f5/15/30/ca/f51530ca-bc1d-4682-ba39-063e2c0f7fc5⏎\ | |
~ $ curl -H "Accept: application/ld+json" "http://localhost:8080/fcrepo/rest/f5/15/30/ca/f51530ca-bc1d-4682-ba39-063e2c0f7fc5" | |
[ { | |
"@id" : "http://localhost:8080/fcrepo/rest/f5/15/30/ca/f51530ca-bc1d-4682-ba39-063e2c0f7fc5", | |
"@type" : [ "http://www.w3.org/ns/ldp#RDFSource", "http://www.w3.org/ns/ldp#Container", "http://www.jcp.org/jcr/nt/1.0folder", "http://www.jcp.org/jcr/nt/1.0hierarchyNode", "http://www.jcp.org/jcr/nt/1.0base", "http://www.jcp.org/jcr/mix/1.0created", "http://fedora.info/definitions/v4/repository#Container", "http://fedora.info/definitions/v4/repository#Resource", "http://www.jcp.org/jcr/mix/1.0lastModified", "http://www.jcp.org/jcr/mix/1.0referenceable" ], | |
"http://fedora.info/definitions/v4/repository#created" : [ { | |
"@type" : "http://www.w3.org/2001/XMLSchema#dateTime", | |
"@value" : "2015-05-28T17:46:27.826Z" |
This file contains 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
~ $ curl -X POST "http://localhost:8080/fcrepo/rest" | |
http://localhost:8080/fcrepo/rest/5a/cb/b1/1b/5acbb11b-af93-4e4d-9610-6ab7804ce5d1⏎ ~ $ | |
curl -X PATCH -H "Content-Type: application/sparql-update" --data-binary "@test.sparql" "http://localhost:8080/fcrepo/rest/5a/cb/b1/1b/5acbb11b-af93-4e4d-9610-6ab7804ce5d1" | |
~ $ curl -H "Accept: application/ld+json" "http://localhost:8080/fcrepo/rest/5a/cb/b1/1b/5acbb11b-af93-4e4d-9610-6ab7804ce5d1" | |
[ { | |
"@id" : "http://localhost:8080/fcrepo/rest/5a/cb/b1/1b/5acbb11b-af93-4e4d-9610-6ab7804ce5d1", | |
"@type" : [ "http://www.w3.org/ns/ldp#RDFSource", "http://www.w3.org/ns/ldp#Container", "http://www.jcp.org/jcr/nt/1.0folder", "http://www.jcp.org/jcr/nt/1.0hierarchyNode", "http://www.jcp.org/jcr/nt/1.0base", "http://www.jcp.org/jcr/mix/1.0created", "http://fedora.info/definitions/v4/repository#Container", "http://fedora.info/definitions/v4/repository#Resource", "http://www.jcp.org/jcr/mi |
This file contains 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" encoding="UTF-8"?> | |
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd | |
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd"> | |
<!-- component-wide configuration of fcrepo --> | |
<bean id="fcrepo" class="org.fcrepo.camel.FcrepoComponent"> | |
<property name="authUsername" value="fedoraAdmin"/> |
This file contains 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
$fedora = Chullo::create('http://127.0.0.1:8080/fcrepo/rest'); | |
$pcdm = new Porkpie($fedora); | |
$uri = $pcdm->createObject(); | |
echo $uri; | |
echo "\n"; | |
$preservation_master_path = "/Users/danny/Desktop/memes_collection/condascending_wonka/oh_you're_an_engineer.jpg"; | |
$thumbnail_path = "/Users/danny/Desktop/memes_collection/condascending_wonka/condascending_wonka_thumbnail.png"; | |
$mods_path = "/Users/danny/Desktop/memes_collection/condascending_wonka/oh_you're_an_engineer.xml"; | |
$standard = "http://www.loc.gov/mods/v3"; |
This file contains 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
~ $ curl -X POST "http://127.0.0.1:8080/fcrepo/rest/" | |
http://127.0.0.1:8080/fcrepo/rest/aa/71/6b/1f/aa716b1f-0021-4ed3-9179-79c4c99f9722 | |
~ $ curl -X POST "http://127.0.0.1:8080/fcrepo/rest/" | |
http://127.0.0.1:8080/fcrepo/rest/b4/b8/05/e3/b4b805e3-4570-4d07-a862-ddccf7d87a00 | |
indirect.ttl | |
============ | |
@prefix ldp: <http://www.w3.org/ns/ldp#> | |
@prefix pcdm: <http://pcdm.org/models#> |
OlderNewer