Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos discovered by codespell #1446

Merged
merged 1 commit into from
Oct 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 15 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2021/09/17 RELEASE 6.0.2
========================
Minor release to add OWL.rational & OWL.real which are needed to allow the OWL-RL pachage to use only rdflib namespaces, not it's own versions.
Minor release to add OWL.rational & OWL.real which are needed to allow the OWL-RL package to use only rdflib namespaces, not it's own versions.

* Add owl:rational and owl:real to match standard.
[PR #1428](https://github.com/RDFLib/rdflib/pull/1428)
Expand Down Expand Up @@ -193,7 +193,7 @@ _**All PRs merged since 5.0.0:**_
[PR #1220](https://github.com/RDFLib/rdflib/pull/1220)
* add GeoSPARQL ClosedNamespace
[PR #1221](https://github.com/RDFLib/rdflib/pull/1221)
* docs: fix simple typo, yeild -> yield
* docs: fix simple typo, -> yield
[PR #1223](https://github.com/RDFLib/rdflib/pull/1223)
* do not use current time in sparql TIMEZONE
[PR #1193](https://github.com/RDFLib/rdflib/pull/1193)
Expand Down Expand Up @@ -766,7 +766,7 @@ Doc improvements:
[#584](https://github.com/RDFLib/rdflib/pull/584)
* docs: clarify the use of an identifier when persisting a triplestore
[#654](https://github.com/RDFLib/rdflib/pull/654)
* DOC: unamed -> unnamed, typos
* DOC: fix simple typo, -> unnamed
[#562](https://github.com/RDFLib/rdflib/pull/562)


Expand Down Expand Up @@ -1028,7 +1028,7 @@ Following RDFLib tradition, some bugs snuck into the 4.0 release.
This is a bug-fixing release:

* the new URI validation caused lots of problems, but is
nescessary to avoid ''RDF injection'' vulnerabilities. In the
necessary to avoid ''RDF injection'' vulnerabilities. In the
spirit of ''be liberal in what you accept, but conservative in
what you produce", we moved validation to serialisation time.

Expand Down Expand Up @@ -1079,9 +1079,9 @@ This release includes several major changes:

* Handled of Literal equality was split into lexical comparison
(for normal ```==``` operator) and value space (using new ```Node.eq```
methods). This introduces some slight backwards incomaptible
methods). This introduces some slight backwards incompatible
changes, but was necessary, as the old version had
inconsisten hash and equality methods that could lead the
inconsistent hash and equality methods that could lead the
literals not working correctly in dicts/sets.
The new way is more in line with how SPARQL 1.1 works.
For the full details, see:
Expand Down Expand Up @@ -1144,7 +1144,7 @@ This release includes a lot of admin maintentance - correct
dependencies for different python versions, etc. Several py3 bugs
were also fixed.

This release drops python 2.4 compatability - it was just getting
This release drops python 2.4 compatibility - it was just getting
too expensive for us to maintain. It should however be compatible
with any cpython from 2.5 through 3.3.

Expand Down Expand Up @@ -1225,7 +1225,7 @@ Major changes:
Fixed many minor issues:
* http://code.google.com/p/rdflib/issues/detail?id=177
http://code.google.com/p/rdflib/issues/detail?id=129
Restored compatability with Python 2.4
Restored compatibility with Python 2.4
* http://code.google.com/p/rdflib/issues/detail?id=158
Reworking of Query result handling
* http://code.google.com/p/rdflib/issues/detail?id=193
Expand Down Expand Up @@ -1337,7 +1337,7 @@ they are stable.

Fixed datatype for Literal(True).

Fixed Literal to enforce contraint of having either a language
Fixed Literal to enforce constraint of having either a language
or datatype but not both.

Fixed Literal's repr.
Expand All @@ -1350,7 +1350,7 @@ Upgraded N3 parser to the one from CWM.

Fixed unicode encoding issue involving N3Parser.

N3 serializer improvments.
N3 serializer improvements.

Fixed HTTP content-negotiation

Expand Down Expand Up @@ -1392,7 +1392,7 @@ as first class objects in the SPARQL evaluation engine.
Added support for session bnodes re: sparql

Fixed prolog reduce/reduce conflict. Added Py_None IncRefs
where they were being passed into Python method invokations
where they were being passed into Python method invocations
(per drewp's patch)

Fixed sparql queries involving empty namespace prefix.
Expand Down Expand Up @@ -1608,7 +1608,7 @@ Fixed literal quoting in N3 serializer.

Fixed RDF/XML serializer to skip over N3 bits.

Changed Literal and URIRef instanciation to catch
Changed Literal and URIRef instantiation to catch
UnicodeDecodeErrors - which were being thrown when the default
decoding method (ascii) was hitting certain characters.

Expand Down Expand Up @@ -1687,7 +1687,7 @@ to the store) and whittles out results that don't match the
given REGEX term expression(s).

Store-agnostic 'fallback' implementation of transactional
rollbacks (also inefficient but provides the capablity to
rollbacks (also inefficient but provides the capability to
stores that don't support it natively). Implemented as a
wrapper that tracks a 'thread-safe' list of reversal
operations (for every add, track the remove call that reverts
Expand Down Expand Up @@ -1896,7 +1896,7 @@ needed to run on Python2.2.

Added alternative to shlib.move() if it isn't present.

Fixed bug that occured when specifying a backend to
Fixed bug that occurred when specifying a backend to
InformationStore's constructor.

Fixed bug recently introduced into InformationStore's remove
Expand Down Expand Up @@ -2042,7 +2042,7 @@ BNode prefix is now composed of ascii_letters instead of letters.

Added a bsddb backed InformationStore.

Added an asyncronous load method, methods for scheduling context
Added an asynchronous load method, methods for scheduling context
updates, and a run method.


Expand Down
2 changes: 1 addition & 1 deletion docs/intro_to_parsing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ To store a graph in a file, use the :func:`rdflib.Graph.serialize` function:
This parses data from http://www.w3.org/People/Berners-Lee/card and stores it in a file ``tbl.ttl`` in this directory
using the turtle format as a default.

To read the same data and to save it in a varable ``v`` a string in the RDF/XML format, do this:
To read the same data and to save it in a variable ``v`` a string in the RDF/XML format, do this:

.. code-block:: python

Expand Down
2 changes: 1 addition & 1 deletion rdflib/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def _discrete(self, coloring: List[Color]) -> bool:
def _initial_color(self) -> List[Color]:
"""Finds an initial color for the graph.

Finds an initial color fo the graph by finding all blank nodes and
Finds an initial color of the graph by finding all blank nodes and
non-blank nodes that are adjacent. Nodes that are not adjacent to blank
nodes are not included, as they are a) already colored (by URI or literal)
and b) do not factor into the color of any blank node.
Expand Down
24 changes: 12 additions & 12 deletions rdflib/namespace/_BRICK.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class BRICK(DefinedNamespace):
Detention_Room: URIRef # A space for the temporary involuntary confinement of people
Dew_Point_Setpoint: URIRef # Sets dew point
Dewpoint_Sensor: URIRef # Senses the dewpoint temperature . Dew point is the temperature to which air must be cooled to become saturated with water vapor
Differential_Air_Temperature_Setpoint: URIRef # Sets temperature of diffrential air
Differential_Air_Temperature_Setpoint: URIRef # Sets temperature of differential air
Differential_Pressure_Bypass_Valve: URIRef # A 2-way, self contained proportional valve with an integral differential pressure adjustment setting.
Differential_Pressure_Deadband_Setpoint: URIRef # Sets the size of a deadband of differential pressure
Differential_Pressure_Integral_Time_Parameter: URIRef
Expand All @@ -249,7 +249,7 @@ class BRICK(DefinedNamespace):
Direct_Expansion_Cooling_Coil: URIRef
Direct_Expansion_Heating_Coil: URIRef
Direction_Command: URIRef # Commands that affect the direction of some phenomenon
Direction_Sensor: URIRef # Measures the direction in degrees in which a phenomenon is occuring
Direction_Sensor: URIRef # Measures the direction in degrees in which a phenomenon is occurring
Direction_Status: URIRef # Indicates which direction a device is operating in
Disable_Command: URIRef # Commands that disable functionality
Disable_Differential_Enthalpy_Command: URIRef # Disables the use of differential enthalpy control
Expand Down Expand Up @@ -338,7 +338,7 @@ class BRICK(DefinedNamespace):
Electrical_System: URIRef # Devices that serve or are part of the electrical subsystem in the building
Elevator: URIRef # A device that provides vertical transportation between floors, levels or decks of a building, vessel or other structure
Elevator_Shaft: URIRef # The vertical space in which an elevator ascends and descends
Elevator_Space: URIRef # The vertical space in whcih an elevator ascends and descends
Elevator_Space: URIRef # The vertical space in which an elevator ascends and descends
Embedded_Surface_System_Panel: URIRef # Radiant panel heating and cooling system where the energy heat source or sink is embedded in a radiant layer which is thermally insulated from the building structure.
Embedded_Temperature_Sensor: URIRef # Measures the internal temperature of the radiant layer of the radiant heating and cooling HVAC system.
Embedded_Temperature_Setpoint: URIRef # Sets temperature for the internal material, e.g. concrete slab, of the radiant panel.
Expand All @@ -354,7 +354,7 @@ class BRICK(DefinedNamespace):
Emergency_Power_Off_System_Status: URIRef
Emergency_Push_Button_Status: URIRef # Indicates if an emergency button has been pushed
Emergency_Wash_Station: URIRef
Employee_Entrance_Lobby: URIRef # An open space near an entrance that is typicaly only used for employees
Employee_Entrance_Lobby: URIRef # An open space near an entrance that is typically only used for employees
Enable_Command: URIRef # Commands that enable functionality
Enable_Differential_Enthalpy_Command: URIRef # Enables the use of differential enthalpy control
Enable_Differential_Temperature_Command: URIRef # Enables the use of differential temperature control
Expand Down Expand Up @@ -550,7 +550,7 @@ class BRICK(DefinedNamespace):
Humidity_Sensor: URIRef # Measures the concentration of water vapor in air
Humidity_Setpoint: URIRef # Sets humidity
Humidity_Tolerance_Parameter: URIRef # A parameter determining the difference between upper and lower limits of humidity.
IDF: URIRef # An room for an intermediate distribution frame, where cables carrying signals from the main distrubtion frame terminate and then feed out to endpoints
IDF: URIRef # An room for an intermediate distribution frame, where cables carrying signals from the main distribution frame terminate and then feed out to endpoints
Ice: URIRef # Water in its solid form
Ice_Tank_Leaving_Water_Temperature_Sensor: URIRef # Measures the temperature of water leaving an ice tank
Illuminance_Sensor: URIRef # Measures the total luminous flux incident on a surface, per unit area
Expand All @@ -576,7 +576,7 @@ class BRICK(DefinedNamespace):
Lead_Lag_Command: URIRef # Enables lead/lag operation
Lead_Lag_Status: URIRef # Indicates if lead/lag operation is enabled
Lead_On_Off_Command: URIRef # Controls the active/inactive status of the "lead" part of a lead/lag system
Leak_Alarm: URIRef # An alarm that indicates leaks occured in systems containing fluids
Leak_Alarm: URIRef # An alarm that indicates leaks occurred in systems containing fluids
Leaving_Water: URIRef # Water that is leaving a piece of equipment or system
Leaving_Water_Flow_Sensor: URIRef # Measures the rate of flow of water that is leaving a piece of equipment or system
Leaving_Water_Flow_Setpoint: URIRef # Sets the target flow rate of leaving water
Expand Down Expand Up @@ -626,10 +626,10 @@ class BRICK(DefinedNamespace):
Luminance_Setpoint: URIRef # Sets luminance
MAU: URIRef # See Makeup_Air_Unit
MDF: URIRef # A room for the Main Distribution Frame, the central place of a building where cables carrying signals meet and connect to the outside world
Mail_Room: URIRef # A room where mail is recieved and sorted for distribution to the rest of the building
Mail_Room: URIRef # A room where mail is received and sorted for distribution to the rest of the building
Maintenance_Mode_Command: URIRef # Controls whether or not a device or controller is operating in "Maintenance" mode
Maintenance_Required_Alarm: URIRef # An alarm that indicates that repair/maintenance is required on an associated device or equipment
Majlis: URIRef # In Arab countries, an Majlis is a private lounge where visitors are recieved and entertained
Majlis: URIRef # In Arab countries, an Majlis is a private lounge where visitors are received and entertained
Makeup_Air_Unit: URIRef # A device designed to condition ventilation air introduced into a space or to replace air exhausted from a process or general area exhaust. The device may be used to prevent negative pressure within buildings or to reduce airborne contaminants in a space.
Makeup_Water: URIRef # Water used used to makeup water loss through leaks, evaporation, or blowdown
Makeup_Water_Valve: URIRef # A valve regulating the flow of makeup water into a water holding tank, e.g. a cooling tower, hot water tank
Expand Down Expand Up @@ -758,7 +758,7 @@ class BRICK(DefinedNamespace):
Off_Command: URIRef # An Off Command controls or reports the binary 'off' status of a control loop, relay or equipment activity. It can only be used to stop/deactivate an associated equipment or process, or determine that the related entity is 'off'
Off_Status: URIRef # Indicates if a control loop, relay or equipment is off
Office: URIRef # A class of rooms dedicated for work or study
Office_Kitchen: URIRef # A common space, usually near or in a breakroom, where minor food preperation occurs
Office_Kitchen: URIRef # A common space, usually near or in a breakroom, where minor food preparation occurs
Oil: URIRef # a viscous liquid derived from petroleum, especially for use as a fuel or lubricant.
On_Command: URIRef # An On Command controls or reports the binary 'on' status of a control loop, relay or equipment activity. It can only be used to start/activate an associated equipment or process, or determine that the related entity is 'on'
On_Off_Command: URIRef # An On/Off Command controls or reports the binary status of a control loop, relay or equipment activity
Expand All @@ -767,7 +767,7 @@ class BRICK(DefinedNamespace):
On_Timer_Sensor: URIRef # Measures the duration for which a device was in an active or "on" state
Open_Close_Status: URIRef # Indicates the open/close status of a device such as a damper or valve
Open_Heating_Valve_Outside_Air_Temperature_Setpoint: URIRef
Open_Office: URIRef # An open space used for work or study by mulitple people. Usuaully subdivided into cubicles or desks
Open_Office: URIRef # An open space used for work or study by multiple people. Usuaully subdivided into cubicles or desks
Operating_Mode_Status: URIRef # Indicates the current operating mode of a system, device or control loop
Outdoor_Area: URIRef # A class of spaces that exist outside of a building
Output_Frequency_Sensor: URIRef
Expand Down Expand Up @@ -803,7 +803,7 @@ class BRICK(DefinedNamespace):
Ozone_Level_Sensor: URIRef # Measures the concentration of ozone in air
PAU: URIRef # A type of AHU, use to pre-treat the outdoor air before feed to AHU
PID_Parameter: URIRef
PIR_Sensor: URIRef # Detects the presense of motion in some area using the differential change in infrared intensity between two or more receptors
PIR_Sensor: URIRef # Detects the presence of motion in some area using the differential change in infrared intensity between two or more receptors
PM10_Level_Sensor: URIRef # Detects level of particulates of size 10 microns
PM10_Sensor: URIRef # Detects matter of size 10 microns
PM1_Level_Sensor: URIRef # Detects level of particulates of size 1 microns
Expand Down Expand Up @@ -871,7 +871,7 @@ class BRICK(DefinedNamespace):
Rated_Speed_Setpoint: URIRef # Sets rated speed
Reactive_Power_Sensor: URIRef # Measures the portion of power that, averaged over a complete cycle of the AC waveform, is due to stored energy which returns to the source in each cycle
Reception: URIRef # A space, usually in a lobby, where visitors to a building or space can go to after arriving at a building and inform building staff that they have arrived
Region: URIRef # A unit of geographic space, usually contigious or somehow related to a geopolitical feature
Region: URIRef # A unit of geographic space, usually contiguous or somehow related to a geopolitical feature
Reheat_Hot_Water_System: URIRef
Reheat_Valve: URIRef # A valve that controls air temperature by modulating the amount of hot water flowing through a reheat coil
Relative_Humidity_Sensor: URIRef # Measures the present state of absolute humidity relative to a maximum humidity given the same temperature
Expand Down
2 changes: 1 addition & 1 deletion rdflib/namespace/_DCAT.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class DCAT(DefinedNamespace):
# http://www.w3.org/2000/01/rdf-schema#Class
Catalog: URIRef # A curated collection of metadata about resources (e.g., datasets and data services in the context of a data catalog).
CatalogRecord: URIRef # A record in a data catalog, describing the registration of a single dataset or data service.
Dataset: URIRef # A collection of data, published or curated by a single source, and available for access or download in one or more represenations.
Dataset: URIRef # A collection of data, published or curated by a single source, and available for access or download in one or more representations.
Distribution: URIRef # A specific representation of a dataset. A dataset might be available in multiple serializations that may differ in various ways, including natural language, media-type or format, schematic organization, temporal and spatial resolution, level of detail or profiles (which might specify any or all of the above).

# http://www.w3.org/2002/07/owl#Class
Expand Down
2 changes: 1 addition & 1 deletion rdflib/namespace/_FOAF.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class FOAF(DefinedNamespace):
Document: URIRef # A document.
Group: URIRef # A class of Agents.
Image: URIRef # An image.
LabelProperty: URIRef # A foaf:LabelProperty is any RDF property with texual values that serve as labels.
LabelProperty: URIRef # A foaf:LabelProperty is any RDF property with textual values that serve as labels.
OnlineAccount: URIRef # An online account.
OnlineChatAccount: URIRef # An online chat account.
OnlineEcommerceAccount: URIRef # An online e-commerce account.
Expand Down
4 changes: 2 additions & 2 deletions rdflib/namespace/_ODRL2.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ODRL2(DefinedNamespace):
informingParty: URIRef # The Party who provides the inform use data.
inheritAllowed: URIRef # Indicates if the Policy entity can be inherited.
inheritFrom: URIRef # Relates a (child) policy to another (parent) policy from which terms are inherited.
inheritRelation: URIRef # Indentifies the type of inheritance.
inheritRelation: URIRef # Identifies the type of inheritance.
leftOperand: URIRef # The left operand in a constraint expression.
obligation: URIRef # Relates an individual Duty to a Policy.
operand: URIRef # Operand is an abstract property for a logical relationship.
Expand All @@ -73,7 +73,7 @@ class ODRL2(DefinedNamespace):
uid: URIRef # An unambiguous identifier
undefined: URIRef # Relates the strategy used for handling undefined actions to a Policy.
unit: URIRef # The unit of measurement of the value of the rightOperand or rightOperandReference of a Constraint.
xone: URIRef # The relation is satisfied when only one, and not more, of the Constaints is satisfied
xone: URIRef # The relation is satisfied when only one, and not more, of the Constraints is satisfied

# http://www.w3.org/2002/07/owl#NamedIndividual
All: URIRef # Specifies that the scope of the relationship is all of the collective individuals within a context.
Expand Down