SpecIF

Tutorial 2: ‘Related Terms’

Next, we would like to present two resources and a statement about both. Statements express semantic relations between resources. In a real application, a SpecIF data-set represents a semantic net with resources as nodes and statements as arcs. This example could well be the beginning of a vocabulary or ontology in the traffic domain.

Thus very fundamentally, SpecIF is to represent entities, objects or nodes (called resources) on one hand and relations or arcs (called statements) on the other.

{
    "statementClasses": [{
        "id": "SC-isSpecializationOf",
        "title": "is a specialization of",
        "description": "Signifies that a term is a specialization of another, such as 'Passenger Car' and 'Vehicle'.",
        "changedAt": "2018-03-21T18:06:20+01:00"
    }],
    "statements": [{
        "id": "S-X0lXi7lJP9DQs",
        "class": "SC-isSpecializationOf",
        "subject": "R-1234",
        "object": "R-9876",
        "changedAt": "2020-03-01T07:59:00+01:00"
    }]
}

Some explanations may help to understand the principles:

Let us have a look at the full example, now:

{
    "$schema": "https://specif.de/v1.0/schema.json",
    "id": "P-Related-Terms",
    "title": "Project 'Related Terms'",
    "resourceClasses": [{
        "id": "RC-ResourceTerm",
        "title": "Resource Term",
        "changedAt": "2020-03-01T07:59:00+01:00"
    }],
    "statementClasses": [{
        "id": "SC-isSpecializationOf",
        "title": "is a specialization of",
        "description": "Signifies that a term is a specialization of another, such as 'Passenger Car' and 'Vehicle'.",
        "subjectClasses": ["RC-ResourceTerm"],
        "objectClasses": ["RC-ResourceTerm"],
        "changedAt": "2018-03-21T18:06:20+01:00"
    }],
    "resources": [{
        "id": "R-9876",
        "title": "Vehicle",
        "description": "Any means in or by which someone travels or something is carried or conveyed; a means of conveyance or transport. (Source: dictionary.com)",
        "class": "RC-ResourceTerm",
        "changedAt": "2020-03-01T07:59:00+01:00"
    },{
        "id": "R-1234",
        "title": "Lorry",
        "description": "Any of various conveyances running on rails, as for transporting material in a mine or factory. (Source: dictionary.com)",
        "class": "RC-ResourceTerm",
        "changedAt": "2020-03-01T07:59:00+01:00"
    }],
    "statements": [{
        "id": "S-X0lXi7lJP9DQs",
        "class": "SC-isSpecializationOf",
        "subject": "R-1234",
        "object": "R-9876",
        "changedAt": "2020-03-01T07:59:00+01:00"
    }],
    "hierarchies": [{
        "id": "N-78cf736b276",
        "resource": "R-1234",
        "changedAt": "2020-03-01T07:59:00+01:00"
    },{
        "id": "N-78cf736b277",
        "resource": "R-9876",
        "changedAt": "2020-03-01T07:59:00+01:00"
    }]
}

Some more explanations:

You may also view/download the example Related Terms or work with it using the SpecIF Viewer.