1
0
mirror of https://codeberg.org/fediverse/fep.git synced 2026-08-06 12:16:12 +00:00
Files
fep/fep/888d/exampleB/exampleB.ttl
T
a 2257c9eaa8 [888d] Support machine-readable term definitions, URL hacking, and alternate formats (#412)
Note: This PR copies `context.jsonld` to `fep-xxxx.jsonld` for any FEP that has an existing context document. This is intended to prevent breakage from the proposed change, which resolves `https://w3id.org/fep/xxxx` with `Accept: application/ld+json` requests to `fep/xxxx/fep-xxxx.jsonld` instead of to `fep/xxxx/context.jsonld`. This change is part of broader support for machine-readable definitions. Going forward, 888d intends to support a merged JSON-LD document that contains both a `@context` key for usage as a context document as well as a `@graph` key for usage as an ontology.

A corresponding w3id.org PR on GitHub will be filed after this one is merged.

fediverse.codeberg.page is used for everything except JSON-LD, because that subdomain will serve files with the correct content types, while raw.codeberg.page will serve all text files as text/plain. The reason JSON-LD requests still link to raw.codeberg.page is because that subdomain will serve files with `Access-Control-Allow-Origin: *` and thus support in-browser tools like `https://json-ld.org/playground`. See https://codeberg.org/Codeberg/pages-server/issues/289 for more details about this issue.

Reviewed-on: https://codeberg.org/fediverse/fep/pulls/412
Co-authored-by: a <a@trwnh.com>
Co-committed-by: a <a@trwnh.com>
2024-10-10 16:05:57 +00:00

11 lines
542 B
Turtle

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<https://w3id.org/fep/888d/exampleB> a owl:ObjectProperty ;
rdfs:label "has example relation B with"@en ;
rdfs:comment "A property that links to another node on the graph (for example, another object)"@en ;
rdfs:domain <https://w3id.org/fep/888d/SomeType> ;
rdfs:isDefinedBy <https://w3id.org/fep/888d> ;
rdfs:range rdfs:Resource ;
owl:minCardinality "0"^^xsd:nonNegativeInteger .