-
Notifications
You must be signed in to change notification settings - Fork 1
Resource field formats
With Lodex, it is possible to choose the display format of field value. A field value is the "Object" for a triple (subject-predicate-object). The format directly depends of the export format.
There are usually 2 different cases, for HTML export et for all others cases. In the prototype, HTML transformation is made by a dedicated web component.
no transformation
for HTML output transform syntax to HTML
for all others cases, no transformation
for HTML output transform ISODate to Human and locale date
for all others cases, no transformation
Note : Could be renamed
For output HTML generate graphics from an API REST giving access to MongoDB operators as is done in ezvis for all others cases, REST API URL
for HTML output transform url to image view with some features (like lightbox2)
for all others cases, no transformation
for HTML output transform uri to href link with icon and text label
for HTML output transform uri to a frame with title, link and description
for HTML output transform elastic query to small result interface with pagination and filter
for all RDF formats transform elastic query to triplets with ISTEX identifiers
for HTML output transform a string with separtors to unodered list (
- )
- "label"
- "scheme"
-
"type" the URI of an XML Schema type (string, boolean, decimal, float, double, duration, dateTime, time, date, ...)
-
"content"
- "cover" (Could be improved andor renamed)
- "format"
- "formatOptions"
- "displayAreas" (Could be improved)
- "settings" (Could be improved)
- "complete" (Could be renamed)
- "composedOf" (Could be renamed)
- "position" (Could be improved and renamed)
- baseURL
-
piwikTrackerID
-
databaseName
-
ark
-
naan
-
subpublisher
-
-
itemsPerPage
-
prints :
-
"access": {
-
"login": "apa",
-
"sha1": "e41550151e3c09a174b499a9379417e498a3d7c0"
-
},
-
blank
-
validated
-
rejected
for HTML output transform SPARQL query to small result interface with pagination and filter
Code source references :
**Field characteristics : **
All fields are calculated on the fly, unless they are published. To do this, the JSON structure is interpreted as a JBJ stylesheet with the inject method. So the content of each field is computed by the crossing (the association) of the mongoDB document structure and the JBJ code.
Code source references :
Required characteristics :
a free title for the field
the URI of a property (maybe found on the LoV with the search API http://lov.okfn.org/dataset/lov/api#searchVocabsv2)
the content of the field
dataset : the field is shared by all dataset resources collection : the field is present in all dataset resources document : the field exists only in just one resource
Optional characteristics :
choose an display format (see output resource format)
Specifies particular options for the display format
indicates if the field should be displayed in a dedicated area
Directives (ex: 'noindex', 'private', etc. ) to configure the search engine, the storage engine. It’s like the HTML meta tag “robots”
A field identifier that indicates that this field completes or specifies another field
An array of field identifiers indicates that this field is composed by the calculation of all the fields specified in the array
Indicate the position of the field in the list
Code source references :
Operations on the dataset :
TODO
Code source references :
Configuration options for an instance :
*required *
optionnal
States of the contributions