-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ttlser ListRanker fix infinite loop case for cyclical lists
Any cyclical linked list would go infinite while traversing rdf:rest, this resolves the issue and provides a simplified and clear test case.
- Loading branch information
Showing
2 changed files
with
28 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,18 @@ | ||
@prefix TEMP: <http://uri.interlex.org/temp/uris/> . | ||
@prefix ilxtr: <http://uri.interlex.org/tgbugs/uris/readable/> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
|
||
TEMP:271 a owl:Class ; | ||
rdfs:label "electrical stimulation technique" ; | ||
owl:equivalentClass [ a owl:Class ; | ||
owl:intersectionOf [ rdf:first ilxtr:technique ; | ||
rdf:rest [ rdf:first [ a owl:Restriction ; | ||
owl:onProperty ilxtr:hasPrimaryAspect ; | ||
owl:someValuesFrom <http://uri.interlex.org/tgbugs/uris/readable/aspect/electrical> ] ; | ||
rdf:rest _:sg_0_4, | ||
_:sg_0_6 ] ] ] . | ||
ilxtr:b0 rdf:first ilxtr:x ; | ||
rdf:rest | ||
ilxtr:b1 . | ||
|
||
_:sg_0_5 a owl:Restriction ; | ||
owl:onProperty ilxtr:hasProbe, | ||
ilxtr:hasSomething ; | ||
owl:someValuesFrom TEMP:272, | ||
ilxtr:electricalField . | ||
ilxtr:b1 rdf:first ilxtr:y ; | ||
rdf:rest | ||
ilxtr:b2 . | ||
|
||
_:sg_0_7 a owl:Restriction ; | ||
owl:onProperty ilxtr:hasProbe, | ||
ilxtr:hasSomething ; | ||
owl:someValuesFrom TEMP:272, | ||
ilxtr:electricalField . | ||
ilxtr:b2 rdf:first ilxtr:z ; | ||
rdf:rest | ||
ilxtr:b3 . | ||
|
||
_:sg_0_4 rdf:first _:sg_0_5 ; | ||
rdf:rest _:sg_0_6, | ||
() . | ||
|
||
_:sg_0_6 rdf:first _:sg_0_7 ; | ||
rdf:rest _:sg_0_4, | ||
() . | ||
ilxtr:b3 rdf:first ilxtr:e ; | ||
rdf:rest | ||
ilxtr:b1 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters