Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Root element is not indexed. #66

Open
cudevmaxwell opened this issue Dec 11, 2014 · 0 comments
Open

Root element is not indexed. #66

cudevmaxwell opened this issue Dec 11, 2014 · 0 comments

Comments

@cudevmaxwell
Copy link

Even if the root element has rdf:typehttp://fedora.info/definitions/v4/indexing#indexable, it is not indexed by the SPARQL indexer.

To reproduce:

indexing.rdf

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 {
  <> rdf:type indexing:indexable .
}
WHERE { }

title.rdf

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 {
  <> dc:title "Test Title" . 
}
WHERE { }

On the command line:

curl -X PATCH -H "Content-Type: application/sparql-update" --data-binary "@indexing.rdf" "http://localhost:8080/fcrepo/rest"
curl -X PATCH -H "Content-Type: application/sparql-update" --data-binary "@title.rdf" "http://localhost:8080/fcrepo/rest"

The root element is not added to the external indexer.

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant