Available on crate feature
rdf
only.Expand description
§RDF Ontology Summary
§Document
D
§Module
M
struct | field | triple |
---|---|---|
D <ulo:#contains> M | ||
M <rdf:#type> <ulo:#theory> | ||
Import | (M2) | M <ulo:#imports> M2 |
NestedModule | (M2) | D <ulo:#contains> M2 |
M <ulo:#contains> M2 | ||
M2 <rdf:#type> <ulo:#theory> | ||
MathStructure | (S) | M <ulo:#contains> S |
S <rdf:#type> <ulo:#structure> | ||
Import (S2 ) | S <ulo:#extends> S2 | |
Morphism | (F) | M <ulo:#contains> F |
F <rdf:#type> <ulo:#morphism> | ||
.domain =M2 | F <rdfs:#domain> M2 |
§Some Example Queries
§Unused files in ARCHIVE
:
All elements contained in the archive that are neither inputrefed elsewhere nor (transitively) contain an element that is required or imported (=> is a module) by another document:
SELECT DISTINCT ?f WHERE {
<ARCHIVE> ulo:contains ?f .
MINUS { ?d dc:hasPart ?f }
MINUS {
?f ulo:contains+ ?m.
?d (dc:requires|ulo:imports) ?m.
}
}
§All referenced symbols in DOCUMENT
:
All symbols referenced in an element that is transitively contained or inputrefed in the document:
SELECT DISTINCT ?s WHERE {
<DOCUMENT> (ulo:contains|dc:hasPart)* ?p.
?p ulo:crossrefs ?s.
}
§All symbols defined in a DOCUMENT
:
All symbols defined by a paragraph p
that is transitively contained or inputrefed in
the document:
SELECT DISTINCT ?s WHERE {
<DOCUMENT> (ulo:contains|dc:hasPart)* ?p.
?p ulo:defines ?s.
}
§All “prerequisite” concepts in a DOCUMENT
:
All symbols references in the document that are not also defined in it:
SELECT DISTINCT ?s WHERE {
<DOCUMENT> (ulo:contains|dc:hasPart)* ?p.
?p ulo:crossrefs ?s.
MINUS {
<DOCUMENT> (ulo:contains|dc:hasPart)* ?p.
?p ulo:defines ?s.
}
}
Modules§
- dc
http://purl.org/dc/elements/1.1
- owl
http://www.w3.org/2002/07/owl
- rdf
- rdfs
- ulo2
http://mathhub.info/ulo
- xsd