Class in Vocabulary of Interlinked Datasets (VoID)
Linkset
A dataset of triples that join two datasets: each triple's subject belongs to one of them and its object to the other.
URI: void:Linkset
classDiagram
class Linkset
click Linkset href "../../classes/Linkset/"
Dataset <|-- Linkset
click Dataset href "../../classes/Dataset/"
Linkset : classes
Linkset : classPartition
Linkset --> "*" ClassBasedPartition : classPartition
click ClassBasedPartition href "../../classes/ClassBasedPartition/"
Linkset : contributor
Linkset : created
Linkset : creator
Linkset : dataDump
Linkset : description
Linkset : distinctObjects
Linkset : distinctSubjects
Linkset : documents
Linkset : entities
Linkset : exampleResource
Linkset : feature
Linkset --> "*" TechnicalFeature : feature
click TechnicalFeature href "../../classes/TechnicalFeature/"
Linkset : homepage
Linkset : id
Linkset : issued
Linkset : license
Linkset : linkPredicate
Linkset : modified
Linkset : objectsTarget
Linkset --> "0..1" Dataset : objectsTarget
click Dataset href "../../classes/Dataset/"
Linkset : openSearchDescription
Linkset : page
Linkset : properties
Linkset : propertyPartition
Linkset --> "*" PropertyBasedPartition : propertyPartition
click PropertyBasedPartition href "../../classes/PropertyBasedPartition/"
Linkset : publisher
Linkset : rootResource
Linkset : source
Linkset : sparqlEndpoint
Linkset : subject
Linkset : subjectsTarget
Linkset --> "0..1" Dataset : subjectsTarget
click Dataset href "../../classes/Dataset/"
Linkset : subset
Linkset --> "*" Dataset : subset
click Dataset href "../../classes/Dataset/"
Linkset : target
Linkset --> "2..*" Dataset : target
click Dataset href "../../classes/Dataset/"
Linkset : title
Linkset : triples
Linkset : uriLookupEndpoint
Linkset : uriRegexPattern
Linkset : uriSpace
Linkset : vocabulary
Inheritance#
- Dataset
- Linkset
Class Properties#
| Property | Value |
|---|---|
| Class URI | void:Linkset |
Slots#
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| target | 2..* Dataset | Either dataset a linkset joins, named by its IRI | direct |
| subjectsTarget | 0..1 Dataset | The dataset at the subject end of every link in a linkset, named by its IRI | direct |
| objectsTarget | 0..1 Dataset | The dataset at the object end of every link in a linkset, named by its IRI | direct |
| linkPredicate | 0..1 Uriorcurie | The property every link of a linkset has as its predicate, such as owl:sameAs | direct |
| id | 1 Uriorcurie | The IRI of the dataset, document or feature, written in full or as a CURIE | Dataset |
| title | 0..1 String | A human-readable name for the dataset or document | Dataset |
| description | 0..1 String | A few sentences of prose saying what the dataset or document contains | Dataset |
| creator | * Uri | The IRI of the agent, human or not, that chiefly made the dataset or document | Dataset |
| contributor | * Uri | The IRI of an agent that added to the dataset without being its main maker | Dataset |
| publisher | 0..1 Uri | The IRI of the agent that releases the dataset for others to use | Dataset |
| source | * Uri | The IRI of an earlier resource whose content the dataset draws on | Dataset |
| created | 0..1 Date | The date the dataset or document was made | Dataset |
| issued | 0..1 Date | The date the dataset was first published | Dataset |
| modified | 0..1 Date | The date the dataset or document last changed | Dataset |
| license | 0..1 Uri | The IRI of the licence that sets the terms for using the dataset | Dataset |
| subject | * Uri | The IRI of a topic the dataset covers, such as a DBpedia resource or a SKOS c… | Dataset |
| homepage | 0..1 Uri | The web page about the dataset itself | Dataset |
| page | * Uri | Any further web page with information on the dataset, for instance its downlo… | Dataset |
| feature | * TechnicalFeature | Something the dataset’s server or files support, for instance an RDF syntax, … | Dataset |
| sparqlEndpoint | * Uri | A SPARQL service whose default graph holds the dataset, for running queries o… | Dataset |
| dataDump | * Uri | A downloadable RDF file holding all of the dataset or a share of it | Dataset |
| uriLookupEndpoint | * Uri | A web address that, with an entity’s percent-encoded IRI added to its end, an… | Dataset |
| openSearchDescription | * Uri | An OpenSearch file telling a client how to run keyword searches over the data… | Dataset |
| rootResource | * Uri | The IRI of a starting point for crawling the dataset: a resource from which l… | Dataset |
| exampleResource | * Uri | The IRI of an entity typical of the dataset, for a reader to look up | Dataset |
| uriSpace | 0..1 String | The string every entity IRI in the dataset starts with, such as http://exampl… | Dataset |
| uriRegexPattern | 0..1 String | A regular expression in SPARQL’s syntax that each entity IRI of the dataset s… | Dataset |
| vocabulary | * Uri | The namespace IRI of a vocabulary the dataset uses, as a term’s IRI reads wit… | Dataset |
| subset | * Dataset | Another dataset contained in this one, named by its IRI | Dataset |
| classPartition | * ClassBasedPartition | The dataset’s slice for one class, given inside it | Dataset |
| propertyPartition | * PropertyBasedPartition | The dataset’s slice for one property, given inside it | Dataset |
| triples | 0..1 Integer | How many triples the dataset holds; for a linkset, how many links | Dataset |
| entities | 0..1 Integer | How many entities, resources with an IRI, the dataset describes | Dataset |
| classes | 0..1 Integer | How many distinct classes the dataset’s rdf:type triples name | Dataset |
| properties | 0..1 Integer | How many distinct properties the dataset’s triples use as predicates | Dataset |
| distinctSubjects | 0..1 Integer | How many distinct IRIs and blank nodes the dataset’s triples have as subjects | Dataset |
| distinctObjects | 0..1 Integer | How many distinct IRIs, blank nodes and literals the dataset’s triples have a… | Dataset |
| documents | 0..1 Integer | How many RDF documents together carry the dataset, for example RDFa web pages | Dataset |
YAML
Expressions & Logic
#### Any OfThe class must satisfy at least one of:
- AnonymousClassExpression({ ‘description’: ‘Two targets, named with target.’, ‘slot_conditions’: {’target’: SlotDefinition({’name’: ’target’, ‘required’: True})} })
- AnonymousClassExpression({ ‘description’: “The subjects’ target and the objects’ target.”, ‘slot_conditions’: {‘subjectsTarget’: SlotDefinition({’name’: ‘subjectsTarget’, ‘required’: True}), ‘objectsTarget’: SlotDefinition({’name’: ‘objectsTarget’, ‘required’: True})} })
Comments#
- A linkset links exactly two distinct datasets: the targets, the subjects’ target and the objects’ target together name two. The validator checks that two are named; tests/test_data.py checks that they differ.
- VoID also accepts one target beside one directed target, which together name two datasets. This schema asks for both targets or both directed targets, so such a linkset names the missing one too.
Identifier and Mapping Information#
Annotations#
| property | value |
|---|---|
| note_section | 1.4 |
Schema Source#
- from schema: https://w3id.org/lmodel/void
Mappings#
| Mapping Type | Mapped Value |
|---|---|
| self | void:Linkset |
| native | void_linkml:Linkset |
LinkML Source#
Direct#
YAML
name: Linkset
annotations:
note_section:
tag: note_section
value: '1.4'
description: 'A dataset of triples that join two datasets: each triple''s subject
belongs to one of them and its object to the other.'
comments:
- 'A linkset links exactly two distinct datasets: the targets, the subjects'' target
and the objects'' target together name two. The validator checks that two are named;
tests/test_data.py checks that they differ.'
- VoID also accepts one target beside one directed target, which together name two
datasets. This schema asks for both targets or both directed targets, so such a
linkset names the missing one too.
from_schema: https://w3id.org/lmodel/void
is_a: Dataset
slots:
- target
- subjectsTarget
- objectsTarget
- linkPredicate
slot_usage:
target:
name: target
multivalued: true
minimum_cardinality: 2
maximum_cardinality: 2
class_uri: void:Linkset
any_of:
- description: Two targets, named with target.
slot_conditions:
target:
name: target
required: true
- description: The subjects' target and the objects' target.
slot_conditions:
subjectsTarget:
name: subjectsTarget
required: true
objectsTarget:
name: objectsTarget
required: true
Induced#
YAML
name: Linkset
annotations:
note_section:
tag: note_section
value: '1.4'
description: 'A dataset of triples that join two datasets: each triple''s subject
belongs to one of them and its object to the other.'
comments:
- 'A linkset links exactly two distinct datasets: the targets, the subjects'' target
and the objects'' target together name two. The validator checks that two are named;
tests/test_data.py checks that they differ.'
- VoID also accepts one target beside one directed target, which together name two
datasets. This schema asks for both targets or both directed targets, so such a
linkset names the missing one too.
from_schema: https://w3id.org/lmodel/void
is_a: Dataset
slot_usage:
target:
name: target
multivalued: true
minimum_cardinality: 2
maximum_cardinality: 2
attributes:
target:
name: target
annotations:
note_section:
tag: note_section
value: '5.1'
description: Either dataset a linkset joins, named by its IRI.
comments:
- Linkset makes it a list of two. The slot itself stays single-valued, so that
subjectsTarget and objectsTarget, its narrower slots, inherit one value each.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:target
owner: Linkset
domain_of:
- Linkset
range: Dataset
multivalued: true
pattern: ^[A-Za-z_][A-Za-z0-9_.+-]*:[^\s]+$
minimum_cardinality: 2
maximum_cardinality: 2
subjectsTarget:
name: subjectsTarget
annotations:
note_section:
tag: note_section
value: '5.1'
description: The dataset at the subject end of every link in a linkset, named
by its IRI.
from_schema: https://w3id.org/lmodel/void
rank: 1000
is_a: target
slot_uri: void:subjectsTarget
owner: Linkset
domain_of:
- Linkset
range: Dataset
pattern: ^[A-Za-z_][A-Za-z0-9_.+-]*:[^\s]+$
objectsTarget:
name: objectsTarget
annotations:
note_section:
tag: note_section
value: '5.1'
description: The dataset at the object end of every link in a linkset, named by
its IRI.
from_schema: https://w3id.org/lmodel/void
rank: 1000
is_a: target
slot_uri: void:objectsTarget
owner: Linkset
domain_of:
- Linkset
range: Dataset
pattern: ^[A-Za-z_][A-Za-z0-9_.+-]*:[^\s]+$
linkPredicate:
name: linkPredicate
annotations:
note_section:
tag: note_section
value: '5.3'
description: The property every link of a linkset has as its predicate, such as
owl:sameAs.
comments:
- A linkset has one; links with two predicates make two linksets.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:linkPredicate
owner: Linkset
domain_of:
- Linkset
range: uriorcurie
pattern: ^[A-Za-z_][A-Za-z0-9_.+-]*:[^\s]+$
id:
name: id
annotations:
note_section:
tag: note_section
value: '6.1'
description: The IRI of the dataset, document or feature, written in full or as
a CURIE.
comments:
- VoID has no property for the IRI, which RDF writes as the subject, so the key
lives in this schema's own namespace.
from_schema: https://w3id.org/lmodel/void
rank: 1000
identifier: true
owner: Linkset
domain_of:
- Dataset
- DatasetDescription
- TechnicalFeature
range: uriorcurie
required: true
pattern: ^[A-Za-z_][A-Za-z0-9_.+-]*:[^\s]+$
title:
name: title
annotations:
note_section:
tag: note_section
value: '2.2'
description: A human-readable name for the dataset or document.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:title
owner: Linkset
domain_of:
- Dataset
- DatasetDescription
range: string
description:
name: description
annotations:
note_section:
tag: note_section
value: '2.2'
description: A few sentences of prose saying what the dataset or document contains.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:description
owner: Linkset
domain_of:
- Dataset
- DatasetDescription
range: string
creator:
name: creator
annotations:
note_section:
tag: note_section
value: '2.2'
description: The IRI of the agent, human or not, that chiefly made the dataset
or document.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:creator
owner: Linkset
domain_of:
- Dataset
- DatasetDescription
range: uri
multivalued: true
contributor:
name: contributor
annotations:
note_section:
tag: note_section
value: '2.2'
description: The IRI of an agent that added to the dataset without being its main
maker.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:contributor
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
publisher:
name: publisher
annotations:
note_section:
tag: note_section
value: '2.2'
description: The IRI of the agent that releases the dataset for others to use.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:publisher
owner: Linkset
domain_of:
- Dataset
range: uri
source:
name: source
annotations:
note_section:
tag: note_section
value: '2.2'
description: The IRI of an earlier resource whose content the dataset draws on.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:source
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
created:
name: created
annotations:
note_section:
tag: note_section
value: '2.2'
description: The date the dataset or document was made.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:created
owner: Linkset
domain_of:
- Dataset
- DatasetDescription
range: date
issued:
name: issued
annotations:
note_section:
tag: note_section
value: '2.2'
description: The date the dataset was first published.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:issued
owner: Linkset
domain_of:
- Dataset
range: date
modified:
name: modified
annotations:
note_section:
tag: note_section
value: '2.2'
description: The date the dataset or document last changed.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:modified
owner: Linkset
domain_of:
- Dataset
- DatasetDescription
range: date
license:
name: license
annotations:
note_section:
tag: note_section
value: '2.4'
description: The IRI of the licence that sets the terms for using the dataset.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:license
owner: Linkset
domain_of:
- Dataset
range: uri
subject:
name: subject
annotations:
note_section:
tag: note_section
value: '2.5'
description: The IRI of a topic the dataset covers, such as a DBpedia resource
or a SKOS concept.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: dcterms:subject
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
homepage:
name: homepage
annotations:
note_section:
tag: note_section
value: '2.1'
description: The web page about the dataset itself.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: foaf:homepage
owner: Linkset
domain_of:
- Dataset
range: uri
page:
name: page
annotations:
note_section:
tag: note_section
value: '2.1'
description: Any further web page with information on the dataset, for instance
its download page or its catalogue entry.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: foaf:page
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
feature:
name: feature
annotations:
note_section:
tag: note_section
value: '2.6'
description: Something the dataset's server or files support, for instance an
RDF syntax, named by its IRI.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:feature
owner: Linkset
domain_of:
- Dataset
range: TechnicalFeature
multivalued: true
pattern: ^[A-Za-z_][A-Za-z0-9_.+-]*:[^\s]+$
sparqlEndpoint:
name: sparqlEndpoint
annotations:
note_section:
tag: note_section
value: '3.2'
description: A SPARQL service whose default graph holds the dataset, for running
queries on it.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:sparqlEndpoint
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
dataDump:
name: dataDump
annotations:
note_section:
tag: note_section
value: '3.3'
description: A downloadable RDF file holding all of the dataset or a share of
it.
comments:
- A page that links to downloads is not a dump; give it as a page instead.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:dataDump
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
uriLookupEndpoint:
name: uriLookupEndpoint
annotations:
note_section:
tag: note_section
value: '3.5'
description: A web address that, with an entity's percent-encoded IRI added to
its end, answers an HTTP GET with RDF about that entity.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:uriLookupEndpoint
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
openSearchDescription:
name: openSearchDescription
annotations:
note_section:
tag: note_section
value: '3.6'
description: An OpenSearch file telling a client how to run keyword searches over
the dataset.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:openSearchDescription
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
rootResource:
name: rootResource
annotations:
note_section:
tag: note_section
value: '3.4'
description: 'The IRI of a starting point for crawling the dataset: a resource
from which links lead, within a few hops, to all the others.'
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:rootResource
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
exampleResource:
name: exampleResource
annotations:
note_section:
tag: note_section
value: '4.1'
description: The IRI of an entity typical of the dataset, for a reader to look
up.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:exampleResource
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
uriSpace:
name: uriSpace
annotations:
note_section:
tag: note_section
value: '4.2'
description: The string every entity IRI in the dataset starts with, such as http://example.org/resource/.
comments:
- VoID writes it as a literal, not as an IRI, so the range is a string, held to
the form of an IRI's start.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:uriSpace
owner: Linkset
domain_of:
- Dataset
range: string
pattern: ^[A-Za-z][A-Za-z0-9+.-]*:[^\s]*$
uriRegexPattern:
name: uriRegexPattern
annotations:
note_section:
tag: note_section
value: '4.2'
description: A regular expression in SPARQL's syntax that each entity IRI of the
dataset satisfies.
comments:
- The validator checks no regular expression's syntax; tests/test_data.py compiles
each one in the examples.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:uriRegexPattern
owner: Linkset
domain_of:
- Dataset
range: string
vocabulary:
name: vocabulary
annotations:
note_section:
tag: note_section
value: '4.3'
description: The namespace IRI of a vocabulary the dataset uses, as a term's IRI
reads without its local name and without a final hash, such as http://xmlns.com/foaf/0.1/.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:vocabulary
owner: Linkset
domain_of:
- Dataset
range: uri
multivalued: true
pattern: '[^#]$'
subset:
name: subset
annotations:
note_section:
tag: note_section
value: '4.4'
description: Another dataset contained in this one, named by its IRI.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:subset
owner: Linkset
domain_of:
- Dataset
range: Dataset
multivalued: true
pattern: ^[A-Za-z_][A-Za-z0-9_.+-]*:[^\s]+$
classPartition:
name: classPartition
annotations:
note_section:
tag: note_section
value: '4.5'
description: The dataset's slice for one class, given inside it.
comments:
- VoID makes it a narrower subset; here it is a value, so it does not inherit
subset's range.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:classPartition
owner: Linkset
domain_of:
- Dataset
range: ClassBasedPartition
multivalued: true
inlined: true
inlined_as_list: true
propertyPartition:
name: propertyPartition
annotations:
note_section:
tag: note_section
value: '4.5'
description: The dataset's slice for one property, given inside it.
comments:
- VoID makes it a narrower subset; here it is a value, so it does not inherit
subset's range.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:propertyPartition
owner: Linkset
domain_of:
- Dataset
- ClassBasedPartition
range: PropertyBasedPartition
multivalued: true
inlined: true
inlined_as_list: true
triples:
name: triples
annotations:
note_section:
tag: note_section
value: '4.6'
description: How many triples the dataset holds; for a linkset, how many links.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:triples
owner: Linkset
domain_of:
- Dataset
- ClassBasedPartition
- PropertyBasedPartition
range: integer
minimum_value: 0
entities:
name: entities
annotations:
note_section:
tag: note_section
value: '4.6'
description: How many entities, resources with an IRI, the dataset describes.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:entities
owner: Linkset
domain_of:
- Dataset
- ClassBasedPartition
- PropertyBasedPartition
range: integer
minimum_value: 0
classes:
name: classes
annotations:
note_section:
tag: note_section
value: '4.6'
description: How many distinct classes the dataset's rdf:type triples name.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:classes
owner: Linkset
domain_of:
- Dataset
- ClassBasedPartition
- PropertyBasedPartition
range: integer
minimum_value: 0
properties:
name: properties
annotations:
note_section:
tag: note_section
value: '4.6'
description: How many distinct properties the dataset's triples use as predicates.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:properties
owner: Linkset
domain_of:
- Dataset
- ClassBasedPartition
- PropertyBasedPartition
range: integer
minimum_value: 0
distinctSubjects:
name: distinctSubjects
annotations:
note_section:
tag: note_section
value: '4.6'
description: How many distinct IRIs and blank nodes the dataset's triples have
as subjects.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:distinctSubjects
owner: Linkset
domain_of:
- Dataset
- ClassBasedPartition
- PropertyBasedPartition
range: integer
minimum_value: 0
distinctObjects:
name: distinctObjects
annotations:
note_section:
tag: note_section
value: '4.6'
description: How many distinct IRIs, blank nodes and literals the dataset's triples
have as objects.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:distinctObjects
owner: Linkset
domain_of:
- Dataset
- ClassBasedPartition
- PropertyBasedPartition
range: integer
minimum_value: 0
documents:
name: documents
annotations:
note_section:
tag: note_section
value: '4.6'
description: How many RDF documents together carry the dataset, for example RDFa
web pages.
comments:
- Use it where the triples are hard to count; triples and entities say more where
they can be given.
from_schema: https://w3id.org/lmodel/void
rank: 1000
slot_uri: void:documents
owner: Linkset
domain_of:
- Dataset
- ClassBasedPartition
- PropertyBasedPartition
range: integer
minimum_value: 0
class_uri: void:Linkset
any_of:
- description: Two targets, named with target.
slot_conditions:
target:
name: target
required: true
- description: The subjects' target and the objects' target.
slot_conditions:
subjectsTarget:
name: subjectsTarget
required: true
objectsTarget:
name: objectsTarget
required: true