Like most words, space has more than one meaning, and we must use contextual reasoning to work out which is intended.
You're thinking of the meaning of space which is a mass noun: that is, uncountable, which is why the article seems misplaced to you.
For example, this is how Merriam-Webster (MW) defines the uncountable space you're thinking of:
space (n, uncountable): the boundless three-dimensional extent in which objects and events occur and have relative position and direction
However, it is the very presence of the article in your text which serves as a clue that that's not the definition being employed here.
To the contrary, because there is an article, the intended meaning must be some kind of count noun. Thus, we refer back to our dictionary, and look for definitions of space which not only fill that role in the sentence (i.e. be count nouns), but also make sense in context.
To remind us of the context:
A person who suffers from claustrophobia has a dread of being confined in a small space,
So the space under consideration must be limited (or the claustrophobe could not be confined to it), and it must be possible to have more than one of them (again, the article establishes that we're dealing with a count noun).
So, returning to Merriam-Webster:
space (n, countable): an area that is used or available for a specific purpose
That looks quite suitable: first, it is a count noun, because it's described as an area (did you notice that area can be a count noun too?), and second, it is set aside for some particular purpose, which in our case, is to confine the claustrophobe.
We can get further corroboration by looking at the subordinate glosses:
a limited extent in one, two, or three dimensions : distance, area, volume
an extent set apart or available
Again, we see articles before extent in both subdefinitions, and now we're explicitly told that the space is both set apart and, crucially, limited. That is, it's capable of being small.
The key takeaway here is not that space can take an article sometimes, but the more important lesson that when you're surprised or confused by a particular usage, it's always best to first check a dictionary to see if there are any senses for the word you were previously unaware of.
And I can tell you that this happens even to native speakers, and we use the same strategy. Surprised (baffled!) that anymore can be used in a positive context? Check a dictionary and learn that one of its meanings is nowadays.
When you use 'the' before a noun, you are referring to a specific instance of that noun. It is a definite article.
'A', an indefinite article refers to a abstract or general version of that noun, basically, it's up to the listener/reader/circumstances to fill in which specific instance (if any) fits that noun.
In your examples:
- The data extracted from a node, yes, correct. The specific data extracted from some node
- A data extracted from .... Incorrect. 'data' is plural, as Roger pointed out in the comments. If you had said A datum extracted from... you would be referring to any one datum extracted. Which datum would depend on context.
- The tea was delicious Correct. A specific tea was delicious
- A tea produced by Ahmad company. Is correct. In this case, you are referring to any one type of tea produced by Ahmad Company. The context would explain more information. For example, if you had: "ABC, a tea produced by Ahmad Company....", you would know which one. On the other hand, "Oh, I'm just drinking a tea produced by Ahmad Company....", would not define which tea.
So in answer to your question, both 'a/an' and 'the' can be used before uncountable nouns, but it is up to the rest of the sentence to determine if that usage is correct or not.
I did a quick search, and this website seems like a good resource for indefinite/definite articles.
Best Answer
1. Ordering, Asking, or Serving Water
In a restaurant or bar, the elliptical construction "a water" is acceptable, and understood to mean "a glass of water". One can often hear a request like, "Two waters and a coke, please!" or "Two cokes and a water, please!":
Examples of ordering water:
Some other examples from corpus:
2. Extended Discussion on Asking for Water
This can extend to other situations where a glass/cup would be available and a sense of serving is understood. In a home during a party in which food and drinks are served, or especially during a cocktail party, offering or asking for "a water" would be common. However, if you were just a visitor/friend, it's common to ask for "some water", especially if you don't mind it coming from the tap. Otherwise, one would ask for a bottle of water.
Situations in which "a water" would probably not be used:
3. Other uses of "a water".
"The classification of a water as potable (i.e. fit for drinking) or otherwise is based on the requirements of the European Communities (Drinking Water) (No 2) Regulations 2007 (S.I. No. 278 0f 2007)...Some coliform organisms are able to grow in soil and are not of faecal origin thus a second analysis is carried out for the presence of total coliforms, giving an indication of the general level of microbiological contamination of a water....Therefore, the more vegetable matter there is in water the greater the colour. Exceptionally, natural colour may arise from the presence of colloidal iron/manganese in a water but organic matter is almost always the cause."* (Water Services - North Tipperary County Council
Comment: This refers to a body of water as a whole, rather than a portion of water.
"An image of a water lapping a flood-level indicator on a country road may be used in a news story." (Don’t let your CMS wreck your content, part 2)
Comment: This similar to referring to "a body of water". In this case, "a water" is being used to refer to the iconic picture, stopped in time. The "body-of-water" as a whole, is lapping against something.
Other uses of "a water" in which water is used as a modifier or compound noun: