Module ontologies

Source
Available on crate feature rdf only.
Expand description

§RDF Ontology Summary

§Document D
structfieldtriple
D <rdf:#type> <ulo:#document>
language lD <dc:#language> l
in archive AA <ulo:#contains> D
DocumentReference.target=D2D <dc:#hasPart> D2
UseModule(M)D <dc:#requires> M
ParagraphD <ulo:#contains> P
P.kind=DefinitionP <rdf:#type> <ulo:#definition>
P.kind=AssertionP <rdf:#type> <ulo:#proposition>
P.kind=ParagraphP <rdf:#type> <ulo:#para>
P.kind=ExampleP <rdf:#type> <ulo:#example>
is Example and _.fors.contains(S)P <ulo:#example-for> S
is_definition_like and _.fors.contains(S)P <ulo:#defines> S
Problem ED <ulo:#contains> E
.sub_problem==falseE <rdf:#type> <ulo:#problem>
.sub_problem==trueE <rdf:#type> <ulo:#subproblem>
_.preconditions.contains(d,S)E <ulo:#precondition> <BLANK>
<BLANK> <ulo:#cognitive-dimension> d, where d=<ulo:#cs-remember><ulo:#cs-understand><ulo:#cs-apply><ulo:#cs-analyze><ulo:#cs-evaluate><ulo:#cs-create>
<BLANK> <ulo:#po-symbol> S
_.objectives.contains(d,S)E <ulo:#objective> <BLANK>
<BLANK> <ulo:#cognitive-dimension> d, where d=<ulo:#cs-remember><ulo:#cs-understand><ulo:#cs-apply><ulo:#cs-analyze><ulo:#cs-evaluate><ulo:#cs-create>
<BLANK> <ulo:#po-symbol> S
§Module M

§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

Macros§

count 🔒
dict 🔒