Questions tagged [semantics]

The study of meaning as it applies to programming languages

Semantics is the study of meaning. In computer programming, semantics refers to the relationships between symbols in a programming language, and how those symbols are combined and manipulated to produce a computing result.

Useful links

1728 questions
0
votes
0 answers

How to retrieve values from ontology

I have below owl class in my ontology, i want to retrive values in xsd:maxInclusive tags. in another words i want to get value '150' under hasCharacterCount property. How can i achieve this task??. i tried using jena api but i was only able to get…
0
votes
4 answers

geting semantically related keywords for a given word

Is there any open source/free software available that gives you semantically related keywords for a given word. for example the word dog: it should give the keywords like: animal, mammal, ... or for the word France it should give you keywords like:…
0
votes
2 answers

Semantic predicates for simultaneous string and number parsing

Having the subsequent simple grammar, I'd like to simultaneously parse strings and numbers: grammar Simple; aRule : 'fs' '(' value["textual"] ')' ; bRule : 'fi' '(' value["numeral"] ')' ; cRule : 'f' '(' (value["textual"] | value["numeral"]) ')' ; …
nemron
  • 701
  • 6
  • 23
0
votes
1 answer

How to prohibit a block (require that no block argument is given) in Ruby

I defined this method: # @return [Array] items def produce_items ["foo", "bar", "baz"] end A correct usage would be, obviously, produce_items.each do |i| puts i end But I wrote this, which silently does nothing: produce_items do |i| …
Martin Vidner
  • 2,307
  • 16
  • 31
0
votes
3 answers

Semantics Triple Store in Marklogic

I want to store graph data in marklogic using semantic triple. I am able to do that when i use ttl file with uri of http://example.org/item/item22. But i want to store this triple wrt to documents which are stored in Marklogic. Means i have one…
0
votes
1 answer

Prove Transitivity in Haskell semantics

I am learning semantics of Haskell and there I came across this question: I have tried it but still unable to conclude the answer. It will be great if someone explains me how to prove this one. Thank you.
0
votes
1 answer

Find least fixpoint of a function

If I have this Haskell function: Consider the following Haskell function f : f :: Int -> Int f 0 = 1 f x = x * x * f (x - 1) Then how can I calculate its fixpoint and the least fixpoint (in closed form)? The answer to this question is : How is…
Waqar Ahmed
  • 5,005
  • 2
  • 23
  • 45
0
votes
4 answers

How would you markup a building plan/map using semantic HTML?

The building (a museum) has 7 levels (+3 to -3), each divided into different rooms/areas. Hovering over an area will reveal a popup describing that area. I'm looking for some markup that will accurately represent the 7 levels and their areas. The…
meleyal
  • 32,252
  • 24
  • 73
  • 79
0
votes
1 answer

Which Exception class is the most suitable for flagging excess number of calls to a function?

I have a database connection object, and I want to restrict/enforce max number of calls to it's write operation (function). I have mocked it in tests, and have overridden the write method to monitor calls to it. However, I am confused about what…
0xc0de
  • 8,028
  • 5
  • 49
  • 75
0
votes
1 answer

Scala: Syntax causing runtime error?

I am learning Scala and trying to write some command line executables. I have two version of HelloWorld, which I thought were semantically the same. HelloWorld.scala compiles and runs successfully from the command line. HelloWorld2.scala compiles…
Fried Brice
  • 769
  • 7
  • 20
0
votes
1 answer

How to do semantic keyword search with nlp

I want to do SEMANTIC keyword search on list of topics with NLP(Natural Language Processing ). It would be very appreciable if you post any reference links or ideas.
user1632980
  • 275
  • 1
  • 3
  • 10
0
votes
2 answers

Semantic media wiki

What is the scripting language used by SEMANTIC MEDIA WIKI?
0
votes
1 answer

SQL Semanticsimilaritytable for Multiple Matches

I'm performing semantics analysis on 1000 docs. I would like to the top 5 matches for each of the doc. here goes the query that I'm using; DECLARE @FTE hierarchyid SELECT @FTE = path_locator from dbo.LatinBooks Select top (5) e.name ,d.name as…
Gjorge
  • 1
  • 3
0
votes
1 answer

most efficient way to getting variables/members

Which is the most semantically "correct" way to get/set variables when using OO PHP? From what I know, there are getters/setters, passing by reference and passing by value. Passing by value is slower than passing by reference, but passing by…
TCCV
  • 3,142
  • 4
  • 25
  • 30
0
votes
2 answers

Language syntax evolution and its semantics preservation

I am investigating how a syntactic evolution of language affects its semantics. For instance, java's for loop syntax evolved in its version 5 to a compact one. Do the designers have to prove that even with this syntax the semantics are still…
Ketan Maheshwari
  • 2,002
  • 3
  • 25
  • 31