@@ -83,7 +83,7 @@ WOQL.distinct = function (...varNames) {
8383 * //a start_station Start, and that start_station is labeled Start_Label
8484 * let [Journey, Start, Start_Label] = vars("Journey", "Start", "Start_Label")
8585 * WOQL.and(
86- * WOQL.triple(Journey, "type", "scm :Journey"),
86+ * WOQL.triple(Journey, "rdf: type", "@schema :Journey"),
8787 * WOQL.triple(Journey, "start_station", Start),
8888 * WOQL.triple(Start, "label", Start_Label))
8989 *
@@ -191,7 +191,7 @@ WOQL.from = function (graphRef, query) {
191191 * @returns {WOQLQuery } A WOQLQuery which will be written into the graph in question
192192 * @example
193193 * //Subq is an argument or a chained query
194- * using("admin/minecraft").into("instance/main").add_triple("a", "type", "scm :X")
194+ * using("admin/minecraft").into("instance/main").add_triple("a", "rdf: type", "@schema :X")
195195 * //writes a single tripe (doc:a, rdf:type, scm:X) into the main instance graph
196196 *
197197 */
@@ -424,8 +424,8 @@ WOQL.delete_triple = function (subject, predicate, object) {
424424 * @param {string } object - The IRI of a node or a variable, or a literal
425425 * @param {typedef.GraphRef } graphRef - A valid graph resource identifier string
426426 * @returns {WOQLQuery } - A WOQLQuery which contains the Delete Quad Statement
427- * @example remove the class Person from the schema/main graph
428- * WOQL.delete_quad("Person", "type", "owl :Class", "schema/main ")
427+ * @example remove the class Person from the schema graph
428+ * WOQL.delete_quad("Person", "rdf: type", "sys :Class", "schema")
429429 */
430430WOQL . delete_quad = function ( subject , predicate , object , graphRef ) {
431431 return new WOQLQuery ( ) . delete_quad ( subject , predicate , object , graphRef ) ;
@@ -975,7 +975,7 @@ WOQL.immediately = function (subquery) {
975975 * @returns {WOQLQuery } A WOQLQuery object containing the count sub Query
976976 * @example
977977 * let [count, Person] = vars("count", "Person")
978- * WOQL.count(count).triple(Person, "type", "scm :Person")
978+ * WOQL.count(count).triple(Person, "rdf: type", "@schema :Person")
979979 */
980980WOQL . count = function ( countVarName , subquery ) {
981981 return new WOQLQuery ( ) . count ( countVarName , subquery ) ;
@@ -1186,7 +1186,7 @@ WOQL.node = function (nodeid, chainType) {
11861186 * @returns {WOQLQuery } A WOQLQuery which contains the insert expression
11871187 * @example
11881188 * insert("mydoc", "MyType")
1189- * //equivalent to add_triple("mydoc", "type", "MyType")
1189+ * //equivalent to add_triple("mydoc", "rdf: type", "@schema: MyType")
11901190 */
11911191WOQL . insert = function ( classId , classType , graphRef ) {
11921192 return new WOQLQuery ( ) . insert ( classId , classType , graphRef ) ;
0 commit comments