- 🔭 I’m currently working on Muna and the sanity-template-muna
tarjelavik / saelen-samlingen Goto Github PK
View Code? Open in Web Editor NEWSælen-samlingen
Home Page: https://www.saelen.family/
Sælen-samlingen
Home Page: https://www.saelen.family/
Might be nice to have on other nice for other stuff as well.
See https://github.com/ScottTCodes/Aoe2Leaderboard/pull/1/files for inspiration.
For å kunne bruke data fra Sanity som JSON-LD, må det lages en @context
og en mapping til de @vocab
man ønsker.
Sanity har _key
, _ref
og _id
.
_key
= er med for at sanity skal kunne spore hvem som redigerer hvilket object
i dokumentet_ref
= er en referanse til en _id
_id
= er id til et dokument
Har _id
: _id
-> @id
Bare _key
: _key
-> @id
Har _key
og _ref
: _key
og _type
slettes og _ref
-> @id
Datastrukturen er unødvendig komplisert når man bruker data uten for Sanity. Den er forutsigbar og kan bearbeides etter en håndfull mønstre. En tekst block
kan konverteres til markdown eller html før eksport.
@context
{
"@context": {
"@vocab": "http://schema.org/",
"_type" : {
"@id" : "@type"
},
"_id" : {
"@id" : "@id"
},
"_key" : {
"@id" : "@id"
},
"_ref": "http://schema.org/references"
}
Kan dette gjøres?
*[_type == "madeObject" && *[_type == "madeObject" && composedOf[]._ref == @._id]]
Legge inn funksjonalitetsforespørsel etterreferences(^._id, composedOf)
?
Det er ikke mulig å legge inn url til f.eks. YouTube.
Preview av date fungerer ikke, "no date" vises selv om timespan har date satt.
Kok dette ned til essensen.
Spacetime Volume
This class comprises 4 dimensional point sets (volumes) in physical spacetime regardless its true geometric form. They may derive their identity from being the extent of a material phenomenon or from being the interpretation of an expression defining an extent in spacetime. Intersections of instances of E92 Spacetime Volume, Place and Timespan are also regarded as instances of E92 Spacetime Volume. An instance of E92 Spacetime Volume is either contiguous or composed of a finite number of contiguous subsets. Its boundaries may be fuzzy due to the properties of the phenomena it derives from or due to the limited precision up to which defining expression can be identified with a real extent in spacetime. The duration of existence of an instance of a spacetime volume is trivially its projection on time.
Examples: the spacetime Volume of the Event of Ceasars murder. the spacetime Volume where and when the carbon 14 dating of the ""Schoeninger Speer II"" in 1996 took place. the spatio-temporal trajectory of the H.M.S. Victory from its building to its actual location. the spacetime volume defined by a polygon approximating the Danube river flood in Austria between 6th and 9th of August 2002
Declarative Spacetime Volume
This class comprises instances of SP8 Spacetime Volumes (S) whose temporal and spatial extent (U) and position is defined by a SP12 Spacetime Volume Expression. There is one implicit or explicit SP3 Reference Space in which the SP12 Spacetime Volume Expression describes the intended Spacetime Volume. As we restrict the model to Galilean physics and explicitly exclude systems with velocities close to the speed of light we do not model a “Reference Time” as it would be necessary for relativistic physics. This implies that there is only one Reference Time. Even though SP12 Spacetime Volume Expressions have an unlimited precision, measurement devices and the precision of the position of reference features relating the SP4 Spatial Coordinate Reference System to a SP3 Reference Space impose limitations to the determination of the spatial part of a SP7 Declarative Spacetime Volume in the real world (U). The same limitation to precision is true for the temporal part of a SP7 Declarative Spacetime Volume due to precision of time measurement devices and of the determination of the reference event of a SP11 Temporal Reference System. Several SP12 Spacetime Volume Expressions may denote the same SP7 Declarative Spacetime Volume if their precision falls within the same range (I). Instances of SP7 Declarative Spacetime Volumes may be used to approximate instances of SP8 Spacetime Volumes or parts of them. They may as well be used to define the spatial and temporal extent of property rights or national borders.
Examples: • the spacetime volume defined by a polygon approximating the Danube river flood in Austria between 6th and 9th of August 2002 • the spacetime volume of the Orinoco river in 1529 defined in the map of Diego Ribeiro in 1529 • the spacetime volume representing the boundaries of the UK from 1900-1950
Phenomenal Spacetime Volume
This class comprises the 4 dimensional point sets (volumes) (S) which material phenomena (I) occupy in Space-Time (S). An instance of S1 Space Time Volume represents the true (I) extent of an instance of E4 Period in spacetime or the true (I) extent of the trajectory of an instance of E18 Physical Thing during the course of its existence, from production to destruction. A fuzziness of the extent lies in the very nature of the phenomenon, and not in the shortcomings of observation (U). The degree of fuzziness with respect to the scale of the phenomenon may vary widely, but the extent is never exact in a mathematical sense. According to modern physics, points in space-time are absolute with respect to the physical phenomena happening at them, regardless the so-called Galilean relativity of spatial or temporal reference systems in terms of which an observer may describe them. Following the theory, points relative to different spatial or temporal reference systems can be related if common points of phenomena in space-time are known in different systems. Instances of S1 Space-Time Volume are sets of such absolute space-time points of phenomena (I).The (Einstein) relativity of spatial and temporal distances is of no concern for the scales of things in the cultural-historical discourse, but does not alter the above principles. The temporal projection of an instance of SP1 Space-Time Volume defines an E52 Time-Span while its spatial projection defines an SP2 Phenomenal Place. The true location of an instance of E18 Physical Thing during some time-span can be regarded as the spatial projection of the restriction of its trajectory to the respective time-span.
Examples: • The Space Time Volume of the Event of Ceasars murdering • The Space Time Volume where and when the carbon 14 dating of the "Schoeninger Speer II" in 1996 took place • The spatio-temporal trajectory of the H.M.S. Victory from its building to its actual location • The Space Time Volume of the temple in Abu Simbel before its removal
Jeg vil søke i https://api.nb.no/ etter dokument, velge ett og hente manifest-metadata med den nye funksjonaliteten i Sanity, https://www.sanity.io/docs/custom-asset-sources.
Om jeg får CORS trøbbel:
https://docs.netlify.com/routing/redirects/rewrites-proxies/#proxy-to-another-service
https://medium.com/@banyudu/developing-serverless-cors-proxy-e2d2d90bc96c
Nødvendig? Kanskje ikke, men får teste det ut
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.