id stringlengths 14 15 | text stringlengths 5 1.57k | source stringlengths 40 64 |
|---|---|---|
e6e4329de00e-0 | Index | https://book.oceaninfohub.org/genindex.html |
30b004f29c60-0 | Structured Data on the Web#
About#
Structured data on the web is a way to provide semantics and linked data in an
approachable manner. This approach expresses concepts in JSON-LD which is a
JavaScript notation popular among developers which easily expresses concepts
(terms) and links to related resources (things). ... | https://book.oceaninfohub.org/content.html |
30b004f29c60-1 | Additionally, Google leveraged schema.org/Dataset to develop and populate the
Google Data Set Search and provides guidance to developers to facilitate this.
Web architecture approach#
OIH is focused on leveraging the web architecture as the foundation for this
approach. There are several key reasons for this vs approa... | https://book.oceaninfohub.org/content.html |
30b004f29c60-2 | Another key factor is the web native and semantic nature of this representation
of metadata. Traditional metadata, such as ISO, by itself does not express a
web referenceable instance of concepts. In doing this, structured data on the
web allow connections to be made and discovered by people and machines across
many ... | https://book.oceaninfohub.org/content.html |
30b004f29c60-3 | to allow the use of the RDF data model by a broader audience. This is done by
leveraging a more popular notation for the data model, JSON, in the form of
JSON-LD. Schema.org also wanted to advance the use of structured [meta]data by
making it easier to use and connecting structured data to web pages. At the
start, t... | https://book.oceaninfohub.org/content.html |
30b004f29c60-4 | It is arguably not the best or most accurate communications strategy. It can
conflate data models, serialization and vocabularies. However, it is concise
and ubiquitous and not likely to change.
Intellectual Merit#
OIH leverages structured data o the web patterns in the form of of
Schema.org and JSON-LD encoding. Th... | https://book.oceaninfohub.org/content.html |
51c09fd5c150-0 | Search
Please activate JavaScript to enable the search
functionality.
Searching for multiple words only shows matches that contain
all words. | https://book.oceaninfohub.org/search.html |
773a8bef920a-0 | The Ocean InfoHub Project#
Introduction#
The Ocean InfoHub aims to build a sustainable, interoperable, and inclusive digital ecosystem for all Ocean data centres. Existing and emerging data systems are linked, with the ultimate goal of coordinating action and capacity to improve access to Ocean data and knowledge.
The ... | https://book.oceaninfohub.org/index.html |
773a8bef920a-1 | The ODIS-architecture development is being supported by the Ocean InfoHub Project, and it has been tested initially on IOC and partner databases. However, the system and standards are open for any institution or initiative that is interested in accessing the global data ecosystem to adopt and implement.
Guidance for th... | https://book.oceaninfohub.org/index.html |
773a8bef920a-2 | other groups can now access and index your resources. OIH is using some
existing software to index and generate the graph and expose a simple
reference interface to them. This software is open and available and others
are free to implement the approach with other software. Links to other
software are at the reposit... | https://book.oceaninfohub.org/index.html |
773a8bef920a-3 | thematic concepts are being hosted and developed with input from the community.
Additionally, methods for validation and simple tooling for authoring and
testing are hosted at this repository. Alongside these five thematic topics
guidance on connecting services and spatial context on resources.
Publishing#
Guidance on... | https://book.oceaninfohub.org/index.html |
773a8bef920a-4 | This content is harvested by the public facing Open Maps platform, which
includes a catalogue component that is fed in part by the Federal Geospatial
Platform. DCAT-based metadata is derived from the original ISO 19115 based
metadata. As this markup is recognized by web crawlers such as those hosted by
Google, content ... | https://book.oceaninfohub.org/index.html |
25fa20ac1745-0 | Publisher#
About#
This page describes the publishing process for structured data
on the web approach OIH will use.
Note many software packages you are using might already
implement this approach. See the section:
Existing support in software at the bottom of this document.
See also
We also recommend reviewing the docu... | https://book.oceaninfohub.org/publishing/publishing.html |
25fa20ac1745-1 | <script type="application/ld+json">JSON_LD content</script>
Additionally these resources that are marked up with these tags and JSON-LD
documents should be expressed in an XML sitemap file. This should follow the
guidance at https://www.sitemaps.org/. It should also include a lastmod node
element as described at http... | https://book.oceaninfohub.org/publishing/publishing.html |
25fa20ac1745-2 | a JSON-LD snippet or data graph. This small document
provides details on the resource. It can also express any explicate
connections to other resources an author may wish to express. The semantic
nature of the document also means that connections may later be discovered
through graph queries.
Pages will need a JSON-... | https://book.oceaninfohub.org/publishing/publishing.html |
25fa20ac1745-3 | "courseMode": [
"MOOC",
"online"
],
"endDate": "2019-03-21",
"startDate": "2019-02-15"
}
}
This example is from the training and courses thematic
section. To view all the types
being developed reference
the Thematic section.
These JSON-LD documents leverage schema.or... | https://book.oceaninfohub.org/publishing/publishing.html |
25fa20ac1745-4 | the specific serialization and this will likely lighten the load on the servers going forward.
Validation With SHACL or ShEx#
To help facilitate the interconnection of resource, some application focused validation
will be developed. Note, this validation does not limit what can be in the graphs.
Rather, it simply provi... | https://book.oceaninfohub.org/publishing/publishing.html |
25fa20ac1745-5 | https://json-editor.github.io/json-editor/. (Ref:
https://github.com/json-editor/json-editor)
The results of this then can be loaded into https://json-ld.org/playground/ to
validate that we have well formed JSON-LD.
Though this workflow is rather crude and manual it exposes a route to a defined
workflow based around es... | https://book.oceaninfohub.org/publishing/publishing.html |
25fa20ac1745-6 | User-agent: EarthCube_DataBot/1.0
Allow: /
Sitemap: https://example.org/sitemap.xml
sitemap.xml#
Providers will need to expose a set of resource
landing pages using a sitemap.xml file. As noted above, providers
can expose a sitemap file to just the target agent
to avoid indexing test pages by commercial providers. You... | https://book.oceaninfohub.org/publishing/publishing.html |
25fa20ac1745-7 | </sitemap>
<sitemap>
<loc>http://samples.easitemap_doclouds_igsndatagraphs.xml</loc>
<lastmod>2005-01-01</lastmod>
</sitemap>
</sitemapindex>
Full Workflow#
The architecture defines a workflow for objects seen in the above diagram.
The documents flow from; authoring, publishing and indexing to
storage... | https://book.oceaninfohub.org/publishing/publishing.html |
25fa20ac1745-8 | available to anyone who may wish to index it and provide discovery
for these resources.
OIH Portal will then index and validate these resources on a
recurring bases to maintain a current index. This index will include
both the JSON-LD objects and the graph they form. This graph can
be used for search, connections and... | https://book.oceaninfohub.org/publishing/publishing.html |
03064d09d0dd-0 | JSON-LD Foundation#
Introduction#
JSON-LD is a way of encoding Linked Data in JSON, the popular data interchange
format used by many web APIs. Linked Data is a method of representing information
on the web in a way that allows it to be linked and interconnected with other data.
This allows data from different sources t... | https://book.oceaninfohub.org/foundation/foundation.html |
03064d09d0dd-1 | may not leverage them. However, if you feel others would, or you use them yourself, it’s encouraged
to add them.
We will use the following simple JSON-LD document to show the various features of the format.
1{
2 "@context": {
3 "@vocab": "https://schema.org/"
4 },
5 "@type": "CreativeWork",
6 ... | https://book.oceaninfohub.org/foundation/foundation.html |
03064d09d0dd-2 | compacted = jsonld.compact(doc, context)
jbutils.show_graph(compacted)
Fontconfig error: "/etc/fonts/conf.d/30-0-google-crosextra-caladea-fonts.conf", line 1: Extra content at the end of the document
Fontconfig error: "/etc/fonts/conf.d/60-open-sans.conf", line 1: Extra content at the end of the document
Fontconfig err... | https://book.oceaninfohub.org/foundation/foundation.html |
03064d09d0dd-3 | 1{
2 "@context": {
3 "@vocab": "https://schema.org/"
4 },
5 "@type": "CreativeWork",
6 "@id": "https://example.org/id/XYZ",
7 "name": "Name or title of the document",
8 "description": "Description of the creative work to aid in searching",
9 "url": "https://www.sample-data-repositor... | https://book.oceaninfohub.org/foundation/foundation.html |
03064d09d0dd-4 | 3 "@vocab": "https://schema.org/",
4 "geosparql": "http://www.opengis.net/ont/geosparql#"
5 },
6 "@id": "https://example.org/id/XYZ",
7 "@type": "Dataset",
8 "name": "Data set name",
9 "geosparql:hasGeometry": {
10 "@type": "http://www.opengis.net/ont/sf#Point",
11 "geosparq... | https://book.oceaninfohub.org/foundation/foundation.html |
03064d09d0dd-5 | 3 "@vocab": "https://schema.org/"
4 },
5 "@type": "CreativeWork",
6 "@id": "https://example.org/id/XYZ",
7 "name": "Name or title of the document",
8 "description": "Description of the creative work to aid in searching",
9 "url": "https://www.sample-data-repository.org/creativework/repor... | https://book.oceaninfohub.org/foundation/foundation.html |
03064d09d0dd-6 | graph and is typically the identifier for the record.
Note
It should be noted this is the not the ID for the object being described but rather the record itself.
If you are describing a dataset with a DOI, for example, the @id is not that DOI. Rather it is the
ID, potentially the URL, for the metadata record about tha... | https://book.oceaninfohub.org/foundation/foundation.html |
03064d09d0dd-7 | 8 "description": "Description of the creative work to aid in searching",
9 "url": "https://www.sample-data-repository.org/creativework/report.pdf"
10}
The next property to focus on is the @type property. This describes the type of record we are describing.
Note
In Schema.org and in most vocabularies, types wil... | https://book.oceaninfohub.org/foundation/foundation.html |
03064d09d0dd-8 | 10}
As noted, we are using Schema.org type for OIH. In this case, as mentioned,
this is type CreativeWork. So any of the properties
seen at the Schema.org site can be used. The key properties of value to the OIH implementation can then
be found, for this type, in the Documents thematic type.
For the OIH implementa... | https://book.oceaninfohub.org/foundation/foundation.html |
03064d09d0dd-9 | In schema.org, the domain will be identified as “Used on these types”, and the
range will be identified as “Values expected to be one of these types”. You can see
this at the schema.org/knowsAbout page.
Thing and DataType#
The Thing and Datatype types
are two special types we should mention. Thing is the upper level ... | https://book.oceaninfohub.org/foundation/foundation.html |
7036d2f026bc-0 | Thematic Patterns#
Introduction#
These thematic patterns are managed by OIH and the community to add in the discovery and use
of ocean related resources. The patterns are simple examples of Schema.org types, with a focus
on the properties and type relations of value to the Ocean InfoHub and the community it engages.
T... | https://book.oceaninfohub.org/thematics/index.html |
7036d2f026bc-1 | For OIH the focus is on generic documents which can scope reports, data and other resources.
In those cases where the resources being described are of type Dataset you may wish to review
patterns developed for GeoScience Datasets by the ESIP
Science on Schema community. | https://book.oceaninfohub.org/thematics/index.html |
620f23f4014c-0 | Training#
About#
A thematic type to describe potential training activities. In Schema.org a Course
is a subtype of CreativeWork and LearningResource.
As defined from https://schema.org/Course:
Course: A description of an educational course which may be offered as distinct
instances at which take place at different tim... | https://book.oceaninfohub.org/thematics/training/index.html |
620f23f4014c-1 | 11 "@type": "Organization",
12 "name": "Example University",
13 "@id": "https://grid.ac/institutes/grid.475727.4",
14 "description": "UN Department of Economic and Social Affairs Sustainable Development"
15 }
16}
import json
from pyld import jsonld
import os, sys
currentdir = os.path.dirn... | https://book.oceaninfohub.org/thematics/training/index.html |
620f23f4014c-2 | Here we can see the emphasized line 7 and lines 10-15 highlighting some
unique types.
courseCode:
The courseCode is used to provide the ID used by the provider for this course.
provider:
The provider is the organization offering the course.
This property is from the CreativeWork supertype. In this case the provider ma... | https://book.oceaninfohub.org/thematics/training/index.html |
620f23f4014c-3 | the properties from Course and properties
from LearningResource.
We wont go into the details of each property here, but we will show a couple.
The example below present two.
1{
2 "@context": {
3 "@vocab": "https://schema.org/",
4 "endDate": {
5 "@type": "http://www.w3.org/2001/XMLSchema... | https://book.oceaninfohub.org/thematics/training/index.html |
620f23f4014c-4 | 22 },
23 "hasCourseInstance": [
24 {
25 "@type": "CourseInstance",
26 "courseMode": [
27 "MOOC1",
28 "online"
29 ],
30 "endDate": "2019-03-21",
31 "startDate": "2019-02-15",
32 "attendee": {
33 "@... | https://book.oceaninfohub.org/thematics/training/index.html |
620f23f4014c-5 | 52 ],
53 "endDate": "2019-05-21",
54 "startDate": "2019-04-15"
55 }
56 ]
57}
import json
from pyld import jsonld
import os, sys
currentdir = os.path.dirname(os.path.abspath(''))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
from lib import jbutils
with ... | https://book.oceaninfohub.org/thematics/training/index.html |
620f23f4014c-6 | should be noted while this propery can point to simple text, it is
also possible to leverage DefinedTerm. This
means a controlled vocabulary can be used to describe what the course
teaches. Ocean InfoHub provides some more information and links to further
information on defined term in
the Keywords and Defined Terms ... | https://book.oceaninfohub.org/thematics/training/index.html |
620f23f4014c-7 | Example page
OCTO
https://oceansummerschools.iode.org/
https://octogroup.org/webinars/
https://catalogue.odis.org/search/type=16
https://clmeplus.org/ | https://book.oceaninfohub.org/thematics/training/index.html |
8a5cdb3d240f-0 | Languages#
About#
JSON-LD fully support the identification of the language types. For the canonical
guide refernece JSON-LD 1.1 Language-indexing section.
Properties such as label, description, keyword and others can be
extended in the context with a container language attribute notation.
For example:
{
"@context": ... | https://book.oceaninfohub.org/thematics/languages/languages.html |
8a5cdb3d240f-1 | 6 "@container": "@language"
7 }
8 },
9 "@id": "http://example.com/queen",
10 "label": {
11 "en": "The Queen",
12 "de": [ "Die Königin", "Ihre Majestät" ]
13 }
14 }
import json
from pyld import jsonld
import os, sys
currentdir = os.path.dirname(os.path.abspath(''))
parentdir = os.pa... | https://book.oceaninfohub.org/thematics/languages/languages.html |
8a5cdb3d240f-2 | Fontconfig error: "/etc/fonts/conf.d/62-google-crosextra-caladea-fonts.conf", line 1: Extra content at the end of the document
In graph space the resulting triples from the above are:
<http://example.com/queen> <http://example.com/vocab/label> "Die Königin"@de .
<http://example.com/queen> <http://example.com/vocab/labe... | https://book.oceaninfohub.org/thematics/languages/languages.html |
8a5cdb3d240f-3 | are different and so care must be taken the creation of the SPARQL
queries not to accidentally imposed implicate filters through the use
of language types.
When trying to note the language of a distribution, the approach is a bit different.
Here we are not noting the encoding of the literal value in a record. Rather, w... | https://book.oceaninfohub.org/thematics/languages/languages.html |
8a5cdb3d240f-4 | "inLanguage": "de"
},
{
"@type": "DataDownload",
"contentUrl": "https://www.example-data-repository.org/dataset/3300/data/larval-krill_en.tsv",
"encodingFormat": "text/tab-separated-values",
"datePublished": "2010-02-03",
"inLanguage": "en"
}
],
There is also the schema.org/... | https://book.oceaninfohub.org/thematics/languages/languages.html |
da55b7db904d-0 | Licenses#
Schema.org License#
https://schema.org/license
URL
CreativeWork
License as URL - Good#
{
"@context": "https://schema.org/",
"license": "https://creativecommons.org/licenses/by/4.0/"
}
License as CreativeWork - Better?#
{
"@context": "https://schema.org/",
"license": {
"@type": "CreativeWork",
... | https://book.oceaninfohub.org/thematics/license/index.html |
f0ccbd6bb72c-0 | Spatial Geometry#
About#
For spatial geometry Ocean InfoHub guidance will be to use the OGC GeoSPARQL
vocabulary to express geometry using Well Known Text (WKT). The schema.org spatial types and propeties are not well
defined and difficult at times to reliably translate to geometries for use in more Open Geospatial Co... | https://book.oceaninfohub.org/thematics/spatial/index.html |
f0ccbd6bb72c-1 | 10 "@type": "http://www.opengis.net/ont/sf#Point",
11 "geosparql:asWKT": {
12 "@type": "http://www.opengis.net/ont/geosparql#wktLiteral",
13 "@value": "POINT(-76 -18)"
14 },
15 "geosparql:crs": {
16 "@id": "http://www.opengis.net/def/crs/OGC/1.3/CRS84"
17 ... | https://book.oceaninfohub.org/thematics/spatial/index.html |
f0ccbd6bb72c-2 | sys.path.insert(0, parentdir)
from lib import jbutils
with open("../../../odis-in/dataGraphs/thematics/spatial/graphs/basic.json") as dgraph:
doc = json.load(dgraph)
context = {
"@vocab": "https://schema.org/",
}
compacted = jsonld.compact(doc, context)
jbutils.show_graph(compacted)
Fontconfig error: "/etc/font... | https://book.oceaninfohub.org/thematics/spatial/index.html |
f0ccbd6bb72c-3 | would need to use a polygon. The following is an example of a WKT string:
POLYGON((45.066730529474505 2.6430807905900235,47.395832091974505 2.6430807905900235,47.395832091974505 0.3588601145746598,45.066730529474505 0.3588601145746598,45.066730529474505 2.6430807905900235))
This following the pattern:
'POLYGON(x1 y1, ... | https://book.oceaninfohub.org/thematics/spatial/index.html |
f0ccbd6bb72c-4 | That said, if you desire to leverage Schema.org geometries an example follows. This
is a simple example of the existing Schema.org pattern for a lat long value. There is the
pending GeospatialGeometry which is a
type Intangible (and not Place referenced by spatialCoverage). This will be a
subtype of GeoShape.
Schem... | https://book.oceaninfohub.org/thematics/spatial/index.html |
f0ccbd6bb72c-5 | sys.path.insert(0, parentdir)
from lib import jbutils
with open("../../../odis-in/dataGraphs/thematics/spatial/graphs/sos.json") as dgraph:
doc = json.load(dgraph)
context = {
"@vocab": "https://schema.org/",
}
compacted = jsonld.compact(doc, context)
jbutils.show_graph(compacted)
Fontconfig error: "/etc/fonts/... | https://book.oceaninfohub.org/thematics/spatial/index.html |
f0ccbd6bb72c-6 | read and maintain. It may also be that this imparts a performance penalty in your GeoSPARQL
queries.
It may be tha that you simplify your WKT geometry strings to a more basic form. Then link out
to the detailed geometry in a separate document. The simplified WKT (or Schema.org spatial)
make the documents smaller an... | https://book.oceaninfohub.org/thematics/spatial/index.html |
f0ccbd6bb72c-7 | 11 "description": "http://igsn.org/core/v1/description",
12 "geosparql": "http://www.opengis.net/ont/geosparql#",
13 "schema": "https://schema.org/"
14 },
15 "@id": "https://samples.earth/id/do/bqs2dn2u6s73o70jdup0",
16 "@type": "http://igsn.org/core/v1/Sample",
17 "description": "A fak... | https://book.oceaninfohub.org/thematics/spatial/index.html |
f0ccbd6bb72c-8 | 31 "geosparql:asWKT": {
32 "@type": "http://www.opengis.net/ont/geosparql#wktLiteral",
33 "@value": "POINT(-76 -18)"
34 },
35 "geosparql:crs": {
36 "@id": "http://www.opengis.net/def/crs/OGC/1.3/CRS84"
37 }
38 },
39 "geoblob": {
40 "type": "Geome... | https://book.oceaninfohub.org/thematics/spatial/index.html |
f0ccbd6bb72c-9 | sys.path.insert(0, parentdir)
from lib import jbutils
with open("../../../odis-in/dataGraphs/thematics/spatial/graphs/issue105.json") as dgraph:
doc = json.load(dgraph)
context = {
"@vocab": "https://schema.org/",
}
compacted = jsonld.compact(doc, context)
jbutils.show_graph(compacted)
Fontconfig error: "/etc/f... | https://book.oceaninfohub.org/thematics/spatial/index.html |
f0ccbd6bb72c-10 | schema.org issues
ICAN & Schema.org
OGC SELFIE
Think broad
Science on Schema spatial for dataset guidance | https://book.oceaninfohub.org/thematics/spatial/index.html |
aba36012010d-0 | Service#
About#
This section will provide information on the service type. This is not
one of the main OIH types. However, we will provide guidance here on describing
services using schema.org.
It should be noted that this might be a simple link to an OpenAPI or some
other descriptor document. Also, schema.org is no... | https://book.oceaninfohub.org/thematics/services/index.html |
aba36012010d-1 | 8 "areaServed": [
9 "Text: The geographic area where the service is provided.",
10 {"@type": "https://schema.org/Place"},
11 {"@type": "https://schema.org/GeoShape"},
12 {"@type": "https://schema.org/AdministrativeArea"}
13 ],
14 "audience": {"@type": "https://schema.org/Audience"},
15 "availableChanne... | https://book.oceaninfohub.org/thematics/services/index.html |
aba36012010d-2 | 29 {"@type": "https://schema.org/CategoryCode"},
30 {"@type": "https://schema.org/PhysicalActivityCategory"},
31 {"@type": "https://schema.org/Thing"}
32 ],
33 "hasOfferCatalog": "https://schema.org/OfferCatalog",
34 "hoursAvailable": "https://schema.org/OpeningHoursSpecification",
35 "isRelatedTo": [
36 ... | https://book.oceaninfohub.org/thematics/services/index.html |
aba36012010d-3 | 53 {"@type": "https://schema.org/Person"},
54 {"@type": "https://schema.org/Organization"}
55 ],
56 "providerMobility": "Text: Indicates the mobility of a provided service (e.g. 'static', 'dynamic').",
57 "review": {"@type": "https://schema.org/Review"},
58
59 "serviceOutput": {"@type": "https://schema.org/... | https://book.oceaninfohub.org/thematics/services/index.html |
aba36012010d-4 | 76 "description": "Text: Free text which describes this Thing.",
77 "disambiguatingDescription": "Text: A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be usef... | https://book.oceaninfohub.org/thematics/services/index.html |
aba36012010d-5 | 93 "sameAs": "URL",
94 "subjectOf": "URL",
95 "url": "URL - the URL to the item described by this JSON-LD document"
96}
import json
from pyld import jsonld
import os, sys
currentdir = os.path.dirname(os.path.abspath(''))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
from lib import jbutils
wi... | https://book.oceaninfohub.org/thematics/services/index.html |
aba36012010d-6 | ---> 46 obj = short_name(edge['object'])
47 pred = short_name(edge['predicate'])
48 if subj and obj and pred:
~/src/Projects/OIH/odis-arch/bookRev1/lib/jbutils.py in short_name(value, max_length)
22 # If the URL is too long, hide it
23 if len(short_url... | https://book.oceaninfohub.org/thematics/services/index.html |
41d3c415a507-0 | Experts and Institutions#
About#
This thematic type provides a way to describe the experts and institutions.
In this case the following definitions are used:
Expert: A person who has a deep understanding of a particular subject area.
Institution: A group of people working together to provide a particular service.
Exam... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-1 | 9 "workLocation": {
10 "@type": "Place",
11 "address": "54 Ocean Drive, 23521 Ocean City, CountryName",
12 "name": "Place name"
13 },
14 "telephone": "(425) 123-4567",
15 "url": "http://www.janedoe.com",
16 "knowsAbout": [
17 {
18 "@type": "Text",
19 "description": "Invasive species in bracki... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-2 | 35 "propertyID": "https://registry.identifiers.org/registry/orcid",
36 "url": "https://orcid.org/0000-0002-2257-9127",
37 "description": "Optional description of this record..."
38 },
39 "nationality": [
40 {
41 "@type": "Country",
42 "name": "Fiji"
43 },
44 {
45 "@type": "DefinedTerm... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-3 | sys.path.insert(0, parentdir)
from lib import jbutils
with open("../../../book/thematics/expinst/graphs/person.json") as dgraph:
doc = json.load(dgraph)
context = {
"@vocab": "https://schema.org/",
}
compacted = jsonld.compact(doc, context)
jbutils.show_graph(compacted)
Fontconfig error: "/etc/fonts/conf.d/30-0... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-4 | import os, sys
currentdir = os.path.dirname(os.path.abspath(''))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
from lib import jbutils
with open("../../../odis-in/dataGraphs/thematics/expinst/graphs/person.json") as dgraph:
doc = json.load(dgraph)
frame = {
"@context": {"@vocab": "https://... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-5 | {
"@context": {
"@vocab": "https://schema.org/"
},
"@id": "https://example.org/id/x",
"@type": "Person",
"identifier": {
"@id": "https://orcid.org/0000-0002-2257-9127",
"@type": "PropertyValue",
"description": "Optional description of this record...",
"propert... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-6 | sys.path.insert(0, parentdir)
from lib import jbutils
with open("../../../odis-in/dataGraphs/thematics/expinst/graphs/person.json") as dgraph:
doc = json.load(dgraph)
frame = {
"@context": {"@vocab": "https://schema.org/"},
"@explicit": "true",
"@type": "Person",
"nationality": ""
}
context = {
"@vo... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-7 | "@context": {
"@vocab": "https://schema.org/"
},
"@id": "https://example.org/id/x",
"@type": "Person",
"nationality": [
{
"@type": "Country",
"name": "Fiji"
},
{
"@type": "DefinedTerm",
"inDefinedTermSet": "UN/LOCODE Code Li... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-8 | is used to present that. Multiple languages can be expressed using the JSON
array [] syntax.
import json
from rdflib.extras.external_graph_libs import rdflib_to_networkx_multidigraph
from rdflib.extras.external_graph_libs import rdflib_to_networkx_graph
from pyld import jsonld
import graphviz
import os, sys
currentdi... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-9 | print(jd)
jbutils.show_graph(framed)
Fontconfig error: "/etc/fonts/conf.d/30-0-google-crosextra-caladea-fonts.conf", line 1: Extra content at the end of the document
Fontconfig error: "/etc/fonts/conf.d/60-open-sans.conf", line 1: Extra content at the end of the document
Fontconfig error: "/etc/fonts/conf.d/62-google-c... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-10 | from pyld import jsonld
import graphviz
import os, sys
currentdir = os.path.dirname(os.path.abspath(''))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
from lib import jbutils
with open("../../../odis-in/dataGraphs/thematics/expinst/graphs/person.json") as dgraph:
doc = json.load(dgraph)
fram... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-11 | Fontconfig error: "/etc/fonts/conf.d/62-google-crosextra-caladea-fonts.conf", line 1: Extra content at the end of the document
{
"@context": {
"@vocab": "https://schema.org/"
},
"@id": "https://example.org/id/x",
"@type": "Person",
"knowsAbout": [
{
"@type": "Text",
... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-12 | 5 "@id": "https://index.example.org/id/org/x",
6 "@type": "Organization",
7 "address": {
8 "@type": "PostalAddress",
9 "addressLocality": "Paris, France",
10 "postalCode": "F-75002",
11 "streetAddress": "38 avenue de l'Opera"
12 },
13 "location": {
14 "@type": "Plac... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-13 | 29 },
30 {
31 "@id": "https://orcid.org/0000-0002-2257-9127",
32 "@type": "Person"
33 }
34 ],
35 "identifier": {
36 "@id": "https://grid.ac/institutes/grid.475727.4",
37 "@type": "PropertyValue",
38 "description": "UN Department of Economic and Socia... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-14 | The aggregator doesn’t know if triples here are or are not provided by an actor
authoritative for those properties. This could be addresses with framing or validation
workflows, or ignored. The prov elements stored could be leveraged to later track
down sources, but don’t provide further information on the issue of a... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-15 | Fontconfig error: "/etc/fonts/conf.d/60-open-sans.conf", line 1: Extra content at the end of the document
Fontconfig error: "/etc/fonts/conf.d/62-google-crosextra-caladea-fonts.conf", line 1: Extra content at the end of the document
Details: Indentifier#
For each profile there are a few key elements we need to know abo... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-16 | "identifier": ""
}
context = {
"@vocab": "https://schema.org/",
}
compacted = jsonld.compact(doc, context)
framed = jsonld.frame(compacted, frame)
jd = json.dumps(framed, indent=4)
print(jd)
jbutils.show_graph(framed)
Fontconfig error: "/etc/fonts/conf.d/30-0-google-crosextra-caladea-fonts.conf", line 1: Extra cont... | https://book.oceaninfohub.org/thematics/expinst/index.html |
41d3c415a507-17 | "propertyID": "https://registry.identifiers.org/registry/grid",
"url": "https://grid.ac/institutes/grid.475727.4"
}
}
References#
schema:Person
scheme:Organization
Science on Schema Repository
https://oceanexpert.org/
Example page expert
Example page institution
Ocean Expert: reference: Adam Leadbetter | https://book.oceaninfohub.org/thematics/expinst/index.html |
193e34d54de9-0 | Vessels#
About#
OIH is exploring how we might leverage schema.org to describe research vessels.
Note that schema.org is a very broad vocabulary and as such specific concepts
like research vessel is not well aligned to current types.
In Schema.org the type Vehicle is described as a device that is designed
or used to tra... | https://book.oceaninfohub.org/thematics/vessels/index.html |
193e34d54de9-1 | parent to all Schema.org types, then leverage the property schema.org/instrument, itself
of type Thing. This approach provides an initial starting point to build out the
approach.
It should be noted that schema.org/Observation also exists but can only
currently be used with the property schema.org/diseaseSpreadStatist... | https://book.oceaninfohub.org/thematics/vessels/index.html |
193e34d54de9-2 | 13 "description": "Vessel ID "
14 },
15 "countryOfLastProcessing": "Angola",
16 "countryOfOrigin": {
17 "@type": "Country",
18 "name": "Fiji"
19 },
20 "additionalProperty": {
21 "@id": "ID_value_string",
22 "@type": "PropertyValue",
23 "propertyID": "https://en.w... | https://book.oceaninfohub.org/thematics/vessels/index.html |
193e34d54de9-3 | sys.path.insert(0, parentdir)
from lib import jbutils
with open("../../../odis-in/dataGraphs/thematics/vessels/graphs/ship.json") as dgraph:
doc = json.load(dgraph)
context = {
"@vocab": "https://schema.org/",
}
compacted = jsonld.compact(doc, context)
jbutils.show_graph(compacted)
-----------------------------... | https://book.oceaninfohub.org/thematics/vessels/index.html |
193e34d54de9-4 | 22 # If the URL is too long, hide it
23 if len(short_url) > max_length:
---> 24 pieces = split_uri(short_url)
25 return join_uri(pieces[0], '...')
26 else:
NameError: name 'split_uri' is not defined
Details: Indentifier#
For each profile... | https://book.oceaninfohub.org/thematics/vessels/index.html |
193e34d54de9-5 | "@requireAll": "true",
"@type": "Vehicle",
"identifier": ""
}
context = {
"@vocab": "https://schema.org/",
}
compacted = jsonld.compact(doc, context)
framed = jsonld.frame(compacted, frame)
jd = json.dumps(framed, indent=4)
print(jd)
jbutils.show_graph(framed)
Fontconfig error: "/etc/fonts/conf.d/30-0-googl... | https://book.oceaninfohub.org/thematics/vessels/index.html |
193e34d54de9-6 | "propertyID": "https://en.wikipedia.org/wiki/IMO_number",
"url": "https://example.org/id/vessel/X"
}
}
Details: subjectOf#
Like SOS, we are recommending the use of subjectOf to link a simple
Schema.org type to a more detailed metadata description record. This
allows us to use the easy discovery layer in Sc... | https://book.oceaninfohub.org/thematics/vessels/index.html |
193e34d54de9-7 | }
context = {
"@vocab": "https://schema.org/",
}
compacted = jsonld.compact(doc, context)
framed = jsonld.frame(compacted, frame)
jd = json.dumps(framed, indent=4)
print(jd)
jbutils.show_graph(framed)
Fontconfig error: "/etc/fonts/conf.d/30-0-google-crosextra-caladea-fonts.conf", line 1: Extra content at the end of... | https://book.oceaninfohub.org/thematics/vessels/index.html |
193e34d54de9-8 | "application/xml",
"https://foo.org/ship01"
],
"name": "external-metadata.xml"
}
}
References#
ICES
POGO
EurOcean
https://vocab.nerc.ac.uk/search_nvs/C17/
SeaDataNet
Marine Facilities Planner
EuroFleets
Identifiers to use include NOCD Code, Call Sign, ICES Shipcode, MMSI Code, IMO Code | https://book.oceaninfohub.org/thematics/vessels/index.html |
46be8daf939d-0 | Projects#
About#
Project: An enterprise (potentially individual but typically
collaborative), planned to achieve a particular aim. Use properties from
Organization, subOrganization/parentOrganization to indicate project sub-structures.
Research Project#
This is what a basic research project data graph might look like. ... | https://book.oceaninfohub.org/thematics/projects/index.html |
46be8daf939d-1 | "legalName": "",
"name": "",
"url": "",
"description": "",
"identifier": {}
}
context = {
"@vocab": "https://schema.org/",
}
compacted = jsonld.compact(doc, context)
framed = jsonld.frame(compacted, frame)
jd = json.dumps(framed, indent=4)
print(jd)
jbutils.show_graph(framed)
Fontconfig error: "/etc/fonts/... | https://book.oceaninfohub.org/thematics/projects/index.html |
46be8daf939d-2 | "@id": "https://grid.ac/institutes/grid.475727.4",
"@type": "PropertyValue",
"description": "UN Department of Economic and Social Affairs Sustainable Development",
"propertyID": "https://registry.identifiers.org/registry/grid",
"url": "https://grid.ac/institutes/grid.475727.4"
},
... | https://book.oceaninfohub.org/thematics/projects/index.html |
46be8daf939d-3 | doc = json.load(dgraph)
frame = {
"@context": {"@vocab": "https://schema.org/"},
"@explicit": "true",
"@requireAll": "true",
"@type": "ResearchProject",
"identifier": ""
}
context = {
"@vocab": "https://schema.org/",
}
compacted = jsonld.compact(doc, context)
framed = jsonld.frame(compacted, frame)
jd... | https://book.oceaninfohub.org/thematics/projects/index.html |
46be8daf939d-4 | "ResearchProject",
"PropertyValue"
],
"identifier": {
"@id": "https://grid.ac/institutes/grid.475727.4",
"@type": "PropertyValue",
"description": "UN Department of Economic and Social Affairs Sustainable Development",
"propertyID": "https://registry.identifiers.org/regist... | https://book.oceaninfohub.org/thematics/projects/index.html |
46be8daf939d-5 | 11 "logo": {
12 "@type": "ImageObject",
13 "url": "https://www.example-data-repository.org/logo.jpg"
14 },
15 "identifier": {
16 "@id": "https://grid.ac/institutes/grid.475727.4",
17 "@type": "PropertyValue",
18 "description": "UN Department of Economic and Social Affairs Sustainable Developmen... | https://book.oceaninfohub.org/thematics/projects/index.html |
46be8daf939d-6 | 33 "name": "National Science Foundation",
34 "legalName": "National Science Foundation",
35 "alternateName": "NSF",
36 "url": "https://www.nsf.gov/",
37 "identifier": {
38 "@id": "https://example.org/id/resproj/X",
39 "@type": "PropertyValue",
40 "propertyID": "https://registry.iden... | https://book.oceaninfohub.org/thematics/projects/index.html |
46be8daf939d-7 | 55 },
56 {
57 "@type": "FundingAgency",
58 "name": "Some other org",
59 "url": "https://example.funder.org/"
60 }
61 ]
62 }
63 ],
64 "ethicsPolicy": {
65 "@type": "CreativeWork",
66 "@id": "https://example.org/id/XYZ",
67 "name": "Name or ti... | https://book.oceaninfohub.org/thematics/projects/index.html |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6