HXT ライブラリで、端末のプロンプトにメッセージをテキスト送信するための 2 つの関数があることを確認しました。
withTraceLevel
と
traceMsg
最初の関数「withTraceLevel」は魅力的に機能しますが、2 番目の関数は私のコードでは機能しません。
私のコードの例:
procIntersection = proc it -> do
set1 <- (getChildren >>> withTraceLevel 5 traceTree >>> traceMsg 1 "*********************************") -< it
returnA -< Intersection { setI1 = OWLNothing, setI2 = OWLNothing{--set2--} }
出力:
content of:
============
---XTag "rdf:Description"
| "rdf:about"="http://www.xfront.com/owl/ontologies/camera/#Body"
content of:
============
---XTag "owl:Restriction"
|
+---XTag "owl:onProperty"
| | "rdf:resource"="http://www.xfront.com/owl/ontologies/camera/#shutter-speed"
|
+---XTag "owl:cardinality"
| "rdf:datatype"="http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
+---XText "0"
content of:
============
---XTag "rdf:Description"
| "rdf:about"="http://www.xfront.com/owl/ontologies/camera/#Camera"
content of:
============
---XTag "owl:Restriction"
|
+---XTag "owl:onProperty"
| | "rdf:resource"="http://www.xfront.com/owl/ontologies/camera/#viewFinder"
|
+---XTag "owl:hasValue"
| "rdf:resource"="http://www.xfront.com/owl/ontologies/camera/#ThroughTheLens"
通常、2 番目の「内容」の後に次のような行があるはずです: ************ しかし、その行はそこに表示されません。