Skip to content

Commit

Permalink
fix or in example
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Jun 27, 2024
1 parent 86fc607 commit 6c462b0
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion examples/10_sparql_queries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"source": [
"## Logical operators\n",
"\n",
"Logical operators currently supported are & and ||. These operators, when applied, aggregates the condition between two terms|"
"Logical operators currently supported are & and |. These operators, when applied, aggregates the condition between two terms|"
]
},
{
Expand All @@ -746,6 +746,26 @@
"(kg.terms.cmso.hasChemicalSymbol=='Al') & (kg.terms.cmso.hasElementRatio==1.0)"
]
},
{
"cell_type": "code",
"execution_count": 42,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"cmso:hasChemicalSymbol"
]
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(kg.terms.cmso.hasChemicalSymbol=='Al') | (kg.terms.cmso.hasElementRatio==1.0)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 6c462b0

Please sign in to comment.