Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Prefer --data-binary to -d for cURL arguments when setting request body to the contents of a file

...

Code Block
languagebash
curl -X POST -H "Content-Type: application/json" -d-data-binary "@solr-fields.json" "http://localhost:8983/solr/schema/fields"

...

Code Block
languagebash
curl -X POST -H "Content-Type: application/sparql-update" --data-binary "@object.rdf" "http://localhost:8080/rest/indexableObject" -d "@object.rdf"
Code Block
titleobject.rdf
linenumberstrue
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX indexing: <http://fedora.info/definitions/v4/indexing#>

DELETE { }
INSERT { <> indexing:hasIndexingTransformation "default"; rdf:type indexing:indexable; dc:title "This title will show up in the index." }
WHERE { }

...