[ 
https://issues.apache.org/jira/browse/SOLR-18679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153481#comment-18153481
 ] 

Andrzej Bialecki commented on SOLR-18679:
-----------------------------------------

If we decide to use a pseudo-namespace format for metadata keys we could also 
declare these namespaces in the top-level {{IndexSchema.meta}}, which would 
allow for natural extensions that agents can understand, and the use of 
metadata from other already existing namespaces. OTOH, there's some merit in 
being intentionally lenient when it comes to the extended vocabulary, to avoid 
putting to much burden on users by requiring formal declaration of other 
namespaces.

I propose to initially include all terms present in the current version of the 
Dublin Core (DCMI: 
https://www.dublincore.org/specifications/dublin-core/dcmi-terms/) with a 
pseudo-namespace of "dc:" and allow for extensions using any other prefix, such 
as "ext:", "foo:", "myNS:", etc.

Should we reject unqualified names? or assume the "dc:" prefix? my preference 
is to assume "dc:" prefix and reject unqualified names only if they don't match 
any of the DCMI term.

The DCMI terms are:
{{abstract, accessRights, accrualMethod, accrualPeriodicity, accrualPolicy, 
alternative, audience, available, bibliographicCitation, conformsTo, 
contributor, coverage, created, creator, date, dateAccepted, dateCopyrighted, 
dateSubmitted, description, educationLevel, extent, format, hasFormat, hasPart, 
hasVersion, identifier, instructionalMethod, isFormatOf, isPartOf, 
isReferencedBy, isReplacedBy, isRequiredBy, issued, isVersionOf, language, 
license, mediator, medium, modified, provenance, publisher, references, 
relation, replaces, requires, rights, rightsHolder, source, spatial, subject, 
tableOfContents, temporal, title, type, valid}}

> Part 2: Define a base metadata vocabulary and validation rules for schema 
> metadata
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-18679
>                 URL: https://issues.apache.org/jira/browse/SOLR-18679
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Andrzej Bialecki
>            Assignee: Andrzej Bialecki
>            Priority: Major
>
> Decide what metadata keys Solr recognizes and in what format (e.g. free-form, 
> or "prefix.name" or "prefix:name", ...). Candidates are existing standards 
> such as e.g. Dublin Core, Croissant, OpenMetadata or Databricks agent 
> metadata.
> Free-form custom keys should be allowed alongside them, namespaced by 
> convention, e.g. {{{}ext.myCustomKey{}}}.
> This ticket also covers validation: key and value length limits, the total 
> size cap, and key syntax. Validation should live in one shared class so the 
> Schema API, schema loading and SolrJ all apply the same rules.
> Open question is whether any keys are required when {{<metadata>}} is present.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to